var IDLE_TIME = 120000;
var timerID = -1;

function resetTimer() {
	if (timerID != -1) {
		clearTimeout(timerID);
		startTimer();
	}
}

function startTimer() {
	timerID = window.setTimeout("timeOut()",IDLE_TIME);
}

function timeOut() {
	if (timerID != -1) {
		location.replace("/site");
		startTimer();
	}
}
