function centeredWin(url,name,w,h,scroll,z) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+z+''
win = window.open(url,name,winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function placeWin(url,name,w,h,t,l,scroll,z) {
winprops='height='+h+',width='+w+',top='+t+',left='+l+',scrollbars='+scroll+',resizable='+z+''
win = window.open(url,name,winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function fullScreenWin(url,name,scroll,z){
  var w = (screen.width-12);
  var h = (screen.height-55);
  var settings  ='height='+h+','; 
      settings +='width='+w+',';
      settings +='top='+0+',';
      settings +='left='+0+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+z+',';
  win=window.open(url,name,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

