imgwin = '';
function _Oncall_jp_Img(img,w,h){
  //img:イメージファイル
  if (img != ''){		//イメージの存在チェック（存在する場合）
    image=new Image(); 	//イメージオブジェクト生成
    image.src=(img);
//    _Oncall_jp_ImgWin(img,image.width,image.height,0,0);
    _Oncall_jp_ImgWin(img,w,h,0,0);
  }
}
function _Oncall_jp_ImgWin(img,width,height,sb,rs){ 	//イメージの小窓表示
  //img:イメージファイル、width:ウィンドウ横幅(ピクセル)、height:ウィンドウ高さ(ピクセル)
  //sb:スクロールバー(0/1)、rs:リサイズ可否(0/1)
  if (img != ''){
    if(imgwin !=''){ imgwin.close(); }
    opt="width="+width+",height="+height+",scrollbars="+sb+",resizable="+rs;
    imgwin=window.open('','_blank',opt);
    imgwin.document.open();
    imgwin.document.writeln("<html><head><title></title></head>");
    imgwin.document.writeln("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
    imgwin.document.writeln("<div><A HREF=javascript:close();><img src='"+img+"' border=0 width='"+width+"' height='"+height+"'></A></div></body></html>");
    imgwin.document.close();
    imgwin.focus();
  }
}
