<!--
function validEmail(email){
  invalidChars=" /:,;";

  if(email==""){
    return false;
  }

  for(i=0;i < invalidChars.length;i++){
    badChar=invalidChars.charAt(i);
    if(email.indexOf(badChar,0)>-1){
      return false;
    }
  }

  atPos=email.indexOf("@",1);
  if(atPos==-1){
    return false;
  }
  
  if(email.indexOf("@",atPos+1)!=-1){
    return false;
  }

  periodPos=email.indexOf(".",atPos);
  if(periodPos==-1){
    return false;
  }

  if(periodPos+3>email.length){
    return false;
  }

return true;
}

function Check_Contactanos(inForm){
  if(!validEmail(inForm.email.value)){
    alert("We are sorry. The email address seems to be incorrect");
    return false;
  }
  if(inForm.mensaje.value==""){
    alert("The message has not been written");
    return false;
  }
return true;
}

function Check_Mandar(inForm){
  if(inForm.nombre.value==""){
    alert("Your name has not been entered");
    return false;
  }
 if(!validEmail(inForm.emailf.value)){
    alert("We are sorry. The email address you entered seems to be incorrect");
    return false;
  }
  if(!validEmail(inForm.email.value)){
    alert("We are sorry. The email address you entered seems to be incorrect");
    return false;
  }

return true;
}

function Check_Recomiendanos(inForm){
  if(!validEmail(inForm.email_destinatario.value)){
    alert("We are sorry. The email address of the receiver seems to be incorrect");
    return void(0);
  }
  inForm.submit();
  return true;
}

function Check_Recomiendanos_Site(inForm){
  if(inForm.url.value==""){
    alert("The url has not been entered");
    return false;
  }
return true;
}

function Check_Registro(inForm){
  if(!validEmail(inForm.email.value)){
    alert("We are sorry. The email address seems to be incorrect");
    return false;
  }
return true;
}

function PopUp(){
  window.open("/popup.phtml","popup","toolbar=false,location=false,directories=false,status=false,menubar=no,scrollbars=no,resizeable=no,marginheight=2,marginwidth=2,copyhistory=false,width=350,height=350");
}
function Check_suscripcion(inForm){
   
 
     if(inForm.suscriptor.value=="")
  {  
     alert("Please write the email");
	 inForm.suscriptor.focus();
	 return false;
	 }
	  if(!validEmail(inForm.suscriptor.value)){
    alert("We are sorry. The email address you entered seems to be incorrect");
	 inForm.suscriptor.focus();
    return false;
  } 
 
	  if(inForm.email.value=="")
  { 
     alert("Please write the email");
	  inForm.email.focus();
	 return false;
	 }
  if(!validEmail(inForm.email.value)){
    alert("We are sorry. The email address you entered seems to be incorrect");
	 inForm.email.focus();
    return false;
  }
  return true;
	 }
// -->