var xmlHttp
var t_eid,t_eid2
var xhrTimeout;

function load_data_1(URL){
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
	xmlHttp.onreadystatechange=stateChanged_1;
	xmlHttp.open("GET",URL,true);
	xmlHttp.send(null);
}

function load_data_2(URL){
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
	xmlHttp.onreadystatechange=stateChanged_2;
	xmlHttp.open("GET",URL,true);
	xmlHttp.send(null);
}

function load_data_v2(URL,dest){
	t_eid2 = dest;
	xhrTimeout=setTimeout('ajaxTimeout();',15000);
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",URL,true);
	xmlHttp.send(null);
}

function stateChanged(){ 
	if (xmlHttp.readyState==4){
		window.clearTimeout(xhrTimeout);
		t_eid = xmlHttp.responseText;
		do_this(t_eid);
	}
}


function stateChanged_1(){ 
	if (xmlHttp.readyState==4){
		t_eid = xmlHttp.responseText;
		do_this_1(t_eid);
	}
}

function stateChanged_2(){ 
	if (xmlHttp.readyState==4){
		t_eid = xmlHttp.responseText;
		do_this_2(t_eid,t_eid2);
	}
}


function ajaxTimeout(){
  xmlHttp.abort();
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try{xmlHttp=new XMLHttpRequest();}
	catch(e){
	  try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
	  catch (e){
	    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	}
	return xmlHttp;
}

