function getexpirydate( nodays)
{ 
	var UTCstring; 
	Today = new Date(); 
	nomilli=Date.parse(Today); 
	Today.setTime(nomilli+nodays*24*60*60*1000); 
	UTCstring = Today.toUTCString(); 
	return UTCstring; 
}
function getcookie(cookiename) 
{ 
	var cookiestring=""+document.cookie; 
	var index1=cookiestring.indexOf(cookiename); 
	if (index1==-1 || cookiename=="") return ""; 
	var index2=cookiestring.indexOf(';',index1); 
	if (index2==-1) index2=cookiestring.length; 
	return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

function setcookie(name,value,duration)
{
	cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration); 		document.cookie=cookiestring; 
	if(!getcookie(name))
		{
			return false;
		}
	else
		{
			return true;
		}
}
count= getcookie("vtscounter"); 
var vtsid,vtid; 
var newvisit ;
var ns_hp,ns_rf,ns_cf,tdb; 
vtid=new Date(); 
vtsid=vtid.getTime(); 
if(count > 0)
{
	newvisit=0;
}
else
{
	newvisit=1;
	y=setcookie('vtscounter',vtsid,1);
}
count= getcookie("vtscounter");
tdb=screen.colorDepth + "BIT"; 
ns_cf=location.href; 
document.cookie='__support_check=1';
ns_hp='http';
ns_rf=document.referrer; 
do
{ 
	ns_rf=ns_rf.replace(/&/,"*"); 
}while(ns_rf.indexOf("&") > -1) 
do
{ 
	ns_cf=ns_cf.replace(/&/,"*"); 
}while(ns_cf.indexOf("&") > -1)
if(location.href.substr(0,6).toLowerCase()=='https:') ns_hp='https';

function tracker()
{ 
	var ns_img; ns_img=new Image();
ns_img.src=ns_hp+'://www.trackyourvisitor.com/vtstrack.aspx'+'?acct='+acct+'&vid='+count+'&db='+tdb+'&rurl='+ns_rf+'&curl='+ns_cf+'&newvt='+newvisit;
}
