function chequeaFormulario(theForm){
  
  /* Email
  -------------------------------------------------------------------*/
  var contact_email = theForm.contact_email.value;
  if (contact_email == ''){ 
    alert('Por favor, Rellene su direccion de email')
     theForm.contact_email.focus(theForm);
    return false;
  } 
  invalidChars = ' /:,;';
  for(j=0; j<invalidChars.length; j++){
   badChar = invalidChars.charAt(j);
  }
  if (contact_email.indexOf(badChar,0) != -1){ 
    alert('Por favor, Rellene su direccion de email en el formato: sunombre@dominio.com')
    theForm.contact_email.focus(theForm); 
    return false;
  } 
  atPos = contact_email.indexOf('@',1) 
  if (atPos == -1){ 
    alert('Por favor, Rellene su direccion de email en el formato: sunombre@dominio.com') 
    theForm.contact_email.focus(theForm); 
    return false;
  } 
  if (contact_email.indexOf('@',atPos+1) != -1){ 
    alert('Por favor, Rellene su direccion de email en el formato: sunombre@dominio.com') 
    theForm.contact_email.focus(theForm); 
    return false;
  } 
  periodPos = contact_email.indexOf('.',atPos) 
  if (periodPos == -1) { 
    alert('Por favor, Rellene su direccion de email en el formato: sunombre@dominio.com') 
    theForm.contact_email.focus(theForm); 
    return false;
  } 
  if (periodPos+3 > contact_email.length){ 
    alert('Por favor, Rellene su direccion de email en el formato: sunombre@dominio.com')
    theForm.contact_email.focus(theForm);  
    return false;
    }

  /* Name
  -------------------------------------------------------------------*/
  if (theForm.contact_name.value.length == 0) {
    theForm.contact_name.focus();
    alert('Por favor, Rellene su "Nombre"');
    return false;
  }

  /* Comments
  -------------------------------------------------------------------*/
  if (theForm.contact_comments.value.length == 0) {
    theForm.contact_comments.focus();
    alert('Por favor, Rellene los "Comentarios"');
    return false;
    }
  if (theForm.contact_comments.value.length > 2000) {
    theForm.contact_comments.focus();
    alert('Por favor, el comentario es demasiado largo. Le agradecemos lo resuma algo mas');
    return false;
   }		

  return true;
}