<!--#include file="Inc/conn.asp" -->
<html>
<head>
<title>图片查看</title>
<link rel="shortcut icon">
</head>
<%
dim ID,url
ID=trim(request("ID"))
if ID="" then
	response.Redirect("Product.asp")
end if
sql="select * from Product where ID=" & ID & ""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,3
if rs.bof and rs.eof then
	response.write"<SCRIPT language=JavaScript>alert('找不到此产品！');"
  response.write"javascript:history.go(-1)</SCRIPT>"
else	
	url=rs("DefaultPicUrl")
	rs.update
end if	
%>
<script language="javascript">
function resize() {
	try {
		var aw = screen.availWidth;
		var ah = screen.availHeight;
		window.moveTo(0, 0);
		window.resizeTo(aw, ah);
	}catch(e) {}
}
function cls() {
	if (document.all) {
		window.opener='abc';
	}
	window.close();
	return false;
}
</script>
<body onclick="cls();" style="cursor:hand;margin:0;padding:0">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%" VIEWASTEXT>
  <param name="movie" value="flash/view_pic.swf"/>
  <param name="quality" value="high"/>
  <param name="FlashVars" value="pURL=<%=url%>"/> 
  <embed src="flash/view_pic.swf" quality="high" FlashVars="pURL=<%=url%>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="500"></embed>
</object>
</body>
</html>