function remote(location, name, height, width, woff, toff){
  var winl = ((screen.width/2) - width - woff);
  var wint = (toff);
  var newwin = window.open(location, name, 'width='+width+',height='+height+',resizable=0,scrollbars');
  newwin.moveTo(winl, wint);
}

function center(){
  if(document.all)
    window.moveTo((screen.width-(document.body.scrollWidth+30))/2, 0);
  else
    window.moveTo((screen.width-window.innerWidth)/2, 0);
}
