		function validar(){
		var MyForm = document.form_contacto2;
		aTexts = new Array;
		acorreo = new Array;
		acorreo.push("mail");
		
		aTexts.push("name");
	    aTexts.push("phone");
		aTexts.push("message");
		aTexts.push("mail");
		aTexts.push("captcha");
		
		
		var resTexts = validaTextRequeridos( MyForm, aTexts );
		if (resTexts == true ){
		var mailvalidado =validaMail(MyForm, acorreo);
					if(mailvalidado==false){
						
					}else{
						 MyForm.PG.value = true;	
						  MyForm.submit();	
					}
			
		}
	} // Fin de función validar
	

