
    var qryStr = '';

    String.prototype.replaceAll=function(s1, s2) { 
        return this.replace(new RegExp(s1,"g"), s2);
	};


	function xmlhttpPost(strURL) {
    	var xmlHttpReq = false;
    	var self = this;
    	// Mozilla/Safari
    	if (window.XMLHttpRequest) {
        	self.xmlHttpReq = new XMLHttpRequest();
    	}
    	// IE
    	else if (window.ActiveXObject) {
        	self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    	self.xmlHttpReq.open('POST', strURL, true);
    	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    	self.xmlHttpReq.onreadystatechange = function() {
        	if (self.xmlHttpReq.readyState == 4) {
            	// alert(updatepage(self.xmlHttpReq.responseText));
       		}
    	}
    	self.xmlHttpReq.send(getquerystring());
	}


	function getquerystring() {

       if(set_website  == '' ){ set_website  = '';  }; qryStr  += 'set_website='+ set_website +'&';
       if(set_campaign == '' ){ set_campaign = '';  }; qryStr  += 'set_campaign='+ set_campaign +'&';
       if(set_category == '' ){ set_category = '';  }; qryStr  += 'set_category='+ set_category +'&';
       if(set_comment  == '' ){ set_comment  = '';  }; qryStr  += 'set_comment='+ set_comment +'&';
       if (document.referrer != ''){ qryStr += 'ref='+ document.referrer +'&';  };

       var fullPageURL = ''+document.location.hostname+''+document.location.pathname+''
 
            if(window.location.search != '' ){
				repl = window.location.search;
				fullQstr = repl.replaceAll('[&]','[RPL_p]');
                qryStr += 'loc='+ fullPageURL +''+ fullQstr +'&'; 
            }else{
                qryStr += 'loc='+ fullPageURL +'&'; 
            };

       
	    if(prop1)		{ qryStr += 'prop1='+ prop1 +'&'; 			}; 
        if(prop1_data)	{ qryStr += 'prop1_data='+ prop1_data +'&'; };
	    if(prop2)		{ qryStr += 'prop2='+ prop2 +'&'; 			};
        if(prop2_data)	{ qryStr += 'prop2_data='+ prop2_data +'&'; };	
	    if(prop3)		{ qryStr += 'prop3='+ prop3 +'&'; 			};
        if(prop3_data)	{ qryStr += 'prop3_data='+ prop3_data +'&'; };	
	    if(prop4)		{ qryStr += 'prop4='+ prop4 +'&'; 			};
        if(prop4_data)	{ qryStr += 'prop4_data='+ prop4_data +'&'; };	
	    if(prop5)		{ qryStr += 'prop5='+ prop5 +'&'; 			};
        if(prop5_data)	{ qryStr += 'prop5_data='+ prop5_data +'&'; };	
	    if(prop6)		{ qryStr += 'prop6='+ prop6 +'&'; 			}; 
        if(prop6_data)	{ qryStr += 'prop6_data='+ prop6_data +'&'; };
	    if(prop7)		{ qryStr += 'prop7='+ prop7 +'&'; 			};
        if(prop7_data)	{ qryStr += 'prop7_data='+ prop7_data +'&'; };	
	    if(prop8)		{ qryStr += 'prop8='+ prop8 +'&'; 			};
        if(prop8_data)	{ qryStr += 'prop8_data='+ prop8_data +'&'; };	
	    if(prop9)		{ qryStr += 'prop9='+ prop9 +'&'; 			};
        if(prop9_data)	{ qryStr += 'prop9_data='+ prop9_data +'&'; };	
	    if(prop10)		{ qryStr += 'prop10='+ prop10+'&'; 			};
        if(prop10_data)	{ qryStr += 'prop10_data='+ prop10_data +'&'; };	
/*	    if(prop11)		{ qryStr += 'prop11='+ prop11 +'&'; 			}; 
        if(prop11_data)	{ qryStr += 'prop11_data='+ prop11_data +'&'; };
	    if(prop12)		{ qryStr += 'prop12='+ prop12 +'&'; 			};
        if(prop12_data)	{ qryStr += 'prop12_data='+ prop12_data +'&'; };	
	    if(prop13)		{ qryStr += 'prop13='+ prop13 +'&'; 			};
        if(prop13_data)	{ qryStr += 'prop13_data='+ prop13_data +'&'; };	
	    if(prop14)		{ qryStr += 'prop14='+ prop14 +'&'; 			};
        if(prop14_data)	{ qryStr += 'prop14_data='+ prop14_data +'&'; };	
	    if(prop15)		{ qryStr += 'prop15='+ prop15+'&'; 			};
        if(prop15_data)	{ qryStr += 'prop15_data='+ prop15_data +'&'; };	
*/
        //alert(qryStr);

    	return qryStr;
	}



	xmlhttpPost("/stats/proxy.php?"+ qryStr +"");
