function createXMLHttpRequest(){

		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
		}
}

function loginform() {
		createXMLHttpRequest();

		xmlHttp.onreadystatechange = function() {handleStateChange("loginform")};
		xmlHttp.open("get","login.asp?flash="+ Math.random(),true);
		xmlHttp.send();
}
function loginform1() {
		createXMLHttpRequest();

		xmlHttp.onreadystatechange = function() {handleStateChange("loginform")};
		xmlHttp.open("get","../login1.asp?flash="+ Math.random(),false);
		xmlHttp.send();
}
function clicknum(db,id){
		createXMLHttpRequest();

		xmlHttp.onreadystatechange = function() {handleStateChange("clicknum")};
		xmlHttp.open("get","../click.asp?db="+db+"&id="+id+"&flash="+ Math.random(),true);
		//alert("../click.asp?db="+db+"&id="+id+"&flash="+ Math.random());
		xmlHttp.send();	   
}

function handleStateChange(area) {
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById(area).innerHTML = xmlHttp.responseText;
			}
			
		}

}
