wintop=75;             //モニター上の表示位置Ywinleft=112;            //モニター上の表示位置X//-------------------------------------imgtemp="";function imgopen(imgsrc,winw,winh,exp){exp1=exp;if(imgtemp!=imgsrc || window.win.closed){imgtemp=imgsrc;if(winw < 1000){win=window.open("","imgwin","width="+winw+",height="+winh+",left="+winleft+",top="+wintop+",titlebar=yes,scrollbars=no");writetext="<html><head><title>"+exp+"</title></head>\n";writetext+="<body style='margin:0;'onclick='window.close();'>\n";writetext+="<img src='"+imgsrc+"'galleryimg='no'border=0>\n";writetext+="</body></html>";win.document.open();win.document.write(writetext);win.document.close();win.focus();}else{win=window.open("", "imgwin","width="+winw+",height="+winh+",left="+winleft+",top="+wintop+",titlebar=yes,scrollbars=yes");writetext="<html><head>\n<title>"+exp+"</title>\n</head>\n";writetext+="<body style='margin:0;'onclick='window.close();'>\n";writetext+="<img src='"+imgsrc+"'galleryimg='no'border=0>\n";writetext+="</body></html>";win.document.open();win.document.write(writetext);win.document.close();win.focus();}}else{win.close();imgtemp="";}}onunload=function(){if(window.win)win.close();}