function validarEmail(pEmail)
{
	var oRegExp = /^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/;
	return oRegExp.test(pEmail);
}


function enviarContacto(pForm)
{
	with(pForm)
	{
		if(nombres.value.length > 0)
		{
			if(validarEmail(email.value))
			{
					if(mensaje.value.length > 0)
					{
						x_EnviarContacto(nombres.value, email.value, telefono.value, mensaje.value, function(pCadena)
						{	
							alert("Su consulta fue enviada\nGracias por contactarse con nosotros");
							pForm.reset();
						});
					}
					else
					{
						alert("Ingrese su mensaje");
						mensaje.focus();
					}
				
			}
			else
			{
				alert("Ingrese un email valido");
				email.focus();
			}
			
		}
		else
		{
			alert("Ingrese su nombre y apellido");
			nombres.focus();
		}
	}
	return false;
}
