var time = 0;

//window.onload = timer();

function timer() {

	//set timer for page load - var time counts 1 second

	var timer = window.setInterval('updatetime()', 1000);

}

function updatetime() {

	time++;

}

function getTime(id) {

	document.getElementById(id).value = time;

}

