
/*
 *
 * Arquivo: posbagozzi.js
 *
 * Arquivo com as funções JavaScript usadas nas paginas
 *
 */
 
	function right(e) 
	{
	if (navigator.appName == 'Netscape' && 
	(e.which == 3 || e.which == 2))
	return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && 
	(event.button == 2 || event.button == 3)) {
	alert("Obrigado por visitar nosso site.");
	return false;
	}
	return true;
	}
	
	document.onmousedown=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown=right;




function apenasnumericos(caracter) {
  if(document.all) { // Internet Explorer
var tecla = event.keyCode;
}
else {
if(document.layers) { // Nestcape
var tecla = caracter.which;
}
}
if(tecla > 47 && tecla < 58) { // numeros de 0 a 9
return true;
}
else {
if (tecla != 8) { // backspace
return false;
}
else {
return true;
}
}
}





function comCor(imagem)
    {

        imagem.style.filter = "none";

    } // comCor(imagem)


function semCor(imagem)
    {

       imagem.style.filter = "alpha(Opacity=70)";

    } // semCor(imagem)



function arearestrita()
    {

        alert("Entre com login e senha para obter acesso ao sistema!");

    } // arearestrita()






/* *** Fim do arquivo *** */
