function load(container, target) {
	//Display loading indicator
	document.getElementById(container).innerHTML = "<html><body><center><img src='images/loading.gif' height='62' width='62' alt='loading' /></center></body></html>";
	try {
		//Attempt to load ActiveX Socket in IE first, if fails, then attempt XMLHttp in Firefox/Webkit
		httpSocket = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e) {
		//Old browser, kill it
		alert("It appears that your browser does not support AJAX, please update your browser to its latest version");
	}

	httpSocket.onreadystatechange = function(){
		pageCheck(httpSocket, container)		
	}
	
	httpSocket.open('GET', target, true)

	//IE Requires Return :P Damn you microsoft!!
	httpSocket.send(null)

	return false;
}

function pageCheck(pageRequest,container) {
	if (pageRequest.readyState == 4 && (pageRequest.status == 200 || window.location.href.indexOf("http")==-1)) {
	  document.getElementById(container).innerHTML = pageRequest.responseText
	}
}