function newAjax(){
	var xmlhttp=false;
 	try {
 		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 	} catch (e) {
 		try {
 			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 		} catch (E) {
 			xmlhttp = false;
 		}
  	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function loadContent(position, location, id, show_all, job_code, category){
	var container;
	container = document.getElementById(id);
	var ajax = newAjax();
	var URL = "../pages/misc/getPosted.php?show_all="+show_all+"&orderby="+position+"&job_code="+job_code+"&location="+location+"&category="+category+"";
	//alert(URL);
	ajax.open("GET", URL ,true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
			container.innerHTML = ajax.responseText
		}
	}
	 ajax.send(null)
	 ajax.destroy;
}

window.onload= function(){
//	loadDefaultContent();

}
