function ET_openAppWindowSubURL(subURL, windowName) { //v2.3
    // this function requires that TPLINKS.JS file has been included ALSO
    // TPLINKS.JS specifies the "staf_url_tp" - used to eliminate hardcoding of URL addresses
    var agt = navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('spoofer') == -1));
    var is_ie = (agt.indexOf("msie") != -1);
    var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1));
    var w   = screen.availWidth;
    var h   = screen.availHeight;
    var features;
    if (is_nav)
       features  = "scrollbars=yes,resizable=yes,screenX=0,screenY=0,outerWidth=" + w + ",outerHeight=" + h
    else {
       w=w-10;
       h=h-30;
       features = "scrollbars=yes,resizable=yes,left=0,top=0,width=" + w + ",height=" + h
    }
    if (windowName){
       winName = windowName;
    }else{
       winName="ETAppWindow";
    }
    winName="ETAppWindow";
        var theURL = staff_url_tp + subURL;
    appWin=window.open(theURL,winName,features);
    if(!is_ie4)
       setTimeout('appWin.focus();',40);

    }



function ET_openAppWindow(theURL, windowName) { //v2.2
  var agt = navigator.userAgent.toLowerCase();
  var is_major = parseInt(navigator.appVersion);
  var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('spoofer') == -1));
  var is_ie = (agt.indexOf("msie") != -1);
  var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1));
  var w = screen.availWidth;
  var h = screen.availHeight;
  var features;
  if (is_nav)
   features  = "scrollbars=yes,resizable=yes,screenX=0,screenY=0,outerWidth=" + w + ",outerHeight=" + h
  else {
   w=w-10;
   h=h-30;
   features = "scrollbars=yes,resizable=yes,left=0,top=0,width=" + w + ",height=" + h
  }
   if (windowName){
        winName = windowName;
   }else{
        winName="ETAppWindow";
   }
   appWin=window.open(theURL,winName,features);
   if(!is_ie4)
    setTimeout('appWin.focus();',40);
 }

function ET_openHelpWindow(theURL) { //v2.0
  var agt = navigator.userAgent.toLowerCase();
  var is_major = parseInt(navigator.appVersion);
  var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('spoofer') == -1));
  var is_ie = (agt.indexOf("msie") != -1);
  var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1));
  var w = screen.availWidth;
  var h = screen.availHeight;
  var features;
  if (is_nav)
   features  = "scrollbars=yes,resizable=yes,screenX=0,screenY=0,outerWidth=" + w + ",outerHeight=" + h
  else {
   w=w-10;
   h=h-30;
   features="scrollbars=yes,resizable=yes,height=480,width=450";
  }
  winName="ETHelpWindow";
  appWin=window.open(theURL,winName,features);
  if(!is_ie4)
    setTimeout('appWin.focus();',40);
 }

 function ET_openHelpWindowSubURL(subURL, windowName) {
    // this function requires that TPLINKS.JS file has been included ALSO
    // TPLINKS.JS specifies the "staf_url_tp" - used to eliminate hardcoding of URL addresses
  var agt = navigator.userAgent.toLowerCase();
  var is_major = parseInt(navigator.appVersion);
  var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('spoofer') == -1));
  var is_ie = (agt.indexOf("msie") != -1);
  var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1));
  var w = screen.availWidth;
  var h = screen.availHeight;
  var features;
  if (is_nav)
   features  = "scrollbars=yes,resizable=yes,screenX=0,screenY=0,outerWidth=" + w + ",outerHeight=" + h
  else {
   w=w-10;
   h=h-30;
   features="scrollbars=yes,resizable=yes,height=480,width=450";
  }
  if (windowName) {
      winName = windowName;
  }else{
    winName="ETHelpWindow";
  }
  var theURL = help_url + subURL;
  appWin=window.open(theURL,winName,features);
  if(!is_ie4)
    setTimeout('appWin.focus();',40);
 }

function ET_goToURLInParent(theURL) {
  var agt = navigator.userAgent.toLowerCase();
  var is_major = parseInt(navigator.appVersion);
  //var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('spoofer') == -1));
  var is_ie = (agt.indexOf("msie") != -1);
  var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1));

  //BAL - Added test for closed
  //BAL 03/22/2002 - Added test for IE4. IE4 doesn't support the test for self.top.opener
  //                 Added setTimeout to fix problem with IE5 on Mac trying to close before focus set
  if (!is_ie4 && self.top.opener && !self.top.opener.closed) {
    self.top.opener.location=theURL;
    self.top.opener.focus();
    // Give the window plenty of time to finish what it's doing before closing
    window.setTimeout("self.top.close()", 500);
  } else {
    self.top.location=theURL;
  }
 }

 function MM_openBrWindow(theURL,winName,features) { //v2.0
   window.open(theURL,winName,features);
 }

