var req;
var which;
var m= "";var userFunc="test1234567890123(m);";

function retrievePOST(url,param,func) {
 
	//startLoading();
	if(func!=null)	userFunc=func;
	if (window.XMLHttpRequest) { // Non-IE browsers
		req = new XMLHttpRequest();
		req.onreadystatechange = processStateChange;
		try {
			req.open("POST", url, true);
		} catch (e) {
			alert(e);
		}
		req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		req.send(param);
	} else if (window.ActiveXObject) { // IE
		req = new ActiveXObject("Microsoft.XMLHTTP");
			if (req) {
				req.onreadystatechange = processStateChange;
				req.open("POST", url, true);
				req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
				req.send(param);
			}
		}
}
function retrieveURL(url,func) {
	if(func!=null)	userFunc=func;
	//startLoading();
	if (window.XMLHttpRequest) { // Non-IE browsers
		req = new XMLHttpRequest();
		req.onreadystatechange = processStateChange;
		try {
			req.open("GET", url, true);
		} catch (e) {
			alert(e);
		}
		req.send(null);
	} else if (window.ActiveXObject) { // IE
		req = new ActiveXObject("Microsoft.XMLHTTP");
			if (req) {
				req.onreadystatechange = processStateChange;
				req.open("GET", url, true);
				req.send();
			}
		}
}
function processStateChange() {
	if (req.readyState == 4) { // Complete
		if (req.status == 200) { // OK response
			m=req.responseText;
			//stopLoading();
			eval(userFunc);
		} else {
			alert("Problem: " + req.statusText);
		}
	}
}

function test1234567890123(val){
}
