//Browser Support Code
function ajaxFunction(url,divID){
	var ajaxRequest2;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest2 = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest2 = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest2 = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest2.onreadystatechange = function(){
		if(ajaxRequest2.readyState == 4){
			var ajaxDisplay = document.getElementById(divID);
			ajaxDisplay.innerHTML = ajaxRequest2.responseText;
		}
	}


	ajaxRequest2.open("GET", url, true);
	ajaxRequest2.send(null); 
}

  function initXSLT(xmlFile,xslFile,params,divID){
  var hostname="http://" + getHostname()
    var url=hostname +  "/AppServer/XslTransform?xml=" + hostname + "/corporate/xml/"  + xmlFile + "&xsl=" + hostname + "/corporate/xml/" + xslFile + "&" + params;
	
   ajaxFunction(url,divID);
   
  }
  
  function getHostname() {
	var url = String(document.location);
	var split1 = url.split("//");
	var split2 = split1[1].split("/");
	var host = split2[0];
	return host;
}