

function ShowPanel(panelid){

	document.getElementById(panelid).style.visibility='visible';
}

function HidePanel(panelid){

	document.getElementById(panelid).style.visibility='hidden';
}


function Select(value, object, panelid){

	document.getElementById(object).innerHTML = value;
	HidePanel(panelid);
}


function Bookmark(containerid, jobid){

	var xmlHttpReq = false;
	var self = this;

		if (window.XMLHttpRequest) {

			self.xmlHttpReq = new XMLHttpRequest();
		}

		else if (window.ActiveXObject) {

			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}

		self.xmlHttpReq.open('POST', "AJAX.php?BId=" + jobid, true);
  		self.xmlHttpReq.onreadystatechange=function() {
    
			if(self.xmlHttpReq.readyState == 4) {
      			document.getElementById(containerid).innerHTML = self.xmlHttpReq.responseText;
    			}
  		}

    self.xmlHttpReq.send(null);
}



function ShowJobsOnMap(locationid){

	document.getElementById(locationid).style.visibility='visible';

}


function HideJobsOnMap(locationid){

	document.getElementById(locationid).style.visibility='hidden';

}