function checkContacto(theForm)
{	

	///////////////////////////////////////////////////////////Nombre
		
	if (theForm.nombre.value.length < 1)
	{
		alert("Por favor introduzca el Nombre");
		theForm.nombre.focus();
		return (false);
	}
	
		///////////////////////////////////////////////////////////Apellidos
		
	if (theForm.apellidos.value.length < 1)
	{
		alert("Por favor introduzca el Apellido");
		theForm.apellidos.focus();
		return (false);
	}

	
	///////////////////////////////////////////////////////////Telefono
 if (theForm.telefono.value.length < 9)
  {
    alert("Por favor introduzca un Teléfono");
    theForm.telefono.focus();
    return (false);
  }  
 var checkOK = "0123456789";
  var checkStr = theForm.telefono.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("El teléfono no es correcto. Escríbala de nuevo, por favor");
    theForm.telefono.focus();
    return (false);
  }  
  	

///////////////////////////////////////////////////////////Comentario			
	if (theForm.coment.value.length < 1)
		{
			alert("Por favor introduzca su Consulta");
			theForm.coment.focus();
			return (false);
		}	
		
	
	return (true);
}

