function StartTimer()
{
	running = true
	now = new Date()
	now = now.getTime()
	endTime = now + (1000 * 15)
	ShowCountDown()
}

function ShowCountDown()
{
	var now = new Date()
	now = now.getTime()
	if( endTime - now <= 0 ){
		Redirect()
	}else{
		var delta = new Date( endTime - now )
		var theMin = delta.getMinutes()
		var theSec = delta.getSeconds()
		var theTime = theMin
		theTime += ((theSec < 10) ? ":0" : ":" ) + theSec
		document.forms[ 0 ].timerDisplay.value = theTime
		if( running ){
			timerID = setTimeout( "ShowCountDown()", 1000 )
		}
	}
}


function Redirect()
{
	clearTimeout( timerID )
	running = false
	document.forms[ 0 ].timerDisplay.value = "0:00"
	location = pageURL
}




