var bVer  = parseInt(navigator.appVersion);
var isIE  = false;
var isNS  = false;

if ( document.all ) 
  isIE = true;
else if ( document.layers ) 
  isNS = true;

var newWin=null;

function fullScreenWindow(loc, name, sizeable, scrollbars) {

        var _params = 
          "width=" + screen.availWidth + 
          ",height=" + screen.availHeight + 
          ",resizable="+ ( sizeable ?"yes":"no") + 
          ",status=no,scrollbars="+ ( scrollbars ? "yes" : "no" )
        ;

        // position
        _left = 0;
        _top = 0;
        if (isNS) 
          _params += ",screenX=" + _left + ",screenY=" + _top;
         else 
           _params += ",top=" + _top + ",left=" + _left;

	// popup
        newWin = window.open(loc, name, _params);

	// focus
        if ( ( newWin != null ) && !( isIE && ( bVer < 5 ) ) )
          newWin.focus();

}
