function TransformXML(xslFileName, xmlFileName, divname)
{
	
	
//var xslFileName = "";
//var  = "Firmas.xml";


var browserName=navigator.appName; 



if (browserName=="Microsoft Internet Explorer")
{
	
	// Load XML 
	var xml = new ActiveXObject("Microsoft.XMLDOM");
	xml.async = false;
	xml.load(xmlFileName);
	
	// Load the XSL
	var xsl = new ActiveXObject("Microsoft.XMLDOM");
	xsl.async = false;
	xsl.load(xslFileName);
	
	// Transform
	document.getElementById(divname).innerHTML = xml.transformNode(xsl);
	
}else
{
	//Create an XSLT processor instance
	var processor = new XSLTProcessor();
	//Create an empty XML document for the XSLT transform
	var transform = document.implementation.createDocument("", "", null);
	//Load the XSLTalert(xmlFileName);
	transform.onload = loadTransform;
	transform.load(xslFileName);
}

//Triggered once the XSLT document is loaded
	function loadTransform(){
	  //Attach the transform to the processor
	  processor.importStylesheet(transform);
	  source = document.implementation.createDocument("", "", null);
	  source.load(xmlFileName);
	  source.onload = runTransform;
	}
	//Triggered once the source document is loaded
	function runTransform(){
	  //Run the transform, creating a fragment output subtree that
	  //can be inserted back into the main page document object (given
	  //in the second argument)
	  var frag = processor.transformToFragment(source, document);
	  //insert the result subtree into the document, using the target element ID
	  document.getElementById(divname).appendChild(frag);
	}
}