// JavaScript Document
         // The server-side script
  function handleHttpResponse() { 
			
			if (http.readyState == 4) { 
			  if(http.status==200) { 
              	var results=http.responseText; 
					document.getElementById('ResponseContainer').innerHTML = results;
			  }
            } else {
			 var itLoading="Data is Loading: <img src='images/ajax-loader.gif' />";
			 	document.getElementById('ResponseContainer').innerHTML = itLoading;	 

			}
	        }
function getDefault(whereto) { 
			switch(whereto) {
				
				case "mainpage":
					var url = "http://www.infowerx.net/mainsite/msite.html";
					break;
				case "newstudent":
					var url = "http://www.infowerx.net/prosp/main.html";
					break;
				
			}
            http.open("GET", url, true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
function setGoto(thepage) { 
			switch(thepage) {
				
				case "mainpage":
					var url = "http://www.infowerx.net/mainsite/msite.html";
					break;
				case "newstudent":
					var url = "http://www.infowerx.net/prosp/main.html";
					break;
				case "CCU":
					var url= "http://www.infowerx.net/ccu/ccu.html";
					break;
				case "alumni":
					var url= "http://www.infowerx.net/alumni/alum.html";
					break;
				case "about":
					var url= "http://www.infowerx.net/about/aboutus.html";
					break;
				
			}
            http.open("GET", url, true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 

function getCal() {
		var url = "http://www.google.com/calendar/hosted/infowerx.net/embed?src=mrowens%40infowerx.net&ctz=America/New_York";
		newwindow=window.open(url,'InfoWerx_Calendar','toolbar=1,scrollbars=1,location=1,status=0,menubar=1,resizable=1','width=1024,height=768');
		if (window.focus) {newwindow.focus()}
		return false;
		}
function getContact() {
		var url = "http://www.infowerx.net/contactus/contact.php";
		newwindow=window.open(url,'InfoWerx_Contact','width=400,height=640','status=0,resizable=0');
		if (window.focus) {newwindow.focus()}
		return false;
		}

function getHTTPObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}

var http = getHTTPObject(); // We create the HTTP Object 
			if (http==null) {
				alert ("Your browser does not support HTTP Request - This site will not function appropriately.");
			}
//end of file
