﻿myJpeg = new Array(      // 実寸画像のファイル名
 "../../../product/healthfood/fucoidan/image/sukoyakafucoidanotameshi500.jpg",
 "../../../product/healthfood/fucoidan/image/sukoyakafucoidan500.jpg",
 "../../../product/healthfood/fucoidan/image/okinawafucoidan500.jpg",
 "../../../product/healthfood/fucoidan/image/fucoidangenmatsuekisucapsule500.jpg",
 "../../../product/healthfood/fucoidan/image/fucoidanekisukaryu500.jpg",
 "../../../product/healthfood/fucoidan/image/fucoidantsubu500.jpg",
 "../../../product/healthfood/fucoidan/image/ryukyufucoidanneo500.jpg",
 ""
);

myTitle = new Array(     // 画像のタイトル
 "沖縄モズク　すこやかフコイダン　初回お試し7包",
 "沖縄モズク　すこやかフコイダン　１箱（約30日分）",
 " 沖縄フコイダン（カプセルタイプ）　180粒（約30日分）",
 "フコイダンエキス原末カプセル　150粒（約30日分）",
 "フコイダンエキス原末顆粒　30包（約30日分）",
 "フコイダン粒　250粒（約30日分）",
 "琉球フコイダンＮＥＯ　90粒（約30日分）",
 ""
);

myWidth = new Array(     // 画像の幅(X)
 500,
 500,
 500,
 500,
 500,
 500,
 500,
 500
);

myHeight = new Array(    // 画像の高さ(Y)
 520,
 520,
 520,
 520,
 520,
 520,
 520,
 520
);

if (document.all && !window.opera){  // IE4以上
  myMarginX = 20; // マージン横幅
  myMarginY = 30; // マージン縦幅
}else if (document.getElementById || document.layers){ // NS4以上(OP)
  myMarginX = 16; // マージン横幅
  myMarginY = 16; // マージン縦幅
}else{  // IE3.02とする
  myMarginX = 22; // マージン横幅
  myMarginY = 6;  // マージン縦幅
}

function myGo(myTblNo){
 myXX=myWidth[myTblNo] + myMarginX;               // ウィンドウ横幅
 myYY=myHeight[myTblNo] + myMarginY;              // ウィンドウ縦幅
 myWinName = "Win"+myTblNo;                       // ウィンドウ名
 myWinSize = "width=" + myXX + ",height=" + myYY; // ウィンドウオプション
 myWin = window.open("" , myWinName , myWinSize); // ウィンドウを開く
 myWin.document.open();
 myWin.document.write('<html>');
 myWin.document.write('<head>');
 myWin.document.write('<title>' , myTitle[myTblNo] , '<','/title>');
 myWin.document.write('<','/head>');
 myWin.document.write('<body topmargin=0 leftmargin=0>');
 myWin.document.write('<img src=\"' , myJpeg[myTblNo] , '\">' );
 myWin.document.write('<div align="center"><input type="button" value="閉じる" onClick="window.close()"></div>' );
 myWin.document.write('<' , '/body>');
 myWin.document.write('<' , '/html>');
 myWin.document.close();
}   