function getXMLHTTPRequest() {
	var xmlHttp = false;
	/*@cc_on @*/ /*@if (@_jscript_version >= 5)
	try {   xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
	catch (e) {
	try {     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");   }
	catch (e2) {     xmlHttp = false;   } }
	@end @*/
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}  	return xmlHttp;
}

function sendRequest(param, script, procRequest) {
	var req = getXMLHTTPRequest();
	if (req){
		req.open("POST", script, true);
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req.onreadystatechange = function() {
			if (req.readyState == 4){
				if (req.status == 200){
					procRequest.responseText = req.responseText;
					procRequest.run();
				}
			}
		}
		req.send(param);
	}
}
