
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		botao01_on = newImage("img/botao01_on");
		botao02_on = newImage("img/botao02_on");
		botao03_on = newImage("img/botao03_on");
		botao04_on = newImage("img/botao04_on");
		botao05_on = newImage("img/botao05_on");
		botao06_on = newImage("img/botao06_on");
		botao07_on = newImage("img/botao07_on");
		preloadFlag = true;
	}
}


function construcao()
{
	alert("Website em desenvolvimento");
}


function chamaFoto(numero)
{
	var comando = "verFoto.asp?foto=" + numero;
	var janelaFoto = window.open(comando,'popup','width=550,height=413,scrollbars=no');
	janelaFoto.focus();
}


function chamaMateria(nome,largura,altura)
{
	var janelaMateria = window.open(nome,'_blank','width='+largura+',height='+altura+',scrollbars=no');
	janelaMateria.focus();
}


function chamaCardapio(nome)
{
	var janelaCardapio = window.open(nome,'cardapio','width=500,height=400,scrollbars=yes');
	janelaCardapio.focus();
}


function mudaFrames(sessao)
{
	if (sessao == "barbolla")
	{
		parent.frames[0].location.href = "img/barbolla_topo.gif";
		parent.frames[2].location.href = "img/barbolla_lado_dir.gif";
	}
	else
	{
		parent.frames[0].location.href = "img/" + sessao + "_topo.gif";
		parent.frames[2].location.href = "img/cont_cad_lado_dir.gif";
	}

}

function verificaContato()
{

	if (document.barbollaContato.nome.value.length == 0)
	{
		alert("Campo Nome em branco");
		document.barbollaContato.nome.focus();
		return(false);
	}
	else if (document.barbollaContato.email.value.length == 0)
	{
		alert("Campo E-mail em branco");
		document.barbollaContato.email.focus();
		return(false);
	}
	else if (document.barbollaContato.assunto.value.length == 0)
	{
		alert("Campo Assunto em branco");
		document.barbollaContato.assunto.focus();
		return(false);
	}
	else if (document.barbollaContato.msg.value.length == 0)
	{
		alert("Campo Mensagem em branco");
		document.barbollaContato.msg.focus();
		return(false);
	}
	else document.barbollaContato.submit();

}


function verificaCadastro()
{

var aux = document.barbollaCadastro;

	if (aux.nome.value.length == 0)
	{
		alert("Campo Nome em branco");
		aux.nome.focus();
		return(false);
	}
	else if (aux.email.value.length == 0)
	{
		alert("Campo Email em branco");
		aux.email.focus();
		return(false);
	}
	else if (aux.endereco.value.length == 0)
	{
		alert("Campo Endereço em branco");
		aux.endereco.focus();
		return(false);
	}
	else if (aux.bairro.value.length == 0)
	{
		alert("Campo Bairro em branco");
		aux.bairro.focus();
		return(false);
	}
	else if (aux.cidade.value.length == 0)
	{
		alert("Campo Cidade em branco");
		aux.cidade.focus();
		return(false);
	}
	else if (aux.cep.value.length == 0)
	{
		alert("Campo Cep em branco");
		aux.cep.focus();
		return(false);
	}
	else if (aux.estado.value.length == 0)
	{
		alert("Campo Estado em branco");
		aux.estado.focus();
		return(false);
	}
	else if (aux.pais.value.length == 0)
	{
		alert("Campo País em branco");
		aux.pais.focus();
		return(false);
	}
	else if (aux.telefone.value.length == 0)
	{
		alert("Campo Telefone em branco");
		aux.telefone.focus();
		return(false);
	}
	else aux.submit();

}

<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("img/fotos/" + imgName);
document.mainpic.src = imgOn;
   }
}
//  End -->
