// 存放被開啟視窗的參照
 function openWindow(url, id, w,h,center) {
 
 args = 'width='+w+', height='+h;
 
 if(center){
 
 	args += ", left="+(window.screen.width-w)/2+",top="+(window.screen.height-h)/2;
 
 }	
   
  var win = window.open(url,id, args);
  win.focus();
 }