function janela(url,w,h,rolagem, status){

xpos=0;
ypos=0;

 if (screen){
 xpos= (screen.width - w)/2;
 ypos= (screen.height - h)/2;
 }
 var janela;

	if(rolagem == "no")
		janela="noScroll";
	else
		janela="yesScroll";
	

 desktop=window.open(url+'?w=' + w + '&h=' + h,janela,'toolbar=no,location=no,top=' + ypos + ',left=' + xpos + ',directories=no,status=' + status + ',scrollbars=' + rolagem + ',menubar=no,resizable=no,width= ' + w + ',height=' + h + '' );
 desktop.focus();
}


function Contato(formulario){
	msg="Campo não preenchido, por favor confira as informações.";
	
	if(formulario.txtNome.value==""){
		alert(msg);
		return false;
		}
		
   if(formulario.txtEmail.value==""){
		alert(msg);
		return false;
	   }
	
	  if(formulario.txtMensagem.value==""){
		alert(msg);
		return false;
	  }
	
		return true;
}

function Contato2(formulario){
	msg="Campo não preenchido, por favor confira as informações.";
	
	if(formulario.txtNome.value==""){
		alert(msg);
		return false;
		}
		
   if(formulario.txtTurma.value==""){
		alert(msg);
		return false;
	   }
	
	  if(formulario.turma.value==""){
		alert(msg);
		return false;
	  }
	  if(formulario.evento.value==""){
		alert(msg);
		return false;
	  }
	
		return true;
}

function FrmCadastroExAlunos(formulario){
	msg="Campo não preenchido, por favor confira as informações.";
	
	if(formulario.txtNome.value==""){
		alert(msg);
		return false;
		}
		
   if(formulario.txtEmail.value==""){
		alert(msg);
		return false;
	   }
	
	  if(formulario.txtEndereco.value==""){
		alert(msg);
		return false;
	  }
	
	if(formulario.txtPai.value==""){
		alert(msg);
		return false;
	  }
	  
	 if(formulario.txtMae.value==""){
		alert(msg);
		return false;
	  }
	  
		return true;
}


function ContatoRodape(formulario){
	msg="Campo não preenchido, por favor confira as informações.";
	
	if(formulario.txtNome.value==""){
		alert(msg);
		return false;
		}
		
   if(formulario.txtEmail.value==""){
		alert(msg);
		return false;
	   }
	
	  if(formulario.txtMensagem.value==""){
		alert(msg);
		return false;
	  }
	
		return true;
}