// ■パラメーター（左から順番に）
// 01:開く先のURLを指定 文字列 
// 02:ウインドウ名を指定 文字列 
// 03:ウインドウの幅をピクセルで指定 文字列(省略時は'')
// 04:ウインドウの高さをピクセルで指定 文字列(省略時は'')
// 05:ツールバーの有無(0=無し,1=有り) 論理型(「0」or「1」) 
// 06:ロケーターの有無(0=無し,1=有り) 論理型(「0」or「1」) 
// 07:ステータスバーの有無(0=無し,1=有り) 論理型(「0」or「1」) 
// 08:スクロールバーの有無(0=無し,1=有り) 論理型(「0」or「1」) 
// 09:メニューバーの有無(0=無し,1=有り) 論理型(「0」or「1」) 
// 10:リサイズの有無(0=無し,1=有り) 
//
// 例:<a href="javascript:CB_Popup_win('/','seihin','300','200',0,0,0,0,0,1);">
// 例:<a href="javascript:CB_Popup_win('/','seihin','','',1,1,1,1,1,1);">

function CB_Popup_win(Aurl,Aname,Awidth,Aheight,Atoolbar,Alocation,Astatus,Ascroll,Amenu,Aresize) {
  Astr = "";
  if(Awidth != "")Astr+= "width=" + Awidth;
  if(Astr != "")Astr+=",";
  if(Aheight != "")Astr+= "height=" + Aheight;
  if(Astr != "")Astr+=",";
  if(Atoolbar)Astr+= "toolbar";
  if(Alocation)Astr+= ",location";
  if(Astatus)Astr+= ",status";
  if(Ascroll)Astr+= ",scrollbars";
  if(Amenu)Astr+= ",menubar";
  if(Aresize)Astr+= ",resizable";
  openwindow = window.open(Aurl,Aname,Astr);
  openwindow.focus();
}
