var ns4=(document.layers)?true:false;
var ns6=(document.getElementById&&!document.all)?true:false;
var ie4=(document.all&&!document.getElementById)?true:false;
var ie5=(document.getElementById)?true:false;
// var counter;
var showDots = true

function update(){
	var now = new Date()
    var hours = now.getHours()
    var minutes = now.getMinutes()
    var seconds = now.getSeconds()
    var timeValue = ((hours < 10) ? "0" : "") + hours
	//if(showDots){
	    timeValue = timeValue + "<span style='text-decoration: blink;'>:</span>" + ((minutes < 10) ? "0" : "") + minutes
	//	showDots = false
	//} else {
	//    timeValue = timeValue + "<span style='text-decoration: blink;'>:</span>" + ((minutes < 10) ? "0" : "") + minutes
	//	showDots = true
	//}
	
	// alert(counter);
	// if(!counter) counter = 1;
	if(ns4){
		document.ntTime.innerHTML=timeValue;
	}else if(ns6){
		document.getElementById('ntTime').innerHTML=timeValue;
	}else if(ie4){
		document.all.ntTime.innerHTML=timeValue;
	}else if(ie5){
		document.getElementById('ntTime').innerHTML=timeValue;
	}
	//counter++;
	setTimeout('update()',30000);
}

function windowOpener(url,width,height,name,scrollers) {
	browserName = navigator.appName;
	browserVer = navigator.appVersion.substring(0,1);
	if (width==null) {width=400;}
	if (height==null) {height=400;}
	if (name==null) {name="globaltPopup"}
	var topPx = (browserName=="Netscape").php?"screenX":"top";
	var leftPx = (browserName=="Netscape").php?"screenY":"left";
      var winl = (screen.width - width) / 2;
      var wint = ((screen.height - height) / 2) - 25;
	if(wint < 0)
		wint = 0; 
	if (browserName != "Netscape" || browserVer != 2) {
		controlWindow=window.open( url,name,"toolbar=no,height="+height+",width="+width+",location=no,directories=no,status=no,menubar=no,scrollbars="+scrollers+",resizable=no,"+leftPx+"="+winl+","+topPx+"="+wint+"");
	}
}