BaseWidth=500;
NewWindowWidth=BaseWidth-15;
NewWindowHeight=Math.floor(BaseWidth*0.75)-15;
MaxWidth=NewWindowWidth-10;
MaxHeight=NewWindowHeight-15;

// 写真ポップアップ
function Disp(FileName,Wo,Ho){
  Ratio=Math.min(MaxWidth/Wo,MaxHeight/Ho);
    if(Ratio>1)Ratio=1;
  W=Math.floor(Wo*Ratio);
  H=Math.floor(Ho*Ratio);
  mW=window.open("","NewWindow","width="+NewWindowWidth+",Height="+NewWindowHeight);
  mW.focus();
  mW.document.open();
  mW.document.write("<TITLE>"+FileName+"</TITLE>");
  mW.document.write("<BODY BGCOLOR='#FFFFFF' leftmargin='5' marginwidth='0' topmargin='5' marginheight='0'>");
  mW.document.write("<TABLE BORDER=0 WIDTH="+MaxWidth+" HEIGHT="+MaxHeight+" CELLSPACING=0 align=center>");
  mW.document.write("<TR><TD ALIGN=CENTER VLAIGN=MIDDLE>");
  mW.document.write("<A HREF='JavaScript:window.close();'>");
  mW.document.write("<IMG SRC="+FileName+" WIDTH="+W+" HEIGHT="+H+" BORDER=0>");
  mW.document.write("</A></TABLE>");
  mW.document.close();
}

// 自己紹介ポップアップ
function IntroDuce(theURL) { 
  newWin = window.open(theURL,"NewWindow","WIDTH=450,HEIGHT=190,LOCATION");
  setTimeout("newWin.focus()", 450);
}


// 自己紹介ポップアップ
function Disp2(FileName,Wo,Ho) { 
  newWin=window.open("","NewWindow","width=570,Height=480");
  newWin.focus();
  newWin.document.open();
  newWin.document.write("<TITLE>"+FileName+"</TITLE>");
  newWin.document.write("<BODY BGCOLOR='#FFFFFF' leftmargin='5' marginwidth='0' topmargin='5' marginheight='0'>");
  newWin.document.write("<TABLE BORDER=0 WIDTH="+580+" HEIGHT="+480+" CELLSPACING=0 align=center>");
  newWin.document.write("<TR><TD ALIGN=CENTER VLAIGN=MIDDLE>");
  newWin.document.write("<A HREF='JavaScript:window.close();'>");
  newWin.document.write("<IMG SRC="+FileName+" BORDER=0>");
  newWin.document.write("</A></TABLE>");
  newWin.document.close();

}

