var re = document.referrer;
var xmlHttp_ll=false;
var xmlHttp = false;
try {
  xmlHttp_ll = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
	xmlHttp_ll = new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
	xmlHttp_ll=false;
    xmlHttp = false;
  }
}

if (!xmlHttp_ll && typeof XMLHttpRequest != 'undefined') {
xmlHttp_ll = new XMLHttpRequest();
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function callServer() {
  var ll_url = "../iframe/ll_cu.aspx?key="+escape(re);
  xmlHttp_ll.open("GET", ll_url, true);
  xmlHttp_ll.send(null);
	
  var url = "../iframe/bbs_tongji.aspx";
  xmlHttp.open('post', url, true);
  xmlHttp.onreadystatechange = updatePage;
  xmlHttp.send(null);  
}

function updatePage() {
  if (xmlHttp.readyState < 4) {
	tj.innerHTML="loading";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;
	tj.innerHTML=response;
  }
}
