//Ajax per import xml con stile xsl
function CreaHTML(docXML, docXSL, mID) {
            cancella(mID);
            //document.getElementById(mID).style.display = "none";
			if(document.implementation && document.implementation.createDocument){
				// Parte riservata a firefox		
				var xsltProcessor = new XSLTProcessor();
				
				// Leggo il file xslt 
				var myXMLHTTPRequest = new XMLHttpRequest();
				myXMLHTTPRequest.open("GET", docXSL, false);
				myXMLHTTPRequest.send(null);
				
				// Attribuisco il xsl al documento XML 
				xslStylesheet = myXMLHTTPRequest.responseXML;
				xsltProcessor.importStylesheet(xslStylesheet);
				
				// Leggo il file XML
				myXMLHTTPRequest = new XMLHttpRequest();
				myXMLHTTPRequest.open("GET", docXML, false);
				myXMLHTTPRequest.send(null);
				
				var xmlSource = myXMLHTTPRequest.responseXML;
				
				//Trasformo i file inserendoli come figlio nel contenitore (HTML)
				 var resultDocument = xsltProcessor.transformToFragment(xmlSource, document);
				document.getElementById(mID).appendChild(resultDocument);
				
			}else if(window.ActiveXObject){
				// IE
				
				// Leggo il file XML
				xml = new ActiveXObject("MSXML2.DOMDocument");
				xml.async = false
				xml.load(docXML)
				
				// Leggo il file XSL
				xsl = new ActiveXObject("MSXML2.DOMDocument");
				xsl.async = false
				xsl.load(docXSL)
				
			
				// Eseguo la trasformazione in HTML
				document.getElementById(mID).innerHTML=xml.transformNode(xsl);
			}else{
				// Browser unknown
				alert("Browser unknown");
			}
}

function cancella(mID) {
    var _div = document.getElementById(mID);
    var i;
    for (i = _div.childNodes.length - 1; i >= 0; i--)
        _div.removeChild(_div.childNodes[i]);
}        
