	function GetXmlHttpRequest() {
	
		var xmlHttp;
		
		try {
			xmlHttp = new XMLHttpRequest();
		}
			
		catch (e) {
			try {
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			
			catch (e) {
				try {
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
				}
				
				catch (e) {
					alert ("Your browser does not support AJAX!");
				}
			}
		}
			
		return xmlHttp;	
	}
	
	function DoAjax (eventName, eventInfo, eventInfo2, eventInfo3, handlerPage)
	{
	    if (!handlerPage) {
	        handlerPage = "HomeDirectoryAjax.aspx";
	    }
	    
		var xmlHttp = GetXmlHttpRequest ();
		
		xmlHttp.onreadystatechange=function()
				{
				if(xmlHttp.readyState==4)
					{
						/* alert (xmlHttp.responseText); */
						if (xmlHttp.responseText.substr(0,31) == "<NavResponseInformationPackage>") {
                            window.top.RunNavInstructions(xmlHttp.responseText);
						} else {
						    eval (xmlHttp.responseText);
						}
					}
				}
		xmlHttp.open("POST",handlerPage,true);
		xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		xmlHttp.send( "EventName=" + encodeURIComponent (eventName) + "&EventInfo=" + encodeURIComponent (eventInfo) + "&EventInfo2=" + encodeURIComponent(eventInfo2) + "&EventInfo3=" + encodeURIComponent(eventInfo3));
	}
		

