function loadXMLDoc(dname)
{
	var xmlDoc;
	// code for IE
	if (window.ActiveXObject)
	{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}
	// code for Mozilla, Firefox, Opera, etc.
	else if (document.implementation && document.implementation.createDocument)
	{
		xmlDoc=document.implementation.createDocument("","",null);
	}
	else
	{
		alert('Your browser cannot handle this script');
	}
	xmlDoc.async=false;
	xmlDoc.load(dname);
	return(xmlDoc);
}

function eventoCargar(funcion)
{
//	window.alert('eventoCargar')
	if (window.addEventListener)
		window.addEventListener("load", funcion, false)
	else if (window.attachEvent)
		window.attachEvent("onload", funcion)
}

function lg(cual,w,h) {
	window.open(cual, "", "width="+w+"&,height="+h+"&,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=1,resizable=0");
}
