function newWindow(file, winName, w, h, scroll){
  var winl;
  if(w == 0){winl = 0; w = screen.width - 10; } // iti -10 to allow for the new window's borders
  else winl = (screen.width-w-10) / 2;
  var wint;
  if(h == 0){wint = 0; h = screen.height - 55; } // iti -55 to allow for a bottom menu bar
  else wint = (screen.height-h-55)/2; // iti added -55
  
  properties='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
  win = window.open(file, winName, properties);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function zeroStr(val){
  return (val.replace(/ /g,"").length == 0)? true : false ;
}
