function wtslog(uid,dbn,ssl,page_name,invisible,text_counter,obj){
if (! page_name || page_name == '#'){
page_name = '';
}
if (! invisible || invisible == '#'){
invisible = '';
}
if (! text_counter || text_counter == '#'){
text_counter = 'no';
}
var prefix = 'https:' == document.location.protocol ? 'https://server2.web-stat.com' : 'http://server2.web-stat.com';
try{var wtsb=top.document;var wtsr=wtsb.referrer;var wtsu=wtsb.URL;}
catch(e){var wtsb=document;var wtsr=wtsb.referrer;var wtsu=wtsb.URL;}
if (page_name.length > 255){
page_name = page_name.substring(0,255);
}
if (document.title.length > 255){
document.title = document.title.substring(0,255);
}
if (wtsr.length > 510){
wtsr = wtsr.substring(0,510);
}
if (wtsu.length > 255){
wtsu = wtsu.substring(0,255);
}
var qry= 'old_format::'+uid+':'+dbn+'::'+escape(wtsr)+'::'
+screen.width+'x'+screen.height+'::'+screen.colorDepth+'::'
+encodeURIComponent(page_name)+'::'+invisible+'::'+Math.random()+'::'+escape(wtsu)+'::'+encodeURIComponent(document.title)+'::'+text_counter+'::1';
if (invisible == 'event_track'){
page_name = 'event_'+page_name;
var qry= uid+':'+dbn+'::'+escape(wtsr)+'::'
+screen.width+'x'+screen.height+'::'+screen.colorDepth+'::'
+encodeURIComponent(page_name)+'::'+invisible+'::'+Math.random()+'::'+escape(wtsu)+'::'+encodeURIComponent(document.title)+'::0::1';
if (obj){
var img = new Image();
img.onload = function(){ if (obj.target){ window.open(obj.href, obj.target); }else{ window.location = obj.href }; }
img.src = eval("prefix+'/count6.pl?'+qry");
return false;
}
else {
document.getElementById('wtscount').src=eval("prefix+'/count6.pl?'+qry");
pausecomp(1000);
return;
}
}
else {
document.write('');
document.write('');
var delay = 2000;
setTimeout(function() {doPing2(delay);}, delay);
}
}
function doPing2(delay) {
if (document.getElementById('wtstimer').innerHTML != ''){
delay = delay+1000;
sendPing2(delay);
if (delay < 60000){
setTimeout(function() {doPing2(delay);}, delay);
}
}
}
function sendPing2(delay) {
var prefix = 'https:' == document.location.protocol ? 'https://server2.web-stat.com' : 'http://server2.web-stat.com';
var uniqueID = document.getElementById('wtstimer').innerHTML;
if (uniqueID != ''){
uniqueID = uniqueID+'::'+delay+'::test';
var img2 = new Image();
img2.src = eval("prefix+'/ping_timer.pl?'+uniqueID");
}
}
function pausecomp(wtsms){
wtsd = new Date();
while (1){
wtsmill=new Date();
wtsdiff = wtsmill-wtsd;
if(wtsdiff > wtsms){
break;
}
}
}
wtslog('al245654','3','','','','');