
// This should go into the bottom of the page for external links to be put into a windows

var ExternalWin;

function ExternalW(url)

 {if (ExternalWin) {if (!ExternalWin.closed) {ExternalWin.close();ExternalWin.close();} }
  Params="screenX=40,left=40,screenY=40,top=60,width=790,height=450,directories=1,location=1,menubar=1,resizable=1,scrollbars=1,toolbar=1"
  ExternalWin = window.open(url,"_blank",Params);
  return false;
 }

// adjust  the Paramerters in varable Params
//Note: Screen position  parameters:
// is NetScape  screenX and screenY
// it IEx is left and top
//(no spaces in the Params)

function changeLinks()
    {
      var as,i,islink;

// grab all links, loop over them;
      as=document.getElementsByTagName('a');
      for(i=0;i<as.length;i++)
      {
// check which link has a Target of _blank and an HREF's  send this one to popup
      if (as[i].getAttribute('href')) 
       {
      if (as[i].getAttribute('target')) 
       {
   if( (as[i].getAttribute('target')).toLowerCase() == '_blank')
        {
//         as[i].onclick=function(event){return(doTooltip(event,0,this));};

// Adjust the onClick event to open a window of a specific size
             as[i].onclick=function(event){return(ExternalW(this.href));};
          }
         }  
      } }
    }

// if the browser can deal with DOM, call the function onload
  if(document.getElementById && document.createTextNode)
    {
  changeLinks();
    }
