var otherWin = window;
function maximizeWindow()
{  
  otherWin = top;
  otherWin.moveTo(0,0);
  otherWin.resizeTo(screen.availWidth,screen.availHeight);
  otherWin.focus();
}

