function popup( page, title, w, h, scroll ) {
  if (!title) title = 'Popup';
  if (!scroll) scroll = 'auto';
  if (!w) w = 500;
  if (!h) h = 350;
  var wintop = (screen.height - h) / 2;
  var winleft = (screen.width - w) / 2;
  var atts = 'width='+w+',height='+h+',scrollbars='+scroll+',resizable,screenX=150,screenY=150,top='+wintop+',left='+winleft+'';
  win = window.open( page, title, atts);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function showTxt(msg) {
  window.status=msg;
}

function hideTxt() {
  window.status='';
}

window.onerror=null;

/*
function actImg(imgName) {
  imgOn = eval(imgName + '_on.src');
  document [imgName].src = imgOn;
}

function inactImg(imgName) {
  imgOff = eval(imgName + '_off.src');
  document [imgName].src = imgOff;
}

store_off = new Image(32, 96);
store_off.src = '/nav/images/store_c.gif';
store_on = new Image(32, 96);
store_on.src = '/nav/images/store_b.gif';

partners_off = new Image(32, 96);
partners_off.src = '/nav/images/partners_c.gif';
partners_on = new Image(32, 96);
partners_on.src = '/nav/images/partners_b.gif';

support_off = new Image(32, 96);
support_off.src = '/nav/images/support_c.gif';
support_on = new Image(32, 96);
support_on.src = '/nav/images/support_b.gif';

about_off = new Image(32, 96);
about_off.src = '/nav/images/about_c.gif';
about_on = new Image(32, 96);
about_on.src = '/nav/images/about_b.gif';

home_off = new Image(32, 96);
home_off.src = '/nav/images/home_c.gif';
home_on = new Image(32, 96);
home_on.src = '/nav/images/home_b.gif';
*/

function goToURL( navigate ) {
  selectPage = navigate.page.selectedIndex ;
  page = navigate.page.options[ selectPage ].value;
  if (page.length != 0) parent.window.location = page;
}

