function validarContacto(forma){
var sw=validarFormulario(forma)
if(sw)forma.submit();	
}
function validarContactoEnvio(forma){
var sw=validarFormulario(forma)
if(sw){
	var tipo="5&nombre="+document.getElementById("nombrR").value;
	tipo+="&pais="+document.getElementById("paisR").value;
	tipo+="&email="+document.getElementById("email").value;
	tipo+="&id="+document.getElementById("PortEnv").value;
	tipo+="&data="+document.getElementById("cuerpo").value;
	enviarCorreo("prueba",tipo,"../../../libreria/");
	document.forms[0].reset();
	alert("Correo enviado!!!");
    location.href=location.href;
}	
}
