
// Identify browser - not all browsers handle focus() the same.

var browser=navigator.appName + " " + navigator.appVersion;

function openInfoWindow (infoPage)

// openInfoWindow opens the passed html page parameter in a remote window.
// You can create more remote windows by naming the new window object a
// different name.

   {
   if (browser.substring(0, 8)=="Netscape")
      {
      var newWind=window.open(infoPage,'info','width=450,height=400,SCROLLBARS');
      if (newWind.opener == null)
         { newWind.opener = window; }
      else
         {
         if (browser.substring(0, 12)=="Netscape 3.0")
            newWind.focus();
         if (browser.substring(0, 12)=="Netscape 2.0")
            newWind.document.forms[0].display.focus();
         }
      }
   else
      {
      var newWind=window.open(infoPage,'info','toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=1,left=80,top=80,width=400,height=400');
      if (newWind.opener == null)
         { newWind.opener = window; }
      }
    }

//
//   sample url
//   <a href="javascript:openInfoWindow('/dohealth/member/blood/popups/page.htm')">link text</a>
//
