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";
	
 janela="";
 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 exAlunos(formulario){
	msg="Campo obrigatório 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.txtEndResidencial.value==""){
		alert(msg);
		return false;
	  }
	
	 if(formulario.txtCepResidencial.value==""){
		alert(msg);
		return false;
	  }

	
	 if(formulario.txtNumeroResidencial.value==""){
		alert(msg);
		return false;
	  }
	  
	   if(formulario.txtUltimoAno.value==""){
		alert(msg);
		return false;
	  }
	  
	   if(formulario.txtDia.value==""){
		alert(msg);
		return false;
	  }
	  
	  if(formulario.txtMes.value==""){
		alert(msg);
		return false;
	  }
	  
	   if(formulario.txtAno.value==""){
		alert(msg);
		return false;
	  }
	  
	   if(formulario.txtDDD_res.value==""){
		alert(msg);
		return false;
	  }
	  
	  if(formulario.txtTel_res.value==""){
		alert(msg);
		return false;
	  }
	  
	/*
	O comando abaixo diz q o formulario está ok e pode ser enviado.
	*/
	return true;
}


function CadastroPais2006(formulario){
	msg="Campo obrigatório 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;
		}
  	/*
	O comando abaixo diz q o formulario está ok e pode ser enviado.
	*/
	return true;
}

function CadastroChas2006(formulario){
	msg="Campo obrigatório não preenchido, por favor confira as informações.";
	
	if(formulario.txtNomeParticipante.value==""){
		alert(msg);
		return false;
		}
	if(formulario.txtNomeAluno.value==""){
		alert(msg);
		return false;
		}
	if(formulario.txtEmail.value==""){
		alert(msg);
		return false;
		}
  	/*
	O comando abaixo diz q o formulario está ok e pode ser enviado.
	*/
	return true;
}