function imageWindow(obj, width, height) {

 new_window = window.open(obj,'',
                          'width=' + width + ',height=' + height + ',toolbar=no,location=no,' +
                          'directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function dataWindow(obj, width, height) {

 new_window = window.open(obj,'',
                          'width=' + width + ',height=' + height + ',toolbar=no,location=no,' +
                          'directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}

function showhideDiv(helpID, showIn) {

 if (document.getElementById) {

  winHelp = document.getElementById(helpID);

 } else if (document.all) {

  winHelp = document.all[helpID];

 } else if (document.layers) {

  winHelp = document.layers[helpID];
 }

 if (winHelp.style.display == "none") {

  winHelp.style.display = "block";

 } else { winHelp.style.display = "none"; }

 if (!showIn) { winHelp.style.display = "none"; }
}

function showConfirm(confirmText) {

 return confirm(confirmText);
}

function getElementPointer(objectId) {

 if (document.getElementById) {

  divObject = document.getElementById(objectId);

 } else if (document.all) {

  divObject = document.all[objectId];

 } else if (document.layers) {

  divObject = document.layers[objectId];
 }

 return divObject;
}

function showMenu(menuId) {

 divMenu = getElementPointer(menuId);
 divMenu.style.display = "block";
}

function hideMenu(menuId) {

 divMenu = getElementPointer(menuId);
 divMenu.style.display = "none";
}