var id1;
var objXMLHttp1;
var objXMLHttp2;
var objXMLHttp3;
var objXMLHttp4;
var objXMLHttpT;
//info consists of url, the id of the object
//that will recieve the data, 
//and the id list that are required by the file



function XHRTimer(info){
 url = info[0];
 idT = info[1];
 url = url+"?whatever=1";
 for(ii=2;ii<info.length;ii++){
  temp = document.getElementById(info[ii]).value;
  url = url+"&"+info[ii]+"="+temp+"";;
 }

 objXMLHttpT=null;
 if (window.XMLHttpRequest){
  objXMLHttpT=new XMLHttpRequest();
 }
 else if (window.ActiveXObject){
  objXMLHttpT=new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
  alert("Your Browser does not support our high-tech system");
 }
 
 objXMLHttpT.onreadystatechange=getHttpResponseT; 
 objXMLHttpT.open("GET",url,true);
 objXMLHttpT.send(null);
}

function getHttpResponseT(){
 if (objXMLHttpT.readyState==4 || objXMLHttpT.readyState=="complete"){ 
  text=objXMLHttpT.responseText;
  document.getElementById(idT).innerHTML = text;
 } 
}





function XHR1(info){
 url = info[0];
 id1 = info[1];
 url = url+"?whatever=1";
 for(ii=2;ii<info.length;ii++){
  temp = document.getElementById(info[ii]).value;
  url = url+"&"+info[ii]+"="+temp+"";;
 }

 objXMLHttp1=null;
 if (window.XMLHttpRequest){
  objXMLHttp1=new XMLHttpRequest();
 }
 else if (window.ActiveXObject){
  objXMLHttp1=new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
  alert("Your Browser does not support our high-tech system");
 }
 
 objXMLHttp1.onreadystatechange=getHttpResponse1; 
 objXMLHttp1.open("GET",url,true);
 objXMLHttp1.send(null);
}

function getHttpResponse1(){
 if (objXMLHttp1.readyState==4 || objXMLHttp1.readyState=="complete"){ 
  text=objXMLHttp1.responseText;
  document.getElementById(id1).innerHTML = text;
 } 
}


var id2;


//info consists of url, the id of the object
//that will recieve the data, 
//and the id list that are required by the file

function XHR2(info){
 url = info[0];
 id2 = info[1];
 url = url+"?whatever=1";
 for(ii=2;ii<info.length;ii++){
  temp = document.getElementById(info[ii]).value;
  url = url+"&"+info[ii]+"="+temp+"";;
 }

 objXMLHttp2=null;
 if (window.XMLHttpRequest){
  objXMLHttp2=new XMLHttpRequest();
 }
 else if (window.ActiveXObject){
  objXMLHttp2=new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
  alert("Your Browser does not support our high-tech system");
 }
 
 objXMLHttp2.onreadystatechange=getHttpResponse2; 
 objXMLHttp2.open("GET",url,true);
 objXMLHttp2.send(null);
}

function getHttpResponse2(){
 if (objXMLHttp2.readyState==4 || objXMLHttp2.readyState=="complete"){ 
  text=objXMLHttp2.responseText;
  document.getElementById(id2).innerHTML = text;
 } 
}

var id3;


//info consists of url, the id of the object
//that will recieve the data, 
//and the id list that are required by the file

function XHR3(info){
 url = info[0];
 id3 = info[1];
 url = url+"?whatever=1";
 for(ii=2;ii<info.length;ii++){
  temp = document.getElementById(info[ii]).value;
  url = url+"&"+info[ii]+"="+temp+"";;
 }

 objXMLHttp3=null;
 if (window.XMLHttpRequest){
  objXMLHttp3=new XMLHttpRequest();
 }
 else if (window.ActiveXObject){
  objXMLHttp3=new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
  alert("Your Browser does not support our high-tech system");
 }
 
 objXMLHttp3.onreadystatechange=getHttpResponse3; 
 objXMLHttp3.open("GET",url,true);
 objXMLHttp3.send(null);
}

function getHttpResponse3(){
 if (objXMLHttp3.readyState==4 || objXMLHttp3.readyState=="complete"){ 
  text=objXMLHttp3.responseText;
  document.getElementById(id3).innerHTML = text;
 } 
}


var id4;


//info consists of url, the id of the object
//that will recieve the data, 
//and the id list that are required by the file

function XHR4(info){
 url = info[0];
 id4 = info[1];
 url = url+"?whatever=1";
 for(ii=2;ii<info.length;ii++){
  temp = document.getElementById(info[ii]).value;
  url = url+"&"+info[ii]+"="+temp+"";;
 }

 objXMLHttp4=null;
 if (window.XMLHttpRequest){
  objXMLHttp4=new XMLHttpRequest();
 }
 else if (window.ActiveXObject){
  objXMLHttp4=new ActiveXObject("Microsoft.XMLHTTP");
 }
 else{
  alert("Your Browser does not support our high-tech system");
 }
 
 objXMLHttp4.onreadystatechange=getHttpResponse4; 
 objXMLHttp4.open("GET",url,true);
 objXMLHttp4.send(null);
}

function getHttpResponse4(){
 if (objXMLHttp4.readyState==4 || objXMLHttp4.readyState=="complete"){ 
  text=objXMLHttp4.responseText;
  document.getElementById(id4).innerHTML = text;
 } 
}
