
//var defaultHttpRequest = null;
function sendHttpRequest(requestUrl, callbackFunc) {
	jQuery.ajax({
		   url: requestUrl, 
           type: 'GET', // 设置请求类型为 ‘POST’，默认为 ‘GET’
           cache: false,
           dataType : "text",
           error: function(XMLHttpRequest, textStatus, errorThrown) {
           		alert(textStatus + "\n\nerror:" + errorThrown);
           },
           success: function(data) {
                eval(callbackFunc + "('" + data + "')");
           }
     });
}
/*
function isHttpRequestReady(httpRequest) {
	if (httpRequest == null) {
		httpRequest = defaultHttpRequest;
	}
	if (httpRequest.readyState == 4) {
		if (httpRequest.status == 200) {
			return true;
		} else {
			//alert("There was a problem with the request.");
		}
	}
	return false;
}
*/

