<!-- Hide Javascript


/****** POPUP WINDOW SCRIPT ******/

var popupWindow = null;
var openwin = null;
var num = 1;

function popup(myTarget, myWidth, myHeight, myScroll) {
  // quick check for parameters...
  if (!myTarget || !myWidth || !myHeight) {
    alert("JAVASCRIPT ERROR: the popup() function is missing parameters.");
    return;
  }

  // internet explorer can close the open window (windows only)...
  isMac = (navigator.appVersion.indexOf("Mac") != -1);
  if (popupWindow && document.all && !isMac) {
    popupWindow.close();
    popupWindow = null;
  }

  // set the width and height based on myWidth and myHeight...
  var winwidth  = myWidth;
  var winheight = myHeight;

  // determine how to position the window based on myHeight and myWidth...
  if (window.screen) {
    var wintop  = eval((screen.availHeight - winheight)/2);  // calculated top value
    var winleft = eval((screen.availWidth - winwidth)/2);    // calculated left value
  }
  else  {
    var wintop  = 100;
    var winleft = 100;
  }

  // take care of window naming...
  var myName = "gr_popup_" + num + "";
  openwin = myName;

  // set attributes...
  var myAttributes = "";
  myAttributes += "top=" + wintop + ",left=" + winleft + ",width=" + winwidth + ",height=" + winheight + ",";
  if (myScroll == "no") {
    myAttributes += "scrollbars=no,resizable=no,status=0";
  }
  else {
    myAttributes += "scrollbars=yes,resizable=no,status=0";
  }

  // open the window...
  popupWindow = window.open(myTarget,myName,myAttributes);

  // update the counter...
  num++;

  // focus on window...
  if (parseInt(navigator.appVersion) >= 4) {
    // delay a bit here because of IE4 bug...
    setTimeout('popupWindow.focus();', 250);
  }
}

//  Stop Hiding Javascript -->