 
var xmlHttpPREP
function showPREP (strcampus, choose)
{ 
xmlHttpPREP=GetXmlHttpObject()
if (xmlHttpPREP==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
  if (choose==0)
{
	var urlcampus="../portal/collprepajax.php?CAMPUS="+strcampus
	}
else if (choose=!0)
{var urlcampus="../portal/collegeprepgraph.php?CAMPUS="+strcampus }


xmlHttpPREP.onreadystatechange=stateChangedFOUR 
xmlHttpPREP.open("POST",urlcampus,true)
xmlHttpPREP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
 xmlHttpPREP.send(null)
}
function stateChangedFOUR() 
{ 
if (xmlHttpPREP.readyState==4 || xmlHttpPREP.readyState=="complete")
 { 
 document.getElementById("collegeprep").innerHTML=xmlHttpPREP.responseText 
  document.getElementById("collegeprepup").innerHTML=xmlHttpPREP.responseText 

} 
}

function GetXmlHttpObject()
{
var xmlHttpPREP=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpPREP=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpPREP=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpPREP=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpPREP;
}// JavaScript Document





var xmlHttpPREPCOMP
function showPREPCOMP (strcampus)
{ 
xmlHttpPREPCOMP=GetXmlHttpObject()
if (xmlHttpPREPCOMP==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var urlcampus="../portal/collegeprepcompare.php?CAMPUS="+strcampus
xmlHttpPREPCOMP.onreadystatechange=stateChangedFOURCOMP 
xmlHttpPREPCOMP.open("POST",urlcampus,true)
xmlHttpPREPCOMP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
 xmlHttpPREPCOMP.send(null)
}
function stateChangedFOURCOMP() 
{ 
if (xmlHttpPREPCOMP.readyState==4 || xmlHttpPREPCOMP.readyState=="complete")
 { 
 document.getElementById("collegeprepCOMP").innerHTML=xmlHttpPREPCOMP.responseText 
} 
}

function GetXmlHttpObject()
{
var xmlHttpPREPCOMP=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpPREPCOMP=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpPREPCOMP=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpPREPCOMP=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpPREPCOMP;
}// JavaScript Document
