

function validaContacto(form){
	
	if(Empty(form.nombre.value)) // Pregunta si el campo nombre viene vacio
	{
		alert('Ingrese su nombre');  // Si viene vacio envia un alerta
		form.nombre.focus(); // Pone el cursor en el campo validado
		return false; // Detine el envio del formulario
	}
	
	if(Empty(form.edad.value)){
		alert('Ingrese Edad');
		form.edad.focus();
		return false;
	}
	
	
	if(!isMail(form.email.value)){
		alert('Ingrese su mail');
		form.email.focus();
		return false;
	}
	
	if(Empty(form.codigo.value)){
		alert('Ingrese código de área');
		form.codigo.focus();
		return false;
	}
	
	if(Empty(form.numero.value)){
		alert('Ingrese telefono');
		form.numero.focus();
		return false;
	}
	
	if(Empty(form.ciudad.value)){
		alert('Ingrese ciudad');
		form.ciudad.focus();
		return false;
	}
	
	if (Empty(form.comentario.value)){
		alert('Ingrese su mensaje por favor');
		form.comentario.focus();
		return false;
	}


	return;
}

function solonumeros(e){

	var key;
	
	if(window.event) // IE
	{
		key = e.keyCode;
	}
	else if(e.which) // Netscape/Firefox/Opera
	{
		key = e.which;
	}
	
	if (key < 48 || key > 57)
	{
		return false;
	}
	
	return true;
}



