var includefiles=[
"quiz/university-brick-entryway.htm",
"quiz/westhampton-lake.htm",
"quiz/boatwright.htm",
"quiz/what-occupied-campus-land.htm",
"quiz/weshampton-students-radios.htm",
"quiz/student-allowed-dance.htm",
"quiz/building-not-the-first.htm",
"quiz/pres-1971-1986.htm",
"quiz/pres-1946-1971.htm",
"quiz/building-named-for-first-pres.htm",
"quiz/designed-original-building.htm",
"quiz/ur-first-pres.htm",
"quiz/westhampton-found.htm",
"quiz/ric-col-chartered.htm", 
"quiz/ur-trace-begin.htm"
];

var rootdomain="http://"+window.location.hostname+"/";
//var rootdomain = "http://virtualweb2/";
var useDiv;
var xmlHttp;

function ajaxinclude(divId) {
   /*
   alert(rootdomain+includefiles[0]);
   alert(Math.floor(Math.random()*(includefiles.length)));
  */ url=rootdomain+includefiles[Math.floor(Math.random()*(includefiles.length))];
   //alert(url);
  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
  {
    document.getElementById(divId).innerHTML= "Old browser.";
    return;
  } 
  useDiv = divId;
  xmlHttp.onreadystatechange=showPoll 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null)
}

function showPoll() {
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
  { 
    if (xmlHttp.status==200) {
       document.getElementById(useDiv).innerHTML=xmlHttp.responseText 
    }
    //else {
    //   alert('404');
    //}
  } 
}
function GetXmlHttpObject()
{ 
  var objXMLHttp=null
  if (window.XMLHttpRequest)
  {
    objXMLHttp=new XMLHttpRequest()
  }
  else if (window.ActiveXObject)
  {
    objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
  return objXMLHttp
}

<!--
function switchDiv(good) {
   ToggleDiv('quiz_check');
   ToggleDiv(good);
disableRadioGroup(document.the_form.AnswerID); 
 document.getElementById("selectColor").style.color = '#b82a16';
}
function ToggleDiv(divName) { 
   var el; 
   if (document.getElementById) { 
      // DOM3 = IE5, NS6 
      el = document.getElementById(divName); 
      if (el.style.display == 'none') { 
         el.style.display = ''; 
      } else { 
         el.style.display = 'none'; 
      } 
   } else if (document.layers) { 
      // Netscape 4 
      el = document.divName; 
      if (el.style.display == 'none') 
         el.style.display = ''; 
      else el.style.display = 'none'; 
   } else { 
      // IE 4 
      if (document.all.divName.style.display == 'none') 
         document.all.divName.style.display = ''; 
      else 
         document.all.divName.style.display = 'none'; 
   } 
}

function disableRadioGroup(radioGroup)
{
  if(document.forms["the_form"].elements["AnswerID"].checked){
  	for(var i=0; i < radioGroup.length; i++)
	  {
	    radioGroup[i].disabled = false;
	  }
  }

else
{
  	for(var i=0; i < radioGroup.length; i++)
	  {
	    radioGroup[i].disabled = true;
	  }
}
}
// -->