function comprobar_telefono(numero,id){
	var theForm = document.contacto;
	if(!/^([0-9])*$/.test(numero))
	{		alert("El valor " + numero + " no corresponde a un número utilizado en números telefónicos.");
			document.getElementById(id).value=""}
	}
	
function VF_Contacto()
{
	var theForm = document.contacto;	
	if (trim(document.getElementById('nombre').value)=="")
	{ 	alert("Por favor ingrese su(s) Nombre(s) Completo(s) para poder identificarlo. Gracias.");
		document.getElementById('nombre').focus();
		return false;	
	}
	if (trim(document.getElementById('email').value)=="")
	{	alert("Por favor escriba un email para poder responderle. Gracias.");
		document.getElementById('email').focus();
		return false;
	}
	else{ var s = document.getElementById('email').value;
			var filter=/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
			if (filter.test(s));
			else{ alert("Ingrese un email correctamente escrito por favor. Gracias.");
				document.getElementById('email').value="";
				document.getElementById('email').focus();
				return false;}
	}	
	if (trim(document.getElementById('telefono').value)=="")
	{ 	alert("Por favor ingrese su Número de Teléfono. Gracias.");
		document.getElementById('telefono').focus();
		return false;	
	}	
	if (document.getElementById('filial').value=="0")
	{ 	alert("Por favor seleccione la filial de APEMI más cercana a su domicilio. Gracias.");
		document.getElementById('filial').focus();
		return false;	
	}		
	if (trim(document.getElementById('asunto').value)=="")
	{ 	alert("Por favor indíquenos el Asunto de su mensaje. Gracias.");
		document.getElementById('asunto').focus();
		return false;	
	}	
	if (trim(document.getElementById('mensaje').value)=="")
	{	alert("Por favor no olvide indicarnos el detalle de su mensaje o sugerencia. Gracias.");
		document.getElementById('mensaje').focus();
		return false;
	}	
	theForm.submit();
}	
