function photowin(photo,s_name,msg,mpf){
	s_name += "//";
	j_name = s_name.split("/",3);
	pw = window.open("","Photo",
		"width=450,height=560,status=no,menubar=no,scrollbars=yes");
	pw.document.open("text/html");
	pw.document.write(
		"<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>\n"
		+"<html>\n"
		+"<head>\n<title>"+j_name[0]+"</title>\n</head>\n"
		+"<body>\n"
		+"<p><span style='font-size:18pt; background-color:green;'>"
        +j_name[0]+"</span>");
	
    if (mpf > "1") pw.document.write("iʐ^ "+mpf+" j");
    
    if (j_name[1] != "") pw.document.write(
    	"<br>\n<span style='font-style:italic; font-weight:bolder;'>"
    	+j_name[1]+"</span>");
    if (j_name[2] != "") pw.document.write("  "+j_name[2]);
    
    pw.document.write("<br>\n<img src="+photo+".jpg>\n");
    
    if (mpf >= "2") pw.document.write("<img src="+photo+"2.jpg>\n");
    if (mpf >= "3") pw.document.write("<img src="+photo+"3.jpg>\n");
    if (mpf >= "4") pw.document.write("<img src="+photo+"4.jpg>\n");
    
	pw.document.write("</p>\n<p>\n"+msg+"\n</p>\n</body>\n</html>\n");
    pw.document.close();
	pw.focus();
}

function photowin2(page){
	page += ".html";
	pw = window.open(page,"Photo","width=450,height=560,status=no,menubar=no,scrollbars=yes");
	pw.focus();
}

function photowin3(page){
	pw = window.open(page,"Photo","width=450,height=560,status=no,menubar=no,scrollbars=yes");
	pw.focus();
}

