function centerSubWin(url,name,l,w,h,x) {
  var _l  = (screen.width-w)/2;
  var t   = (screen.height-h)/2;
  var win = window.open("",name,"left="+l+",top="+t+",width="+w+",height="+h);
  win.moveTo(l,t);
  win.focus();
  for(var i=0; i<Math.floor(Math.abs((_l-l)/x)); i++) {
    win.moveBy(x*(_l-l>0?1:-1),0);
  }
  win.moveBy((_l-l)%x,0);
  win.location.href = url;
  return win;
}
function subWin1() {
  var w = centerSubWin("reserved/index.html","NewWin",300,350,645,10)
}
