twoColors = new Array();
twoColors[0] = "#33FF66";
twoColors[1] = "#FF0000";
var kilograms;
var pvcKgs;
kilograms = 0.0001;
pvcKgs=0.0001;
function addEachSecond(k)
{
	var incrementalFactor = checkCounter(c_Name);
	kilograms = incrementalFactor * 0.41667;
	pvcKgs = incrementalFactor * 0.520833;
var cdate = Math.round(kilograms);

var cdatepvc = Math.round(pvcKgs);
	if (document.all)
	{
		document.all.recycle2000.innerHTML=cdate + ' Kgs';
		document.all.pvc2500.innerHTML=cdatepvc + ' Kgs';
	}
	else if (document.getElementById)
	{
		document.getElementById("recycle2000").innerHTML=cdate + ' Kgs';
		document.getElementById("pvc2500").innerHTML=cdatepvc + ' Kgs';
	}
	else
	{
		document.write(cdate + ' Kgs');
		document.write(cdatepvc + ' Kgs');
	}
}

function goforit()
{
	if (document.all||document.getElementById)
	{
		setInterval("addEachSecond()",1000);
	}

}
window.onload=goforit();
