var xmlHttpDISP 
function showDISP (strcampus, choose)
{ 
xmlHttpDISP=GetXmlHttpObject()
if (xmlHttpDISP==null)
{
alert ("Browser does not support HTTP Request")
return
}
var	USERID=choose; 

if (choose==0)
{var urlcampus="http://www.idra.org/portal/dispajax.php?CAMPUS="+strcampus }  //delivers link
else if (choose=!0)
{
var urlcampus="http://www.idra.org/portal/disappearancegraph.php?CAMPUS="+strcampus+"&"+"USER="+USERID; 	 
}

xmlHttpDISP.onreadystatechange=stateChangedthree 
xmlHttpDISP.open("POST",urlcampus,true)
xmlHttpDISP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
 xmlHttpDISP.send(null)
}

function stateChangedthree() 
{ 
if (xmlHttpDISP.readyState==4 || xmlHttpDISP.readyState=="complete")
{ 
document.getElementById("disappearancerate").innerHTML=xmlHttpDISP.responseText 
document.getElementById("disappearancerateup").innerHTML=xmlHttpDISP.responseText 
} 
}

function GetXmlHttpObject()
{
var xmlHttpDISP=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpDISP=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpDISP=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpDISP=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpDISP;
}// JavaScript Document
/////////////////////////////////////////////////////////////////////////////////////////////////
 var xmlHttpDISPCOMP
 
function showDISPCOMP (strcampusCOMP)
{ 
xmlHttpDISPCOMP=GetXmlHttpObject()
if (xmlHttpDISPCOMP==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

var urlcampus="http://www.idra.org/portal/disappearancecompare.php?CAMPUS="+strcampusCOMP
xmlHttpDISPCOMP.onreadystatechange=stateChangedthreeCOMP
xmlHttpDISPCOMP.open("POST",urlcampus,true)
xmlHttpDISPCOMP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
 xmlHttpDISPCOMP.send(null)
}


function stateChangedthreeCOMP() 
{ 
if (xmlHttpDISPCOMP.readyState==4 || xmlHttpDISPCOMP.readyState=="complete")
 { 
 document.getElementById("disappearancerateCOMP").innerHTML=xmlHttpDISPCOMP.responseText 

} 
}

function GetXmlHttpObjectCOMP()
{
var xmlHttpDISPCOMP=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpDISPCOMP=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpDISPCOMP=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpDISPCOMP=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpDISPCOMP;
}// JavaScript Document
