  function createXMLHttpRequest() {
		var xmlHttp;
		try
		   {
		     // try to create XMLHttpRequest object
		     xmlHttp = new XMLHttpRequest();
		
		   }
		   catch(e)
		   {
		   var prefixes = ["MSXML2.XmlHttp","Microsoft.XmlHttp","MSXML3.XmlHttp", "MSXML.XmlHttp"];
		     // assume IE6 or older
		   	for (var i = 0; i < prefixes.length; i++) {
				try{xmlHttp = new ActiveXObject(prefixes[i]);}catch(ex){};
			}
		       
		   }
		   // return the created object or display an error message
		   if (!xmlHttp)
		     alert("Error creating the XMLHttpRequest object.");
		   else
		     return xmlHttp;
    }
function lastURL(){
	var xmlHttp=createXMLHttpRequest();
	xmlHttp.open("post",'/lastUrl.jsp?url='+location.href, true);			
	xmlHttp.send(null);	
}
lastURL();
