// JavaScript Document
var xmlhttp;
function createXHR(){
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}else if (window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if (!xmlhttp) {
		alert('您使用的瀏覽器不支援 XMLHTTP 物件');
		return false;
	}
}


function time1(){
createXHR();
var url='times.asp';
xmlhttp.open('GET',url,true);
xmlhttp.onreadystatechange=catc;
xmlhttp.send(null);
}

function catc(){
	if(xmlhttp.readyState==4){
		
		
		var obj=document.getElementById("timers");
				if(xmlhttp.status==200){
						s=xmlhttp.responseText;			
			 			obj.innerHTML=s;		
		}
	}				
}
