
function wopen(fname,b,a){
      var c = "image/big/" + fname;
      var d = "toolbar=no,height="+a+",width="+b+",resizabel=no,titlebar=no,dependent=yes";
      var newWin = window.open("","pro",d);
      newWin.document.open();
      newWin.document.write("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML i18n//EN\">\n");
      newWin.document.write("<HTML><HEAD>\n");
      newWin.document.write("<TITLE>写真拡大</TITLE></HEAD>\n");
      newWin.document.write("<BODY BGCOLOR=\"#ffffff\" TEXT=\"#000000\" LINK=\"#000000\" VLINK=\"#000000\" topmargin=\"10\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"10\">\n");
      newWin.document.write("<TABLE WIDTH=\"100%\" HEIGHT=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">\n");
      newWin.document.write("<TR><TD VALIGN=\"CENTER\">\n");
      newWin.document.write("<TABLE WIDTH=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">\n");
      newWin.document.write("<TR><TD ALIGN=\"CENTER\" VALIGN=\"CENTER\"><IMG SRC=" + c + "></TD></TR>\n");
      newWin.document.write("<TR><TD><BR></TD></TR>\n");
      newWin.document.write("<TR><TD ALIGN=\"CENTER\" VALIGN=\"BOTTOM\" HEIGHT=\"15\"><A HREF=\"javaScript:window.close();\"><IMG SRC=\"/japan/image2/b_close.gif\" BORDER=\"0\" ALT=\"Close\"></A></TD></TR>\n");
      newWin.document.write("</TABLE>\n");
      newWin.document.write("</TD></TR></TABLE>\n");
      newWin.document.write("</BODY></HTML>\n");
      newWin.document.close();

      newWin.focus();
}

function wopen2(fname,b,a){
      var c = "image/construct/" + fname;
      var d = "toolbar=no,height="+a+",width="+b+",resizabel=no,titlebar=no,dependent=yes";
      var newWin2 = window.open("","pro2",d);
      newWin2.document.open();
      newWin2.document.write("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML i18n//EN\">\n");
      newWin2.document.write("<HTML><HEAD>\n");
      newWin2.document.write("<TITLE>レンズ構成図</TITLE></HEAD>\n");
      newWin2.document.write("<BODY BGCOLOR=\"#e2e2e2\" TEXT=\"#000000\" LINK=\"#000000\" VLINK=\"#000000\" topmargin=\"10\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"10\">\n");
      newWin2.document.write("<TABLE WIDTH=\"100%\" HEIGHT=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">\n");
      newWin2.document.write("<TR><TD VALIGN=\"CENTER\">\n");
      newWin2.document.write("<TABLE WIDTH=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">\n");
      newWin2.document.write("<TR><TD ALIGN=\"CENTER\" VALIGN=\"CENTER\"><IMG SRC=" + c + "></TD></TR>\n");
      newWin2.document.write("<TR><TD><BR></TD></TR>\n");
      newWin2.document.write("<TR><TD ALIGN=\"center\" VALIGN=\"BOTTOM\" HEIGHT=\"15\"><A HREF=\"javaScript:window.close();\"><IMG SRC=\"/japan/image2/b_close.gif\" BORDER=\"0\" ALT=\"Close\"></A></TD></TR>\n");
      newWin2.document.write("</TABLE>\n");
      newWin2.document.write("</TD></TR></TABLE>\n");
      newWin2.document.write("</BODY></HTML>\n");
      newWin2.document.close();

      newWin2.focus();
}

function changeImage(fileName, imageName){
        document.images[imageName].src = fileName;
}

