// PRODUCT COUNTER | JavaScript Document //

function counter() {
	
    startpop 	= 	2731540; // 2241500 change from here  // //2445168 ORIGINAL COUNT // 2443859 ORIGINAL COUNT
    poprate 	= 	0.0909;
 
    today = new Date()
    startdatepop = new Date("May 19, 2011")
    offset = today.getTimezoneOffset() * 60 * 1000
 
    diffpop = (( today.getTime() + offset ) - startdatepop.getTime() ) / 1000;
 
    var newpop = Math.ceil(startpop + (diffpop * poprate));
    newpop = "" + newpop;
 
    a1 = newpop.substring(0,1)
	a2 = newpop.substring(1,4)
	a3 = newpop.substring(4,7)
 
	//formpop = a1 + "," + a2 + "," + a3;
	formpop = a1 + a2 + a3;
 
    document.pcount.pop.value = formpop;
 
    setTimeout('counter()',200);
}
