
/*        Homepage - SWL           */

    function setPDF(pdf)
    {
        var ajax_obj = null;
        var logger = '/../twatch/jslogger.php';
        var ref = '?ref=' + escape(window.location);
        var pg = '&pg=' + pdf;

        if (window.XMLHttpRequest)
        {
            ajax_obj = new XMLHttpRequest();
        }
        else if (window.ActiveXObject)
        {
            ajax_obj = new ActiveXObject("Microsoft.XMLHTTP");
        }
        if (ajax_obj != null)
        {
            ajax_obj.open("GET", logger + ref + pg);
		 	ajax_obj.send(null);
		}
    }
	
//<![CDATA[
   try {
      twatchReq = new XMLHttpRequest();
   }  catch ( error ) {
      twatchReq = new ActiveXObject( "Microsoft.XMLHTTP" );
   }
   twatchData = 'page='+encodeURIComponent( window.location );
   if( typeof document.referrer != 'undefined' && document.referrer != '' ) {
      twatchData += '&ref='+encodeURIComponent( document.referrer );
   }
   twatchReq.open( 'POST', '/../../twatch/remote/js_logger.php', true );
   twatchReq.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
   twatchReq.send( twatchData );
//]]>

