function tab(group,num) {
  for (i=1;i<30;i++) {
    divid = 'div'+group+'-'+i;
    if (document.getElementById(divid)) {
      if (i==num)   {
         document.getElementById(divid).className = '';
      }
      else {
        document.getElementById(divid).className = 'dspnone';
      }
    }
    else continue;
  }
}
function pop_window(pURL, pWidth, pHeight) {
  if (!pURL) {
    return;
  }
  var offsetWidth = 50;
  var offsetHeight = 70;
  var windowFeatures = "toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes,"
    + "width=" + (pWidth + offsetWidth) + ",height=" + (pHeight + offsetHeight);
  var popup = window.open(pURL, 'imagePopup', windowFeatures);
  if (popup) {
    popup.focus();
	popup.moveTo(0,0);
  }
}

