// JavaScript Document
function validarEmail(valor){
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
		return (true);
	}else{
		return (false);
	}
}

function verXML(archivo){
	var xmlDoc=null;
	if (window.ActiveXObject){// code for IE
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}else if (document.implementation.createDocument){// code for Mozilla, Firefox, Opera, etc.
		xmlDoc=document.implementation.createDocument("","",null);
	}else{
		alert('Tu navegador no soporta esta funcion');
	}
	
	if (xmlDoc!=null) {
		xmlDoc.async=false;
		xmlDoc.load(archivo);
		var x=xmlDoc.getElementsByTagName("link");
		
		document.write("<table border='0'>");		
		for (var i=0;i<x.length;i++){ 
			document.write("<tr>");
			document.write("<td><b>");
			document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
			document.write("</b><br>");
			document.write(x[i].getElementsByTagName("desc")[0].childNodes[0].nodeValue);
			document.write("<br>");
			document.write("<a href='"+x[i].getElementsByTagName("url")[0].childNodes[0].nodeValue+"'>"+x[i].getElementsByTagName("url")[0].childNodes[0].nodeValue+"</a>");
			document.write("<br><br></td>");
			document.write("</tr>");
		}
		document.write("</table>");
	}
}