function checkform ( form )
{
  if (form.nombre.value == "") {
    alert( "Escribe tu nombre" );
    form.nombre.focus();
    return false ;
  }
 
  if (form.email.value == "")  {
    alert( "Escribe tu correo" );
    form.email.focus();
    return false ;
  }
   if (form.empresa.value == "") {
    alert( "Escribe el nombre de tu empresa" );
    form.empresa.focus();
    return false ;
  }
  if (form.telefono.value == "") {
    alert( "Escribe tu teléfono" );
    form.telefono.focus();
    return false ;
  }
  if (isNaN(form.telefono.value)){
    alert( "Escribe tu teléfono correctamente" );
    form.telefono.focus();
    return false ;
    }
  if (form.telefono.value.length<9){
    alert( "Escribe tu teléfono correctamente. Un número de 9 cifras" );
    form.telefono.focus();
    return false ;
    }
	 if (form.asunto.value == "") {
    alert( "Escribe el asunto" );
    form.asunto.focus();
    return false ;
  }
  if (form.mensaje.value == "") {
    alert( "Escribe tu comentario" );
    form.mensaje.focus();
    return false ;
  }
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value)){
   return (true);
  }
  else {
  alert("Escribe correctamente tu correo electrónico.")
  form.email.focus();
    return (false);
  }
  // ** END **
  return true ;
}
