var http;
var str;
var flag;


function getData(url) {

	try {
		http = new ActiveXObject("Msxml2.XMLHTTP");
		flag = 0;
	} catch (e) {
		flag = 1;
		try {
		 http = new ActiveXObject("Microsoft.XMLHTTP");
		 flag = 0;
		} catch (e2) {
		 http = false;
		 flag = 1;
		}
	}

    if (!http && typeof XMLHttpRequest != 'undefined') {
		http = new XMLHttpRequest();
		http.overrideMimeType("text/html;charset=utf-8");//�趨��utf8����ʶ�����
		//alert(http);
	}

	http.open("GET",url,false);
	http.setRequestHeader( "Content-Type", "text/html;charset=utf-8" );
	http.send(null);
	//alert(http.status);//=200 ҳ�����
    if(http.status!=200){
		return "请求超时 请刷新...";
	}else{

	   return http.responseText;

    }
} //--end fun GetData()

function load(url) {
	$.getScript(url, function(data){
		return data;
	});
}
