function showNav(theID) {
	document.getElementById(theID).style.display = 'block';
}
function hideNav(theID) {
	document.getElementById(theID).style.display = 'none';
}
function hideNavNew(theID) {
	document.getElementById(theID).style.display = 'none';
}
function showNavNew(theID) {
	document.getElementById(theID).style.display = 'block';
}
function deleteItem() {
	if (confirm("Are you sure you want to delete this?")) {
		return true;
	} else {
		return false;	
	}
}


/*------functions added to troubleshoot navigation trouble-----------*/
function getOffsetLeft (el) {
  var ol = el.offsetLeft;
  while ((el = el.offsetParent) != null)
    ol += el.offsetLeft;
  return ol;
}
function getOffsetTop (el) {
  var ot = el.offsetTop;
  while((el = el.offsetParent) != null)
   ot += el.offsetTop;
  return ot;
}

function showImageCoordinates (image) {
  var x = getOffsetLeft(image);
  var y = getOffsetTop(image);
  alert(x + ':' + y);
}
