<!--

  //////////////////////////////////////////////////////////////////////////////
  // popup functions                                                          //
  //////////////////////////////////////////////////////////////////////////////

  // open an 800 x 600 or full screen popup                                   //
  function openFullScreen (url, resize, scroll) {
    // calculate top left
    var width = 750;
    var height = 550;
    var calcLeft = 100;
    var calcTop = 100;

    if ((screen.availWidth < 700) && (screen.availHeight < 900)) {
      width = screen.availWidth;
      height = screen.availHeight;
      var calcLeft = 0;
      var calcTop = 0;
    } else {
      if (parseInt(navigator.appVersion) >= 4){
        calcTop = screen.availHeight/2 - height/2;
        calcLeft = screen.availWidth/2 - width/2;
      }
    }

    // allow/deny scrollbars
    if (scroll == "") { scroll="yes" }

    window.open(url, 'popup', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=' + scroll + ',width=' + width + ',height=' + height + ',left=' + calcLeft + ',top=' + calcTop + ',resizable=' + resize);
  } 

  function fullScreen (url, scroll) {
    if (scroll == "") { scroll="yes" }

    window.open(url, 'fullscreen', ',type=fullWindow,fullscreen,scrollbars=' + scroll);
  }

  // open a popup window                                                     //
  function openWindow(htm, width, height, left, top, resize, scroll) {
    if (left == "") {left = screen.availWidth/2 - width/2}
    if (top == "") {top = screen.availHeight/2 - height/2}
    if (resize == "") {resize="yes"}
    if (scroll == "") {scroll="yes"}

    // google tool bar                                                       //
    var googleToolBar = 0;

    if (typeof(detection) != "undefined") { 
      if (typeof(detection.Search) != "undefined") { 
        googleToolBar = 1; 
      } 
    } 

    if (googleToolBar == 0) {
      popupWindow=window.open(htm,"popup",'status=no,toolbar=no,menubar=no,location=no,scrollbars=' + scroll + ',width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',resizable=' + resize);
      popupWindow.focus();
    }
  }

//-->

