var xmlHttpEvents
var xmlHttpHome
var xmlHttpFaculty
var xmlHttpWhatsNew
var xmlHttpHomeInfo

/****************************************************  Update Home   *********************************************/

function updateHome(strHome)
{ 
xmlHttpHome=GetXmlHttpHome();
if (xmlHttpHome==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var urlHome="http://businesstech.nemcc.edu/";
urlHome=urlHome+strHome;


xmlHttpHome.onreadystatechange=HomeChanged;
xmlHttpHome.open("GET",urlHome,true);
xmlHttpHome.send(null);
}

function HomeChanged() 
{ 
if (xmlHttpHome.readyState==4)
{ 
 if(document.getElementById("weekly")!=null)
 	{
		document.getElementById("weekly").innerHTML=xmlHttpHome.responseText;
	}
}
}

function GetXmlHttpHome()
{
var xmlHttpHome=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpHome=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpHome=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpHome=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpHome;
} 



/****************************************************  Update HomeInfo   *********************************************/
function showContent(strHomeInfo)
{ 
/*updateHome('weekly.cfm');*/
xmlHttpHomeInfo=GetXmlHttpHomeInfo();
if (xmlHttpHomeInfo==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var urlHomeInfo="http://businesstech.nemcc.edu/";
urlHomeInfo=urlHomeInfo+strHomeInfo;


xmlHttpHomeInfo.onreadystatechange=HomeInfoChanged;
xmlHttpHomeInfo.open("GET",urlHomeInfo,true);
xmlHttpHomeInfo.send(null);
}

function updateHomeInfo(strHomeInfo)
{ 
xmlHttpHomeInfo=GetXmlHttpHomeInfo();
if (xmlHttpHomeInfo==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var urlHomeInfo="http://businesstech.nemcc.edu/";
urlHomeInfo=urlHomeInfo+strHomeInfo;


xmlHttpHomeInfo.onreadystatechange=HomeInfoChanged;
xmlHttpHomeInfo.open("GET",urlHomeInfo,true);
xmlHttpHomeInfo.send(null);
}

function HomeInfoChanged() 
{ 
if (xmlHttpHomeInfo.readyState==4)
{ 
	if(document.getElementById("main-content")!=null)
	{
		document.getElementById("main-content").innerHTML=xmlHttpHomeInfo.responseText;
	}
}
}

function GetXmlHttpHomeInfo()
{
var xmlHttpHomeInfo=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpHomeInfo=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpHomeInfo=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpHomeInfo=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpHomeInfo;
} 