/* --------------------------------------------------- */
/* name:    utilities.js                               */
/* purpose: javascript utility functions               */
/* --------------------------------------------------- */
function popWindow(url, width, height, windowName) {
  /* defaults if not passed to function */
  if (!width) { width = 600; }
  if (!height) { height = 450; }
  if (!windowName) { windowName = "marcia"; }
  wref = window.open (url, windowName,
        "toolbar=no,width=" + width + ",height=" + height +
        ",directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
  if (navigator.appName == "Netscape" || navigator.appVersion.substring(0,1) == '5') {
    wref.focus();
  }
}
/* --------------------------------------------------- */
function imgOn(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "On.src");
  }
}
/* --------------------------------------------------- */
function imgOff(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "Off.src");
  }
}
/* --------------------------------------------------- */
function pageForward() { 
  with (document.pageForm) {
    startrow.value = parseInt(startrow.value) + parseInt(maxrows.value);
    submit(); 
  }
}
/* --------------------------------------------------- */
function pageBack() { 
  with (document.pageForm) {
    startrow.value = parseInt(startrow.value) - parseInt(maxrows.value);
    submit(); 
  }
}

