﻿
function MVTcreateXMLHttpRequest() {
                  
      try { return new XMLHttpRequest(); } catch(e) {}
      try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
      try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
                      
      return null;
  }
  {
      var xhReq = MVTcreateXMLHttpRequest();
	  /*if(document.getElementById("category") != null)
	    xhReq.open("GET", "/Utils/UserTracker.ashx?title="+ escape(document.title) +"&category="+ escape(document.getElementsById("category")), true);	                	                
	  else*/

      var queryString = "";

      var fullURL = parent.document.URL;
      if (fullURL.indexOf('?') > 0)
          queryString = fullURL.substring(fullURL.indexOf('?') + 1, fullURL.length);

      //We append on the current time to ensure the page click is tracked and no cached.
	  xhReq.open("GET", "/Utils/UserTracker.ashx?title=" + escape(document.title) + "&category=&time=" + new Date().getTime() + "&queryString="+escape(queryString), true);	                	                
	      
	  xhReq.send(null);
  }