function process() { getval = 'ref='+encodeURIComponent(document.referrer)+'&page='+encodeURIComponent(location.href)+'&site_id=12'; document.write(''); } process();