function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function stateChanged(str2)
{

if (xmlHttp.readyState==4)
{
document.getElementById(str2).innerHTML=xmlHttp.responseText;
}
alert('Got here with ' + xmlHttp.readyState + str2);
}


function findLength(str,str2)
{
if (str.length==0)
  { 
  document.getElementById(str2).innerHTML="";
  return;
  }

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="/data/find_length.html";
url=url+"?str="+str;

xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4)
{ 
document.getElementById(str2).innerHTML=xmlHttp.responseText;
}


}
xmlHttp.open("GET",url,true);


xmlHttp.send(null);
}

function findgroup(str,str2)
{
if (str.length==0)
  { 
  document.getElementById(str2).innerHTML="";
  return;
  }

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="/divisions/groups/handler.html?group="+str;

xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4)
{ 
document.getElementById(str2).innerHTML=xmlHttp.responseText;
}


}
xmlHttp.open("GET",url,true);


xmlHttp.send(null);
}

function findadmin(str,str2)
{
if (str.length==0)
  { 
  document.getElementById(str2).innerHTML="";
  return;
  }

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var url="/research/administrators/handler.html?admin="+str;

xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4)
{ 
document.getElementById(str2).innerHTML=xmlHttp.responseText;
}


}
xmlHttp.open("GET",url,true);


xmlHttp.send(null);
}

function getitem()
{


window.setTimeout( "getitem()", 6000); // 6000 milliseconds delay

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var url="/news/highlights.html?t=" + new Date().getTime();

xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4)
{ 
document.getElementById('newsban').innerHTML=xmlHttp.responseText;
col1=204;
col2=102;
col3=0;
fade();
window.setTimeout( "unfade()", 5000); // 6000 milliseconds delay
}


}
xmlHttp.open("GET",url,true);


xmlHttp.send(null);

}

function fade() { 

document.getElementById("fade").style.color="rgb(" + col1 + "," + col2 + "," + col3 + ")"; col1+=3; col2+=13; col3+=18; if(col3<187) setTimeout('fade()', 50); 
}

function unfade() { 

document.getElementById("fade").style.color="rgb(" + col1 + "," + col2 + "," + col3 + ")"; col1-=3; col2-=13; col3-=18; if(col3>=0) setTimeout('unfade()', 50); 
}

function findeid(str,str2)
{
if (str.length==0)
  {
  document.getElementById(str2).innerHTML="";
  return;
  }

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="/find_eid.html";
url=url+"?email="+str;

xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4)
{
document.membertable.eid.value=xmlHttp.responseText;
}

}
xmlHttp.open("GET",url,true);


xmlHttp.send(null);
}


