function comprueba()
{
	if (document.contacto.nombre.value=="")
	{
		alert("Debe introducir un Nombre");
		document.contacto.nombre.focus();
		return false;
	}
	if (document.contacto.email.value=="")
	{
		alert("Debe introducir una dirección de Correo Electrónico (E-MAIL)");
		document.contacto.email.focus();
		return false;
	}
	if (checkemail(document.contacto.email.value))
	{
		alert("Debe introducir una dirección de E-MAIL válida");
		document.contacto.email.focus();
		return false;
	}
	if (document.contacto.telefono.value=="")
	{
		alert("Debe introducir un telefono de contacto");
		document.contacto.telefono.focus();
		return false;
	}
	if (document.contacto.comentario.value=="")
	{
		alert("Escriba el texto en comentarios");
		document.contacto.comentario.focus();
		return false;
	}
	document.contacto.submit();
}
var nav4 = window.Event ? true : false;
function acceptNum(evt)
{     
	var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}
function checkemail(email)
{
	var ind1, ind2, ind3;
	ind1 = email.indexOf('@');
	ind2 = email.indexOf('.');
	ind3 = email.lastIndexOf('@');
	if ((ind1<=0) || (ind2<ind1) || (ind3 != ind1))
		  return true;
	else
		 return false;
}
