function changeImage(obj, img, full, title) {
	document.getElementById( obj ).innerHTML='<a href="'+full+'" rel="lightbox" title="'+title+'" target="_blank"><img src="'+img+'" border=0>';
}
function updatePage(obj, data) {
	document.getElementById( obj ).innerHTML=data;
}
function xmlhttpPost(page, layer, data) {
	var xmlHttpReq = false;
	var self = this;
	// Mozilla/Safari
	if (window.XMLHttpRequest) {
		self.xmlHttpReq = new XMLHttpRequest();
	}
	// IE
	else if (window.ActiveXObject) {
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	//Open the page
	self.xmlHttpReq.open('POST', page, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() {
		// '4' means it's ready to send
		if (self.xmlHttpReq.readyState == 4) {
			updatePage(layer,self.xmlHttpReq.responseText);
		}
	}
	//Send variables to the page
	self.xmlHttpReq.send(data);
}
function showDiv(obj, link) {
	if (document.getElementById( obj ).style.display=='none') {
		document.getElementById( obj ).style.display='';
		document.getElementById( link ).innerHTML='<img src="sitegraphics/minus.gif" border=0>';
	} else {
		document.getElementById( obj ).style.display='none';
		document.getElementById( link ).innerHTML='<img src="sitegraphics/plus.gif" border=0>';
	}
}
function isNumber(evt) {
	var charCode = ( evt.which ) ? evt.which : event.keyCode;
	return ( charCode >= 48 && charCode <= 57  );
}