function createReq(){if(typeof(XMLHttpRequest)!="undefined"){return new XMLHttpRequest();}else if(window.ActiveXObject){var Versions=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];for(var i=0;i<Versions.length;i++){try{var XMLHttp=new ActiveXObject(Versions[i]);return XMLHttp;}catch(e){}}}}
function ajaxproxy(obj,url,action){var req=createReq();obj.innerHTML="<img height='16' src='/images/loading.gif'/>";req.open("GET",url,true);req.onreadystatechange=function(){if(req.readyState==4){var httpStatus=req.status;if(httpStatus==200||httpStatus==0){action(obj,req.responseText);}else obj.innerHTML="加载失败！";}}
req.send(null);}