xmlhttp.js 702 Bytes
// HTTP’ÊM—pA‹¤’ÊŠÖ”
function createXMLHttpRequest(cbFunc)
{
	var XMLhttpObject = null;
	try{
		XMLhttpObject = new XMLHttpRequest();
	}catch(e){
		try{
			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				return null;
			}
		}
	}
	if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
	return XMLhttpObject;
}

// document.getElementById
function $(tagId)
{
	return document.getElementById(tagId);
}

function Get_BName(){
	if (navigator.appName == "Microsoft Internet Explorer"){
		return "POST";
	}else if (navigator.appName == "Netscape"){
		return "GET";
	}else{
		return "GET";
	}
}