// ==== COLOR FORMULARIO ====
	function textOn(txt){
	document.getElementById(txt).className="textboxOn";
}

	function textNormal(txt){
	document.getElementById(txt).className="textbox";
}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
  	window.open(theURL,winName,features);
}
// ==== COLOR FORMULARIO ====

// ==== VALIDACAO FORMULARIO ====
function ValidaFormulario () {

// Validaçao do campo Nome
	if (document.frmContato.txtNome.value == "") {
	alert ("Digite o seu nome.");
	document.frmContato.txtNome.focus ();
	return false;
	}
	
// Validaçao do E-mail (Verificaçao do endereço eletrônico)
	parte1 = document.frmContato.txtEmail.value.indexOf("@");
	parte2 = document.frmContato.txtEmail.value.length;
	parte3 = document.frmContato.txtEmail.value.length;
	if (!(parte1 >= 4 && parte2 >=6 && parte3 >= 9)) {
		alert ("O campo e-mail deve conter um endereço eletrônico.");
		document.frmContato.txtEmail.focus ();
		return false;
	}
	
// Validaçao do campo Mensagem
	if (document.frmContato.txtMensagem.value == "") {
	alert ("Digite a sua mensagem.");
	document.frmContato.txtMensagem.focus ();
	return false;
	}

return true;
}
// ==== VALIDACAO FORMULARIO ====

// ==== MODAL ====
	var openMyModal = function(source)
	{
		modalWindow.windowId = "myModal";
		modalWindow.width = 600;
		modalWindow.height = 470;
		modalWindow.content = "<iframe width='600' height='520' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
// ==== MODAL ====