// --> Solo numeros
var nav4 = window.Event ? true : false;
function acceptNum(evt){	// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	<BR>
var key = nav4 ? evt.which : evt.keyCode;
return (key <= 13 || (key >= 48 && key <= 57));}

//Valida contacto
function validar_contacto(contact){
	var er_email = /^(.+\@.+\..+)$/
	if (contact.nombre.value == '') 
		{ 	alert ("Por favor ingrese su nombre"); contact.nombre.focus(); return(false);}
	
	if (contact.mail.value == '') 
		{ 	alert ("Por favor ingrese su email"); contact.mail.focus(); return(false);}
	
	if(!er_email.test(contact.mail.value)) { 
		alert('Por favor ingrese un email valido.');
		contact.mail.focus();
		return (false);
	} 
	if (contact.fono.value == '') 
		{ 	alert ("Por favor ingrese un fono de contacto"); contact.fono.focus(); return(false);}
	
	/*if (contact.servicios.value!='web' && contact.servicios.value!='sistema') 
		{ 	alert ("Por favor seleccione un tipo de servicio");  return(false);}
	*/
	
	
	
	if (contact.consulta.value == '') 
		{ 	alert ("Por favor ingrese su consulta"); contact.consulta.focus(); return(false);}
	document.forms.contact.enviar.value="1";
	contact.submit();
	//alert("Su consulta fue enviada con exito. \n");
	
}

