<%
Dim Action,PageTitle
Dim GuestImagesNum,ImagesPath,EmotNum,EmotPath
ImagesPath		= "../images/guestbook/"
EmotPath		= "../images/emot/"
GuestImagesNum	= 23
EmotNum			= 23

action=request("action")
select case action
case "guestimages"
	PageTitle="请选择头像"
	call guestimages()
case "emot"
	PageTitle="请选择表情"
	call emot()
end select
%>
<html>
<head>
<title><%=PageTitle%></title>
<script>
window.focus()
function changeimage(imagename)
{ 
	window.opener.document.formwrite.GuestImages.value=imagename;
	window.opener.document.formwrite.showimages.src="<%=ImagesPath%>"+imagename+".gif";
}
</script>
<style type="text/css">
A{TEXT-DECORATION: none;}
A:hover{COLOR: #0099FF;}
A:link {color: #205064;}
A:visited {color: #006699;}
BODY{
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt;
text-decoration: none;
line-height: 150%;
background-color: #FBFDFF;}
TD{FONT-FAMILY:宋体;FONT-SIZE: 9pt;}
Input{FONT-SIZE: 9pt;HEIGHT: 20px;}
Button{FONT-SIZE: 9pt;HEIGHT: 20px;}
Select{FONT-SIZE: 9pt;HEIGHT: 20px;}
.border{border: 1px solid #CCCCCC;}
.border2{background:#fef8ed;BORDER-RIGHT: #999999 1px solid;BORDER-LEFT: #999999 1px solid}
.title{background:#f6f6f6;}
</style>
</head>
<body>
<% sub guestimages()%>
<table align=center width=95% cellpadding=5><td>
<%

for i=1 to 9
	response.write "<a href=""javascript:window.close();""><img src='"&ImagesPath&"0"&i&".gif' border=0 onclick=""changeimage('0"&i&"') "" style=cursor:hand></a> "
next
for i=10 to GuestImagesNum
	response.write "<a href=""javascript:window.close();""><img src='"&ImagesPath&""&i&".gif' border=0 onclick=""changeimage('"&i&"') "" style=cursor:hand></a> "
next
%>
</td></tr>
</table>
<%end sub%>

<% sub emot()%>
<table align=center width=95% cellpadding=5><td>
<%

for i=1 to EmotNum
	response.write "<a href=""javascript:window.close();""><img src='"&EmotPath&"emot"&i&".gif' border=0 onclick=""window.opener.document.formwrite.GuestContent.value+='[emot"&i&"]' "" style=cursor:hand></a> "
	if i mod 6 =0 then
		response.write "<br>"
	end if
next
%>
</td></tr></table>
<%end sub%>
<div align="center"><font size="2">[<a href="javascript:window.close();">关闭窗口</a>]</font></div>
</body>
<html>