<!-- 
// 
 var milisec=0;
 //var seconds=10; 
 var timer = document.getElementById("timer");
 var a_end = "</a>";
 var fmt1 = '<span class="flash1">';
 var fmt2 = '<span class="flash2">';
 var stopTimer = false;
 timer.innerHTML='Expires in 10:00';

function display(){
if (!stopTimer) {
 if (milisec<=0){ 
    milisec=9;
    seconds-=1; 
 } 
 if (seconds<=0){ 
    milisec=0;
	if (seconds <= 0) {
		stopTimer = true;
		window.location="timeout.php";
	}
    //seconds+=1; 
 }
 else 
    milisec-=1; 
	mins = parseInt(seconds/60);
	secs = seconds % 60;
	min_place = "";
	sec_place = "";
	format = "";
	format_close = "";
	if (mins < 10) {
		min_place = "0";
	} else if (mins == 0) {
		min_place = "00";
	}
	if (secs < 10) {
		sec_place = "0";
	} else if (secs == 0) {
		sec_place = "00";
	}
	if (seconds < 60) {
		if ((seconds % 2) == 0) {
			format = a+fmt1;
		} else {
			format = a+fmt2;
		}
		format_close = "</span>"+a_end;
	}
    timer.innerHTML=format+"Expires in "+min_place+parseInt(seconds/60)+":"+sec_place+(seconds % 60)+format_close; 
    setTimeout("display()",100) 
}
} 
display() 
--> 