// Global variables
var xmlHttp=null;
var handlingURL;

function getXMLHttpObject()
{
	xmlHttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");	
	if( !window.XMLHttpRequest ) xmlHttp = function()
	{
	  try{ return new ActiveXObject("Msxml2.XMLHTTP.6.0") }catch(e){}
	  try{ return new ActiveXObject("Msxml2.XMLHTTP.3.0") }catch(e){}
	  try{ return new ActiveXObject("Msxml2.XMLHTTP") }catch(e){}
	  try{ return new ActiveXObject("Microsoft.XMLHTTP") }catch(e){}
	  throw new Error("Could not find an XMLHttpRequest alternative.")
	};
	return xmlHttp;	
}

///////////////////////////////////////////////////////////////////////


function getExpressionLinksInfo(baseURL,assayID)
{
	var arg1=assayID;
	var p=baseURL;
	
	//alert("ajax function called....");
	xmlHttp=getXMLHttpObject();
	
	handlingURL=p+"/jsp/getExpressionLinksInfo.jsp?assayID="+arg1+"&date=" + new Date().getTime(); // date parameter is a dummy one and is only used to force IE to get fresh content from the server
	//alert("URL= "+handlingURL);
	if(xmlHttp==null)
	{
		alert("Your browser does not support AJAX!");
		return false;
	}
	document.getElementById("statusDiv223").innerHTML='<img src="'+p+'/common/images/ajaxworking.gif" width=18 height=18>&nbsp;&nbsp;';
	
	xmlHttp.onreadystatechange=stateChanged862;
	xmlHttp.open("GET",handlingURL,true);
	xmlHttp.send(null);
}

function stateChanged862()
{
		//alert("state changed function called....");
		if(xmlHttp.readyState==4)
		{
			//alert("state is ready");
			document.getElementById("releventInfo223").innerHTML=xmlHttp.responseText;
			document.getElementById("statusDiv223").innerHTML='';
			//setTimeout('document.innerHTML = xmlHttp.responseText',100);
		}
}
