// Open window code by Joe Marini
var gmyWin=null;
function myOpenWindow(winURL, winName, winFeatures, winObj){
  var theWin;
  if (winObj != null) {
    if (!winObj.closed) {
      winObj.focus();
      return winObj;
    }
  }
  theWin = window.open(winURL, winName, winFeatures);
  return theWin;
}