function ajax_run(url,method){
  var xmlhttp;
  try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}
  catch (e) {
    try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
    catch (e) {xmlhttp = false;}
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    try {xmlhttp = new XMLHttpRequest();}
    catch (e) {xmlhttp=false;}
  }
  if (!xmlhttp && window.createRequest) {
    try {xmlhttp = window.createRequest();}
    catch (e) {xmlhttp=false;}
  }
  if(method==null) method='GET'
  xmlhttp.open(method, url, true);
  xmlhttp.onreadystatechange = function () { ajax_OnReadyStateChng(xmlhttp);};
  xmlhttp.send(null);
}
function ajax_OnReadyStateChng(xmlhttp) {
  if (xmlhttp.readyState == 4) {
    if(xmlhttp.status == 200){ajax_returned(ajax_transcode(xmlhttp.responseText));/*真正返回数据*/}
    else{alert('HTTP 错误,错误代码:' + xmlhttp.status);ajax_returned('');}
  }else{ajax_unreturn();}
}

function ajax_transcode(ors){
  if(ors.substr(0,18)=='%7C%5Eescape%5E%7C') ors=unescape(ors.substr(18));
  return ors;
}
function ajax_unreturn(){
}
function ajax_returned(rs){
  alert(rs);
}
