﻿var xmlHttp = false;
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

//function CallAddress(user_name,showtype) {
////	alert(showtype);
////  var user_name = document.getElementById("user_name").value;
////  var user_name = "qqqq";
//  if ((user_name == null) || (user_name == "")) return;
//  if ((showtype == null) || (showtype == "")) return;
//  var url = "ajax/address.asp?user_name=" + escape(user_name) + "&showtype=" + escape(showtype);
//  xmlHttp.open("GET", url, true);
//  xmlHttp.onreadystatechange = updatePage;
//  xmlHttp.send(null);  
//}

//function updatePage() {
//  if (xmlHttp.readyState < 4) {
//	address.innerHTML="loading...";
//  }
//  if (xmlHttp.readyState == 4) {
//    var response = xmlHttp.responseText;
//	address.innerHTML=response;
//  }
//}


//function CallZhifu(user_name,showtype) {
////	alert(showtype);
////  var user_name = document.getElementById("user_name").value;
////  var user_name = "qqqq";
//  if ((user_name == null) || (user_name == "")) return;
//  if ((showtype == null) || (showtype == "")) return;
//  var url = "ajax/zhifu.asp?user_name=" + escape(user_name) + "&showtype=" + escape(showtype);
//  xmlHttp.open("GET", url, true);
//  xmlHttp.onreadystatechange = updatePage_zhifu;
//  xmlHttp.send(null);  
//}

//function updatePage_zhifu() {
//  if (xmlHttp.readyState < 4) {
//	zhifu.innerHTML="loading...";
//  }
//  if (xmlHttp.readyState == 4) {
//    var response = xmlHttp.responseText;
//	zhifu.innerHTML=response;
//  }
//}


function ajax_post(strVlaue,strUrl,objectid)
{
 //$('#liSize').html("读取中...");
 //alert("haha");
 $(objectid).html("<img src=\"images/loading.gif\">");
 var send_data = "";
 //alert(strUrl);
            send_data +=strVlaue;
//            alert(send_data);
			$.ajax({
			type:"get",
			url:strUrl,
			data:send_data,
			success: function(msg)
			{
			//alert(msg)
            if (msg) $(objectid).html(msg);
			}
			
			});
}
function ajax_postf(strVlaue,strUrl,objectid)
{
 //$('#liSize').html("读取中...");
 //alert("haha");
 $(objectid).html("<img src=\"images/loading.gif\">");
 var send_data = "";
 //alert(strUrl);
            send_data +=strVlaue;
//            alert(send_data);
			$.ajax({
			type:"get",
			url:strUrl,
			data:send_data,
			success: function(msg)
			{
			//alert(msg)
            if (msg) $(objectid).html(msg);
            tb_init(objectid+' a.thickbox');
			}
			
			});
}

