function takePost(file,func,qs,aux){
	var xmlhttp;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	try {
	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
	} catch (e) {
	try {
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	} catch (E) {
	xmlhttp=false
	}
	}
	@else
	xmlhttp=false
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false
		}
	}
	xmlhttp.open("POST", file,true);
	xmlhttp.setRequestHeader("Content-Type",
	"application/x-www-form-urlencoded");

	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			xxx=xmlhttp.responseText;
//			alert(xxx);
			runScript(xxx);
			if (func.length>0)
			eval(func+"('"+escape(encodeURIComponent(xxx))+"','"+aux+"');");
		}
	}
	xmlhttp.send(qs);
}

function decode_ajax(xxx) {
	xxx=unescape(xxx);
	xxx=decodeURIComponent(xxx);
    return xxx;
}
function runScript(text)
{
	if(text)
	{
		var prs=text.match(/<script>.*<\/script>/gim);
		if(prs)
		for(i=0; i<prs.length; i++)
		{
			var code=prs[i].split("</script>")[0].split("<script>")[1];
			eval(code);
		}
	}
}
