function loadPage(url, title) {
	loadIntoSection(url, "contentDivInner", title);
}

function loadIntoSection(inUrl, inSection, inTitle) {
	var newLoadObj = new lisObj(inUrl, inSection, inTitle);
	return newLoadObj;
}

function lisObj (inUrl, inSection, inTitle) {
	//alert("Just Checkin in loadIntoSection(inUrl,inSection,inTitle) given values\nurl:" + inUrl + "\nsection: " + inSection + "\ntitle: " + inTitle);
	var section = getSection(inSection);
	var url = inUrl;
	var title = inTitle;
	var httpSec = getHTTPObject();	

	this.startSend = startSend;
	this.foundResponse = foundResponse;

	startSend();

//----------------------------------------------

	function startSend() {

		if(title && title != "") {
			section.innerHTML = "Loading " + title + "...";
		}

		httpSec.open("GET", url, true);
		httpSec.onreadystatechange = foundResponse;
		httpSec.send(null);
	}

//----------------------------------------------	

	function foundResponse() {
		if(httpSec.readyState==4) {
			try {
				section.innerHTML = httpSec.responseText;
			} catch (exx) {
				alert("Error in (inUrl,inSection,inTitle) given values\nurl:" + inUrl + "\nsection: " + inSection + "\ntitle: " + inTitle);
			}

			// NOTE - IF 'SECTION' ISN'T SET TO NULL
			// FIREFOX WILL CRASH NEXT TIME THE ELEMENT THAT SECTION IS 
			// REFERENCING GETS RE-REFERENCED! (THROUGH JAVASCRIPT OR THROUGH USER ACTION)
			section = null;
			httpSec = null;
			return;
		}
	} // end foundResponse()



} // end loadIntoSection


function getSection(inSection) {
	if(typeof(inSection)=='string') {
		section = document.getElementById(inSection);
		if(!section) {
			alert("function getSection() Error:\nCouldn't find element to load result using id: " + section);
			return false;
		}
	} else {
		return inSection;
	}
	return section
}



function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}