function confirmLogout() {
  if(confirm("Are you sure you want to logout?\n\nOk to continue, Cancel to Abort."))
    window.location='/logout/';
}

function loginReferer() {
  var strLocation, strSubmit;
  strLocation = document.location.href;
  intLocation = strLocation.indexOf("#");
  if (intLocation > 0) {
    strSubmit = strLocation.substr(intLocation + 1);
    if (strSubmit.length > 2)
      loginForm.loginReferer.value = strSubmit;
  }
}										

function showLayer(layerID) {
  document.getElementById(layerID).style.display='block';
}

function hideLayer(layerID) {
  document.getElementById(layerID).style.display='none';
}

