	// JavaScript Documentfunction visitValidate(){  if (document.visit.name.value.length==0)   {alert("É necessário preencher o campo Nome!");   return false;}  string=document.visit.email.value;    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)  	{  alert ("Caro utilizador, por favor introduza um email válido!");         return false;	}  if ((document.visit.phone.value.length==0) || (document.visit.phone.value.length<9))  	{  alert ("Caro utilizador, por favor introduza um numero de telefone válido!");         return false;	}return true;}//-----------------------------------------------------------------------------function recruitValidate(){if (document.form.name.value.length==0)   {alert("È necessário preencher o campo Nome!");   return false;}   if (document.form.mobile.value.length==0)   {alert("È necessário preencher o campo Telemóvel!");   return false;}    if (document.form.motivation.value.length==0)  {alert("É necessário preencher o campo Motivação");   return false; }return true;} //-----------------------------------------------------------------------------function RegThankx(){  NewWindow("regthankx.htm",'newWindow','width=310,height=290,location=no,menubar=no,directories=no,toolbar=no,statusbar=no,resizable=no,scrollbars=no,titlebar=no');}function seek(){  NewWindow("procura.aspx",'newWindow','width=505,height=600,location=no,menubar=no,directories=no,toolbar=no,statusbar=no,resizable=no,scrollbars,titlebar=no');}function seek_uk(){  NewWindow("procura_uk.aspx",'newWindow','width=505,height=600,location=no,menubar=no,directories=no,toolbar=no,statusbar=no,resizable=no,scrollbars,titlebar=no');}function NewWindow(URLtoOpen,windowName,windowFeatures){if (typeof(newWindow)!='undefined')    {newWindow.close();}   newWindow=window.open(URLtoOpen,windowName,windowFeatures);}//-----------------------------------------------------------------------------function seekValidate(){if (document.form.name.value.length==0)   {alert("È necessário preencher o campo Nome!");   return false;}if (document.form.mobile.value.length==0)  {alert("É necessário preencher o campo Telemóvel");   return false; }       string=document.form.email.value;    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)  	{  alert ("Caro utilizador, por favor introduza um email válido!");         return false;	}  if (document.form.distrito.value.length==0)   {alert("È necessário preencher o campo Distrito!");   return false;}   if (document.form.cidade.value.length==0)   {alert("È necessário preencher o campo Cidade!");   return false;}if (document.form.tipo.length>0){   for (i=0; i<document.form.tipo.length; i++){  if (document.form.tipo[i].checked==true)  {  return true  }}alert("È necessário escolher o tipo de imóvel");return false}   return true;}//-----------------------------------------------------------------------------function sellValidate(){if (document.form.name.value.length==0)   {alert("È necessário preencher o campo Nome!");   return false;} if (document.form.mobile.value.length==0)  {alert("É necessário preencher o campo Telemóvel");   return false; }string=document.form.email.value;    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)  	{  alert ("Caro utilizador, por favor introduza um email válido!");         return false;	}      if (document.form.local.value.length==0)       {       alert("È necessário preencher o campo Localização!");       return false;       }if (document.form.tipo.length>0){   for (i=0; i<document.form.tipo.length; i++){  if (document.form.tipo[i].checked==true)  {  return true  }}alert("È necessário esolher o tipo de imóvel");return false}   return true;}//-----------------------------------------------------------------------------function registerValidate() {  if (document.register.name.value.length==0)   {alert("É necessário preencher o campo Nome!");   return false;}      string=document.register.email.value;    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)  	{  alert ("Caro utilizador, por favor introduza um email válido!");         return false;	}   RegThankx();  return true;  }
