function loadAndTransformXML(strXML, strXSL, strContainer) {
	//load xml file
	// code for IE
	
	if (window.ActiveXObject) {
		var xmlDoc = new ActiveXObject("Msxml2.DomDocument");
		xmlDoc.async=false;
		
		xmlDoc.load(strXML);
				
		var xslDoc = new ActiveXObject("Msxml2.DomDocument")
		xslDoc.async = false
		xslDoc.load(strXSL)// Transform
		var strHTML = xmlDoc.transformNode(xslDoc);
		var objContainer = null;
		
		if(strContainer !='' && strContainer != null) {
			objContainer = document.getElementById(strContainer);
			if(objContainer) objContainer.innerHTML = strHTML;
		}
		
	}
	// code for Mozilla, etc.
	else if (document.implementation &&	document.implementation.createDocument) {
		var xmlDoc= document.implementation.createDocument("","",null);
		xmlDoc.load(strXML);
		
		
		var xslDoc= document.implementation.createDocument("","",null);	
		xslDoc.addEventListener("load", onload, false);
		xslDoc.load(strXSL);
		
		var processor = new XSLTProcessor();
		processor.importStylesheet(testTransform);
			
		//document.write(xmlDoc.transformNode(xslDoc))
	}
	else {
		alert('Your browser cannot handle this script');
	}
}

// Remote silent posting
var xmlhttp

function remotePost(url, data)
{
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
	xmlhttp=new XMLHttpRequest();
	xmlhttp.onreadystatechange=xmlhttpChange
	
	xmlhttp.open("POST",url, false)
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlhttp.send(data)
  }
// code for IE
else if (window.ActiveXObject)
  {
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    if (xmlhttp)
    {
		xmlhttp.onreadystatechange=xmlhttpChange		
		xmlhttp.Open("POST",url, false)
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlhttp.send(data)
    }
  }
}

function xmlhttpChange()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
  {
  // if "OK"
  if (xmlhttp.status==200)
    {
    // ...some code here...
    }
  else
    {
    alert("Problem retrieving XML data")
    }
  }
}
