function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function popup(url,name_popup,width,height,scroll){
	var options = 'width='+width+',height='+height;
	if(scroll == '' || scroll == 'yes') 
		options += ",scrollbars=yes";
	else 
		options += ",scrollbars=yes";
	options += ",resizable=no,menubar=no,location=no,toolbar=no,status=no,directories=no";
	window.open(url,name_popup,options);
}

function Verifica(){
	if(document.frm_search.Sou.value == ""){
		alert("Entre com o seu sexo.");
		document.frm_search.Sou.focus();
		return (false);
	}
	if(document.frm_search.Procuro.value == ""){
		alert("Entre com o sexo da pessoa buscada.");
		document.frm_search.Procuro.focus();
		return (false);
	}
//		click('');
	return (true);
}


function verifica_idade(){
	date_start = document.frm_search.dat_Date_Nasc_Start.value
	date_end = document.frm_search.dat_Date_Nasc_End.value
	if (date_start > date_end){
		alert("A data inicial nao pode ser maior que a final. ");
		document.frm_search.dat_Date_Nasc_End.focus();
	}
}

