

function windowSize() 
{
if ((screen.width == 1152) && (screen.height == 768)) 
window.resizeTo(screen.availWidth-40,screen.availHeight-40);
else if ((screen.width == 1024) && (screen.height == 768))
window.resizeTo(screen.availWidth,screen.availHeight-40);
else window.resizeTo(screen.availWidth,screen.availHeight);

}


function openbrwindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}


function newWindow(mypage,myname,w,h,features) 
{
  var winl = 15;
  var wint = 15;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'scrollbars=yes';
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


