var xmlHttp; //定义一个全局变量
function CreateXMLHttpRequest(){
	if (window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else{
		xmlHttp = new XMLHttpRequest();
	}
}

function runData(url,SendData){
	CreateXMLHttpRequest();
	if(xmlHttp){
		xmlHttp.open('post',url,false);
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xmlHttp.Send(SendData);
		return xmlHttp.responseText;
	}else{
		return 'afsdfsd';
	}
}
