// JavaScript Document

function openPopup(theUrl,w,h) {
  var left = (screen.availWidth - w)/2;
  var top = (screen.availHeight - h)/2;
  
  var args = "scrollbars,resizable" + ",width=" + w + ",height=" + h + ",top=" 
    + top + ",left= " + left;
 
  var win = window.open(theUrl, 'popup', args );
 
  /* If the window already existed, bring it to the front */
  if (win) { win.focus(); }
 
 return false;h
}

