<!-- Hide script from old browsers

function openWindow(myLink,windowName)
   {
   if(! window.focus)return;
   var myWin=window.open("",windowName,"height=screen.height,width=screen.width,left=0,top=0,dependent=no,scrollbars=yes,location=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes");
   if (parseInt(navigator.appVersion) >= 4) { myWin.focus(); }
   myLink.target=windowName;
//   myWin.target=windowName;
   }

function popUpWindow(wLink)
   {
props = window.open(wLink,'poppage','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=*,height=*');
   if (parseInt(navigator.appVersion) >= 4) { props.focus(); }
   }


var SGPopupWindow=null;
function SGPopup( mypage, myname, w, h, pos, infocus )
{
   var LeftPosition;
   var TopPosition;

    if(pos=='random')
    {
        LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
        TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
    }
    if( pos=='center' )
    {
        LeftPosition=(screen.width)?(screen.width-w)/2:100;
        TopPosition=(screen.height)?(screen.height-h)/2:100;
    }
    else
    if( (pos!='center' && pos!='random') || pos==null)
    {
        LeftPosition=100;TopPosition=100;
    }

    var settings='width='+ w + ', height='+ h + ', top=' + TopPosition + ', left=' + LeftPosition + ', location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,dependent=no';
    SGPopupWindow=window.open( mypage, myname, settings );
    if( infocus=='front' )
    {
       SGPopupWindow.focus();
       SGPopupWindow.location=mypage;
    }
}


function NewWindow(mypage, myname, w, h, scroll)
   {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+'';
   var win = window.open(mypage, myname, winprops);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
//  End hiding -->
