// w 開くWindowの幅
// h 開くWindowの高さ

var cWin0 = window;

function wOpen0(url,name,w,h,flg){
  // Cookie Check
  if (cWin0 == window || cWin0.closed) {
    cWin0 = window.open(url,name,"width="+w+",height="+h+",resizable=yes,scrollbars=yes");
  } else {
    if (cWin0.location.href.indexOf(url) == -1) { cWin0.location.href = url; }
    cWin0.focus();
  }
}

window.onerror = null; 
var ie  = (navigator.appName.indexOf('Micr') != -1); 
var mac = (navigator.userAgent.indexOf('Mac') != -1 || navigator.userAgent.indexOf('mac') != -1); 
var win = (navigator.userAgent.indexOf('Win') != -1 || navigator.userAgent.indexOf('win') != -1); 
if (win) { 
if (ie) document.write('<LINK REL="STYLESHEET" HREF="jakome.css" TYPE="text/css">'); 
else document.write('<LINK REL="STYLESHEET" HREF="jakome.css" TYPE="text/css">'); 
}else{ 
if (mac) { 
if (ie) document.write('<LINK REL="STYLESHEET" HREF="jakome_mac.css" TYPE="text/css">'); 
else document.write('<LINK REL="STYLESHEET" HREF="jakome_mac.css" TYPE="text/css">'); 
}else{ 
document.write('<LINK REL="STYLESHEET" HREF="jakome.css" TYPE="text/css">'); 
} 
} 

function dummy(){
}

imgwin = '';

function _Oncall_jp_Img(img,w,h){
  //img:イメージファイル
  if (img != ''){		//イメージの存在チェック（存在する場合）
    image=new Image(); 	//イメージオブジェクト生成
    image.src=(img);
    _Oncall_jp_ImgWin(img,w,h,0,0);
  }
}
function _Oncall_jp_ImgWin0(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(img,'_blank',opt);
    imgwin.focus();
  }
}
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();
  }
}

