
function openFullScreen(url) {
  //Check browser
  var isNav = (navigator.appName == "Netscape")?1:0;
  var isIE = (navigator.appName.indexOf("Microsoft") != -1)?1:0;
  //Check Platform
  var isMac=(navigator.platform.indexOf("Mac")>-1)?1:0;
  var isWin=(navigator.platform.indexOf("Win")>-1)?1:0;
  //Set global window options
  var opts = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizeable=no,copyhistory=no,menubar=no"
  //Set platform and browser specific options
  if (isNav) {
    //Navigator windows have outerWidth and outerHeight properties
    //use these to set window size to the available screen height and width
    opts = opts+",outerWidth="+screen.availWidth+",outerHeight="+screen.availHeight+",screenX=0,screenY=0";
  } else if (isIE) {
    //IE has a "full-screen" option which can be used by placing "fullscreen=yes" here
    opts = opts+",left=0,top=0,fullscreen=yes";
    //To size the window (rather than open in fullscreen mode) we need to know the padding
    //i.e. the space taken by the title bar and window edges. These values are subtracted
    //from the available screen width and height (different for Macs). If the new window
    //is opened with toolbars, status bar, etc. the values here should be changed to
    //compensate for the new features.
    if (isMac) {
      //this uses a value of 13 for the extra width and 32 for the extra height
      opts = opts+",width="+(screen.availWidth - 13)+",height="+(screen.availHeight - 32);
    } else if (isWin) {
      //this uses a value of 12 for the extra width and 25 for the extra height
      opts = opts+",width="+(screen.availWidth - 12)+",height="+(screen.availHeight - 25);
    } else {
      opts = opts+",width="+screen.availWidth+",height="+screen.availHeight;
    }
  } else {
    return;
  }
  //Open a new window
  var newWin = window.open(url,"NewWindow",opts);
  newWin.focus();
  //Move to 0,0 (JavaScript 1.2)
  if (parseInt(navigator.appVersion) >= 4) {
    newWin.moveTo(0,0);
  }
}
