function printPage() {
  if (window.print)
    window.print()
  else
    alert("O script não conseguiu envira o documento diretamente para impressão,\nPressione Ctrl+P ou selecione Imprimir no menu Arquivo para imprimir esta página.");
}

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

function gothere(mname)
{
var thisform = mname;
 if (thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value != "nolink") {self.location.href=thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value;}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function VerificaForm(){
		if (document.atendimento.nome.value==""){
		window.alert("Por favor, o seu nome.");
		document.atendimento.nome.focus();
		return false;
	}	

	if (document.atendimento.email2.value==""){
		window.alert("Por favor, o seu E-mail está incorreto !");
		document.atendimento.email2.focus();
		return false;
	}
		if (document.atendimento.email2.value.indexOf ('@',0) == -1 ||  document.atendimento.email2.value.indexOf ('.',0) == -1) {
		window.alert("Por favor, o seu E-mail !");
		document.atendimento.email2.focus();
		return false;
	}
		if (document.atendimento.ddd.value==""){
		window.alert("Por favor, digite seu DDD !");
		document.atendimento.ddd.focus();
		return false;
	}
		if (document.atendimento.telefone.value==""){
		window.alert("Por favor, digite seu telefone !");
		document.atendimento.telefone.focus();
		return false;
	}
	
		if (document.atendimento.adultos.value==""){
		window.alert("Por favor, digite o número de Adultos !");
		document.atendimento.adultos.focus();
		return false;
	}
		if (document.atendimento.jovens.value==""){
		window.alert("Por favor, digite o número de Jovens !");
		document.atendimento.jovens.focus();
		return false;
	}
		if (document.atendimento.chegada.value==""){
		window.alert("Por favor, digite sua data de Chegada !");
		document.atendimento.chegada.focus();
		return false;
	}
}


function VerificaFormCont(){
		if (document.contato.nome.value==""){
		window.alert("Por favor, digite seu Nome.");
		document.contato.nome.focus();
		return false;
	}	
	if (document.contato.email2.value==""){
		window.alert("Por favor, preencha o seu E-mail");
		document.contato.email2.focus();
		return false;
	}
		if (document.contato.email2.value.indexOf ('@',0) == -1 ||  document.contato.email2.value.indexOf ('.',0) == -1) {
		window.alert("Por favor, preencha corretamente o seu E-mail!");
		document.contato.email2.focus();
		return false;
	}
		if (document.contato.texto.value==""){
		window.alert("Por favor, escreva algo.");
		document.contato.texto.focus();
		return false;
	}	
}