<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->

<%
if Request.Cookies("asp163")("UserName")="" then
	response.Redirect "User_Login.asp"
end if
response.Redirect("mv/make_mv.asp")

ClassID=trim(Request("ClassID"))
SpecialID=session("SpecialID")
UserID=session("UserID")
if ClassID="" then
	ClassID=0
else
	ClassID=Clng(ClassID)
end if
if SpecialID="" then
	SpecialID=0
else
	SpecialID=Clng(SpecialID)
end if
sql="select * from " & db_User_Table & " where " & db_User_ID & "=" & UserID
set rs=server.createobject("adodb.recordset")
rs.open sql,Conn_User,1,1
if rs.bof and rs.eof then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>找不到指定的用户<li>"
else
	UserName=rs(db_User_Name)
	PageTitle="用户信息：" & UserName
	end if
dim CommentID
CommentID=trim(request("CommentID"))
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MicroPhoto FrontPage 3.0">
<title>添加图片</title>
<link rel="stylesheet" type="text/css" href="new/css.css">

<script language = "JavaScript">
function CheckForm()
{
  if (document.myform.ClassID.value=="")
  {
    alert("分类不能为空！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.ClassID.value==0)
  {
    alert("分类不能为空！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.ClassID.value=="-1")
  {
    alert("你没有添加权限！");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.PhotoName.value=="")
  {
    alert("标题不能为空！");
	document.myform.PhotoName.focus();
	return false;
  }
  if (document.myform.Keyword.value=="")
  {
    alert("关键字不能为空！");
	document.myform.Keyword.focus();
	return false;
  }
  if (document.myform.PhotoUrl_Thumb.value=="")
  {
    alert("地址不能为空！");
	document.myform.PhotoUrl_Thumb.focus();
	return false;
  }
  if (document.myform.PhotoSize_Thumb.value=="")
  {
    alert("文件大小不能为空！");
	document.myform.PhotoSize_Thumb.focus();
	return false;
  }
  if (document.myform.PhotoUrl.value=="")
  {
    alert("图片地址不能为空！");
	document.myform.PhotoUrl.focus();
	return false;
  }
  if (document.myform.PhotoSize.value=="")
  {
    alert("文件大小不能为空！");
	document.myform.PhotoSize.focus();
	return false;
  }
}
</script>
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}

#Layer1 {
	position:absolute;
	left:218px;
	top:99px;
	width:290px;
	height:54px;
	z-index:1;
}
</style></head>
<body>

 <form method="POST" name="myform" onSubmit="return CheckForm();" action="User_PhotoSave.asp" target="_self">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="1" height="1"></td>
       <td height="1" bgcolor="#BCBCBC"></td>
       <td width="1" height="1"></td>
     </tr>
     <tr>
       <td bgcolor="#BCBCBC"></td>
       <td height="25" align="center" bgcolor="f2f2f2"><strong>--- 添加相片 ---</strong></td>
       <td bgcolor="#BCBCBC"></td>
     </tr>
   </table>
   <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr align="center">
                        <td>
                          <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#bcbcbc">
                           <tr bgcolor="#FFFFFF">
                              <td width="21%" align="right"><strong>分 &nbsp;&nbsp;类：</strong></td>
                             <td width="79%">  <%
UserNamed=Request.Cookies("asp163")("UserName")
set rsc=server.createobject("adodb.recordset")
sql="select * from [photoclass] where UserName='"&UserNamed&"' order by classid desc"
rsc.open sql,Conn,1,1
%>
                               <select name="ClassID" >
                                 <%if rsc.recordcount=0 then%>
                                 <option value="0">请先添加分类</option>
                                 <%else%>
                                 <%do while not rsc.eof
%>
                                 <option value="<%=rsc("classid")%>"><%=rsc("classname")%></option>
                                 <%rsc.movenext
loop%>
                                 <%end if%>
                               </select>
                               <%rsc.close
set rsc=nothing%> </td>
                            </tr>
                            <tr bgcolor="#FFFFFF">
                              <td width="21%" align="right"><strong>标 &nbsp;&nbsp;题：</strong></td>
                              <td width="79%"><input name="PhotoName" type="text" id="PhotoName" value="" size="40" maxlength="255">
                                <input name="Keyword" type="hidden"
           id="Keyword" value="d">
                                  <strong>
                                  <input name="AuthorHomepage" type="hidden"
           id="AuthorHomepage" value="http://" size="28" maxlength="100">
                                  <input name="AuthorEmail" type="hidden" id="AuthorEmail" size="28" maxlength="100">
                                  <input name="Author" type="hidden"
           id="Author3" size="17" maxlength="100" >
                                </strong></td>
                            </tr>
							<tr>
							<td align="right" bgcolor="#FFFFFF"><strong>效 &nbsp;&nbsp;果：</strong></td>
							<td bgcolor="#FFFFFF"><select name="styletype" id="styletype">
              <option selected>不应用</option>
              <option value="filter:Alpha(Opacity=50)">半透明效果</option>
			
              <option value="filter:Alpha(Opacity=0, FinishOpacity=100, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=140)">线型透明效果</option>
              <option value="filter:Alpha(Opacity=10, FinishOpacity=100, Style=2, StartX=30, StartY=30, FinishX=200, FinishY=200)">放射透明效果</option>
              <option value="filter:blur(add=1,direction=14,strength=15)">模糊效果</option>
              <option value="filter:blur(add=true,direction=45,strength=30)">风动模糊效果</option>
              <option value="filter:Wave(Add=0, Freq=60, LightStrength=1, Phase=0, Strength=3)">正弦波纹效果</option>
              <option value="filter:gray">黑白照片效果</option>

              <option value="filter:flipv">垂直翻转显示</option>
              <option value="filter:fliph">左右翻转显示</option>

              <option value="filter:xray">X光照片效果</option>
              <option value="filter:invert">底片效果</option>
            </select></td></tr>
                            <tr bgcolor="#FFFFFF" class="tdbg">
                              <td rowspan="2" align="right"><strong>相 &nbsp;&nbsp;片：</strong></td>
                              <td>
                                <input name="PhotoUrl_Thumb" type="text" id="PhotoUrl_Thumb" size="40" maxlength="200">
                                <input name="PhotoUrl_Thumbsm" type="hidden" id="PhotoUrl_Thumbsm" size="40" maxlength="200">
                                <input name="PhotoUrl" type="hidden" id="PhotoUrl" size="40" maxlength="200"></td>
                            </tr>  <tr bgcolor="#FFFFFF" class="tdbg">
                              <td><iframe style="top:2px" id="UploadFiles" src="upload_Photos.asp?PhotoUrlID=0" frameborder=0 scrolling=no width="290" height="25"></iframe></td>
                              </tr>
                            <tr bgcolor="#FFFFFF" class="tdbg">
                              <td align="right" valign="middle"><strong>说 &nbsp;&nbsp;明：</strong>&nbsp;
 <script language=JavaScript>
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
	if (swtch == 1){
		basic = false;
		stprompt = false;
		helpstat = true;
	} else if (swtch == 0) {
		helpstat = false;
		stprompt = false;
		basic = true;
	} else if (swtch == 2) {
		helpstat = false;
		basic = false;
		stprompt = true;
	}
}

function AddText(NewCode) {
document.myform.PhotoIntro.value+=NewCode;
}

function emails() {
	if (helpstat) {
		alert("Email 标记\n插入 Email 超级链接\n用法1: [email]nobody@domain.com[/email]\n用法2: [email=nobody@domain.com]佚名[/email]");
	} else if (basic) {
		AddTxt="[email][/email]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("链接显示的文字.\n如果为空，那么将只显示你的 Email 地址",""); 
		if (txt2!=null) {
			txt=prompt("Email 地址.","name@domain.com");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="[email]"+txt+"[/email]";
				} else {
					AddTxt="[email="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/email]";
				} 
				AddText(AddTxt);	        
			}
		}
	}
}

function flash() {
 	if (helpstat){
		alert("Flash 动画\n插入 Flash 动画.\n用法: [flash]Flash 文件的地址[/flash]");
	} else if (basic) {
		AddTxt="[flash][/flash]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Flash 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="[flash]"+txt;
			AddText(AddTxt);
			AddTxt="[/flash]";
			AddText(AddTxt);
		}        
	}  
}

function Cdir() {
 	if (helpstat){
		alert("Shockwave 动画\n插入 Shockwave 动画.\n用法: [dir=500,350]Shockwave 文件的地址[/dir]");
	} else if (basic) {
		AddTxt="[dir][/dir]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Shockwave 文件的地址","");
		if (txt!=null) {             
			AddTxt="[dir=500,350]"+txt;
			AddText(AddTxt);
			AddTxt="[/dir]";
			AddText(AddTxt);
		}        
	}  
}

function Crm() {
 	if (helpstat){
		alert("real player 文件\n插入 real player 文件.\n用法: [rm=500,350]real player 文件的地址[/rm]");
	} else if (basic) {
		AddTxt="[rm][/rm]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("real player 文件的地址","");
		if (txt!=null) {             
			AddTxt="[rm=500,350]"+txt;
			AddText(AddTxt);
			AddTxt="[/rm]";
			AddText(AddTxt);
		}        
	}  
}

function Cwmv() {
 	if (helpstat){
		alert("media player 文件\n插入 wmv 文件.\n用法: [mp=500,350]media player 文件的地址[/mp]");
	} else if (basic) {
		AddTxt="[mp][/mp]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("media player 文件的地址","");
		if (txt!=null) {             
			AddTxt="[mp=500,350]"+txt;
			AddText(AddTxt);
			AddTxt="[/mp]";
			AddText(AddTxt);
		}        
	}  
}

function Cmov() {
 	if (helpstat){
		alert("quick time 文件\n插入 quick time 文件.\n用法: [qt=500,350]quick time 文件的地址[/qt]");
	} else if (basic) {
		AddTxt="[qt][/qt]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("quick time 文件的地址","");
		if (txt!=null) {             
			AddTxt="[qt=500,350]"+txt;
			AddText(AddTxt);
			AddTxt="[/qt]";
			AddText(AddTxt);
		}        
	}  
}


function showsize(size) {
	if (helpstat) {
		alert("文字大小标记\n设置文字大小.\n可变范围 1 - 6.\n 1 为最小 6 为最大.\n用法: [size="+size+"]这是 "+size+" 文字[/size]");
	} else if (basic) {
		AddTxt="[size="+size+"][/size]";
		AddText(AddTxt);
	} else {                       
		txt=prompt("大小 "+size,"文字"); 
		if (txt!=null) {             
			AddTxt="[size="+size+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/size]";
			AddText(AddTxt);
		}        
	}
}

function bold() {
	if (helpstat) {
		alert("加粗标记\n使文本加粗.\n用法: [b]这是加粗的文字[/b]");
	} else if (basic) {
		AddTxt="[b][/b]";
		AddText(AddTxt);
	} else {  
		txt=prompt("文字将被变粗.","文字");     
		if (txt!=null) {           
			AddTxt="[b]"+txt;
			AddText(AddTxt);
			AddTxt="[/b]";
			AddText(AddTxt);
		}       
	}
}

function italicize() {
	if (helpstat) {
		alert("斜体标记\n使文本字体变为斜体.\n用法: [i]这是斜体字[/i]");
	} else if (basic) {
		AddTxt="[i][/i]";
		AddText(AddTxt);
	} else {   
		txt=prompt("文字将变斜体","文字");     
		if (txt!=null) {           
			AddTxt="[i]"+txt;
			AddText(AddTxt);
			AddTxt="[/i]";
			AddText(AddTxt);
		}	        
	}
}

function quote() {
	if (helpstat){
		alert("引用标记\n引用一些文字.\n用法: [quote]引用内容[/quote]");
	} else if (basic) {
		AddTxt="[quote][/quote]";
		AddText(AddTxt);
	} else {   
		txt=prompt("被引用的文字","文字");     
		if(txt!=null) {          
			AddTxt="[quote]"+txt;
			AddText(AddTxt);
			AddTxt="[/quote]";
			AddText(AddTxt);
		}	        
	}
}

function showcolor(color) {
	if (helpstat) {
		alert("颜色标记\n设置文本颜色.  任何颜色名都可以被使用.\n用法: [color="+color+"]颜色要改变为"+color+"的文字[/color]");
	} else if (basic) {
		AddTxt="[color="+color+"][/color]";
		AddText(AddTxt);
	} else {  
     	txt=prompt("选择的颜色是: "+color,"文字");
		if(txt!=null) {
			AddTxt="[color="+color+"]"+txt;
			AddText(AddTxt);        
			AddTxt="[/color]";
			AddText(AddTxt);
		} 
	}
}

function center() {
 	if (helpstat) {
		alert("对齐标记\n使用这个标记, 可以使文本左对齐、居中、右对齐.\n用法: [align=center|left|right]要对齐的文本[/align]");
	} else if (basic) {
		AddTxt="[align=center|left|right][/align]";
		AddText(AddTxt);
	} else {  
		txt2=prompt("对齐样式\n输入 'center' 表示居中, 'left' 表示左对齐, 'right' 表示右对齐.","center");               
		while ((txt2!="") && (txt2!="center") && (txt2!="left") && (txt2!="right") && (txt2!=null)) {
			txt2=prompt("错误!\n类型只能输入 'center' 、 'left' 或者 'right'.","");               
		}
		txt=prompt("要对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[align="+txt2+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/align]";
			AddText(AddTxt);
		}	       
	}
}

function hyperlink() {
	if (helpstat) {
		alert("超级链接标记\n插入一个超级链接标记\n使用方法: [url]http://www.asp163.net[/url]\nUSE: [url=http://www.asp163.net]链接文字[/url]");
	} else if (basic) {
		AddTxt="[url][/url]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("链接文本显示.\n如果不想使用, 可以为空, 将只显示超级链接地址. ",""); 
		if (txt2!=null) {
			txt=prompt("超级链接.","http://");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="[url]"+txt;
					AddText(AddTxt);
					AddTxt="[/url]";
					AddText(AddTxt);
				} else {
					AddTxt="[url="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/url]";
					AddText(AddTxt);
				}         
			} 
		}
	}
}

function image() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=prompt("图片的 URL","http://");    
		if(txt!=null) {            
			AddTxt="[img]"+txt;
			AddText(AddTxt);
			AddTxt="[/img]";
			AddText(AddTxt);
		}	
	}
}

function showcode() {
	if (helpstat) {
		alert("代码标记\n使用代码标记，可以使你的程序代码里面的 html 等标志不会被破坏.\n使用方法:\n [code]这里是代码文字[/code]");
	} else if (basic) {
		AddTxt="\r[code]\r[/code]";
		AddText(AddTxt);
	} else {   
		txt=prompt("输入代码","");     
		if (txt!=null) {          
			AddTxt="[code]"+txt;
			AddText(AddTxt);
			AddTxt="[/code]";
			AddText(AddTxt);
		}	       
	}
}

function list() {
	if (helpstat) {
		alert("列表标记\n建造一个文字或则数字列表.\n\nUSE: [list] [*]项目一[/*] [*]项目二[/*] [*]项目三[/*] [/list]");
	} else if (basic) {
		AddTxt=" [list][*]  [/*][*]  [/*][*]  [/*][/list]";
		AddText(AddTxt);
	} else {  
		txt=prompt("列表类型\n输入 'A' 表示有序列表, '1' 表示无序列表, 留空表示无序列表.","");               
		while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) {
			txt=prompt("错误!\n类型只能输入 'A' 、 '1' 或者留空.","");               
		}
		if (txt!=null) {
			if (txt=="") {
				AddTxt="[list]";
			} else {
				AddTxt="[list="+txt+"]";
			} 
			txt="1";
			while ((txt!="") && (txt!=null)) {
				txt=prompt("列表项\n空白表示结束列表",""); 
				if (txt!="") {             
					AddTxt+="[*]"+txt+"[/*]"; 
				}                   
			} 
			AddTxt+="[/list] ";
			AddText(AddTxt); 
		}
	}
}

function showfont(font) {
 	if (helpstat){
		alert("字体标记\n给文字设置字体.\n用法: [face="+font+"]改变文字字体为"+font+"[/face]");
	} else if (basic) {
		AddTxt="[face="+font+"][/face]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("要设置字体的文字"+font,"文字");
		if (txt!=null) {             
			AddTxt="[face="+font+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/face]";
			AddText(AddTxt);
		}        
	}  
}
function underline() {
  	if (helpstat) {
		alert("下划线标记\n给文字加下划线.\n用法: [u]要加下划线的文字[/u]");
	} else if (basic) {
		AddTxt="[u][/u]";
		AddText(AddTxt);
	} else {  
		txt=prompt("下划线文字.","文字");     
		if (txt!=null) {           
			AddTxt="[u]"+txt;
			AddText(AddTxt);
			AddTxt="[/u]";
			AddText(AddTxt);
		}	        
	}
}
function setfly() {
 	if (helpstat){
		alert("飞翔标记\n使文字飞行.\n用法: [fly]文字为这样文字[/fly]");
	} else if (basic) {
		AddTxt="[fly][/fly]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("飞翔文字","文字");
		if (txt!=null) {             
			AddTxt="[fly]"+txt;
			AddText(AddTxt);
			AddTxt="[/fly]";
			AddText(AddTxt);
		}        
	}  
}

function move() {
	if (helpstat) {
		alert("移动标记\n使文字产生移动效果.\n用法: [move]要产生移动效果的文字[/move]");
	} else if (basic) {
		AddTxt="[move][/move]";
		AddText(AddTxt);
	} else {  
		txt=prompt("要产生移动效果的文字","文字");     
		if (txt!=null) {           
			AddTxt="[move]"+txt;
			AddText(AddTxt);
			AddTxt="[/move]";
			AddText(AddTxt);
		}       
	}
}

function shadow() {
	if (helpstat) {
               alert("阴影标记\n使文字产生阴影效果.\n用法: [SHADOW=宽度, 颜色, 边界]要产生阴影效果的文字[/SHADOW]");
	} else if (basic) {
		AddTxt="[SHADOW=255,blue,1][/SHADOW]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("文字的长度、颜色和边界大小","255,blue,1"); 
		if (txt2!=null) {
			txt=prompt("要产生阴影效果的文字","文字");
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="[SHADOW=255, blue, 1]"+txt;
					AddText(AddTxt);
					AddTxt="[/SHADOW]";
					AddText(AddTxt);
				} else {
					AddTxt="[SHADOW="+txt2+"]"+txt;
					AddText(AddTxt);
					AddTxt="[/SHADOW]";
					AddText(AddTxt);
				}         
			} 
		}
	}
}

function glow() {
	if (helpstat) {
		alert("光晕标记\n使文字产生光晕效果.\n用法: [GLOW=宽度, 颜色, 边界]要产生光晕效果的文字[/GLOW]");
	} else if (basic) {
		AddTxt="[glow=255,red,2][/glow]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("文字的长度、颜色和边界大小","255,red,2"); 
		if (txt2!=null) {
			txt=prompt("要产生光晕效果的文字.","文字");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="[glow=255,red,2]"+txt;
					AddText(AddTxt);
					AddTxt="[/glow]";
					AddText(AddTxt);
				} else {
					AddTxt="[glow="+txt2+"]"+txt;
					AddText(AddTxt);
					AddTxt="[/glow]";
					AddText(AddTxt);
				}         
			} 
		}
	}
}
function a() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/1.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function b() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/2.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function c() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/3.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function d() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/4.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function e() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/5.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function f() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/6.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function g() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/7.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function h() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/8.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function i() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/9.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function j() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/10.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function k() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/11.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function l() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/12.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}
function m() {
	if (helpstat){
		alert("图片标记\n插入图片\n用法： [img]http://www.asp163.net/logo.gif[/img]");
	} else if (basic) {
		AddTxt="[img][/img]";
		AddText(AddTxt);
	} else {  
		txt=("face/13.gif");    
		if(txt!=null) {            
			AddTxt="[FA]"+txt;
			AddText(AddTxt);
			AddTxt="[/FA]";
			AddText(AddTxt);
		}	
	}
}

function openemot()
{
	var Win =window.open("guestselect.asp?action=emot","face","width=380,height=300,resizable=1,scrollbars=1");
}
function openhelp()
{
	var Win =window.open("editor_ubbhelp.asp","face","width=550,height=400,resizable=1,scrollbars=1");
}

</script></td>
                              <td><img onclick=bold() align=absmiddle src="images/guestbook/Ubb_bold.gif" width="22" height="22" alt="粗体" border="0"
style=cursor:hand><img onclick=italicize() align=absmiddle src="images/guestbook/Ubb_italicize.gif" width="23" height="22" alt="斜体" border="0"
style=cursor:hand><img onclick=underline() align=absmiddle src="images/guestbook/Ubb_underline.gif" width="23" height="22" alt="下划线" border="0"
style=cursor:hand><img onclick=hyperlink() align=absmiddle src="images/guestbook/Ubb_url.gif" width="22" height="22" alt="超级连接" border="0"
style=cursor:hand><img onclick=emails() align=absmiddle src="images/guestbook/Ubb_email.gif" width="23" height="22" alt="Email连接" border="0"
style=cursor:hand><img onclick=Crm() align=absmiddle src="images/guestbook/Ubb_rm.gif" width="23" height="22" alt="realplay视频文件" border="0"
style=cursor:hand><img onclick=Cwmv() align=absmiddle src="images/guestbook/Ubb_mp.gif" width="23" height="22" alt="Media Player视频文件" border="0"
style=cursor:hand><img onclick=Cmov() align=absmiddle src="images/guestbook/Ubb_qt.gif" width="23" height="22" alt="QuickTime视频文件" border="0"
style=cursor:hand><img onclick=showcode() align=absmiddle src="images/guestbook/Ubb_code.gif" width="22" height="22" alt="代码" border="0"
style=cursor:hand><img onclick=quote() align=absmiddle src="images/guestbook/Ubb_quote.gif" width="23" height="22" alt="引用" border="0"
style=cursor:hand><IMG onclick=setfly() align=absmiddle height=22 alt=飞行字 src="images/guestbook/Ubb_fly.gif" width=23 border=0
style=cursor:hand><IMG onclick=move() align=absmiddle height=22 alt=移动字 src="images/guestbook/Ubb_move.gif" width=23 border=0
style=cursor:hand><IMG onclick=glow() align=absmiddle height=22 alt=发光字 src="images/guestbook/Ubb_glow.gif" width=23 border=0 style=cursor:hand>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table>
                                <textarea name="PhotoIntro" cols="39" rows="5" id="textarea"></textarea>   
                                <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table>
            <img onclick=a() align=absmiddle src="face/1.gif" width="20" height="20" alt="图片" border="0"
 style=cursor:hand><img onclick=b() align=absmiddle src="face/2.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=c() align=absmiddle src="face/3.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=d() align=absmiddle src="face/4.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=e() align=absmiddle src="face/5.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=f() align=absmiddle src="face/6.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=g() align=absmiddle src="face/7.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=h() align=absmiddle src="face/8.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=i() align=absmiddle src="face/9.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=j() align=absmiddle src="face/10.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=k() align=absmiddle src="face/11.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=l() align=absmiddle src="face/12.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><img onclick=m() align=absmiddle src="face/13.gif" width="20" height="20" alt="图片" border="0"
style=cursor:hand><input name="PhotoSize_Thumb" type="hidden" id="PhotoSize_Thumb" size="1" maxlength="10">
                              <input name="PhotoSize" type="hidden" id="PhotoSize5" size="1" maxlength="10" value="0">                               </td>
                            </tr>
                            <tr bgcolor="f2f2f2" class="tdbg">
                              <td colspan="2" align="center" valign="middle"><input name="Action" type="hidden" id="Action2" value="Add">
                      <input
  name="Add" type="submit"  id="Add2" value=" 添 加 " style="cursor:hand;"></td>
                            </tr>
                        </table>  
</td>
                      </tr>
   </table>
</form>
</body>
</html>
<%
call CloseConn()
%>
