 <!-- Begin
function chequeaFormulario(theForm){
	
  if (theForm.nombre.value.length == 0){ 
    alert('Por favor, rellene su nombre')
     theForm.nombre.focus(theForm);
    return false 
  } 

  if (theForm.telefono.value.length == 0){ 
    alert('Por favor, rellene su Teléfono')
     theForm.telefono.focus(theForm);
    return false 
  } 

  if (theForm.email.value.length == 0){ 
    alert('Por favor, rellene su Email')
     theForm.email.focus(theForm);
    return false 
  } 

  if (theForm.direccion.value.length == 0){ 
    alert('Por favor, rellene su Dirección')
     theForm.direccion.focus(theForm);
    return false 
  }

  if (theForm.direccion.value.length == 0){ 
    alert('Por favor, rellene su Dirección')
     theForm.direccion.focus(theForm);
    return false 
  }

  if (theForm.poblacion.value.length == 0){ 
    alert('Por favor, rellene su Población')
     theForm.poblacion.focus(theForm);
    return false 
  }

  var email = theForm.email.value;


  if (email == ''){ 
    alert('La direccion de email no figura')
     theForm.email.focus(theForm);
    return false 
  } 
 
  invalidChars = ' /:,;';
  for(j=0; j<invalidChars.length; j++){
   badChar = invalidChars.charAt(j);
  }

  if (email.indexOf(badChar,0) != -1){ 
    alert('Su email contiene caracteres invalidos')
    theForm.email.focus(theForm); 
    return false 
  } 
   
  atPos = email.indexOf('@',1) 
  
  if (atPos == -1){ 
    alert('Su direccion email no es valida.') 
    theForm.email.focus(theForm); 
    return false 
  } 
  if (email.indexOf('@',atPos+1) != -1){ 
    alert('Su direccion de email contiene demasiados @') 
    theForm.email.focus(theForm); 
    return false 
  } 
  periodPos = email.indexOf('.',atPos) 
  
  if (periodPos == -1) { 
    alert('Su direccion de email no tiene extension') 
    theForm.email.focus(theForm); 
    return false 
  } 
  if (periodPos+3 > email.length){ 
    alert('Su direccion email parece que tiene una extension no valida')
    theForm.email.focus(theForm);  
    return false 
    } 
  if (theForm.nombre.value.length == 0) {
    theForm.nombre.focus();
    alert("Rellene el campo 'Nombre'");
    return false
  }
  if (theForm.comentarios.value.length == 0) {
    theForm.comentarios.focus();
    alert("Rellene el campo 'Comentarios'");
    return false
    }
  if (theForm.comentarios.value.length > 5000) {
    theForm.comentarios.focus();
    alert("El comentario, es demasiado largo\n Le agradecemos lo resuma algo m&aacute;s");
    return false
   }
  
  return true;
	
}

// End -->
