<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--
'##################################################################                                                                 
'★         web08.net - 威博购物系统                                              
'★  版权所有: web08.net                                                                                                       
'★  程序制作: 威博网络技术公司                                     
'★           email:web08net@hotmail.com                           
'★            Q Q :645095280,475980829 
'★	       电话:021-55520018                                                                                                         
'★  相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html
'★            [支持论坛] http://bbs.web08.net/                                                                                     
'★  主页地址: http://www.web08.net/  
'★		http://www.021web.com.cn/			                                                                 
'###################################################################
-->
<html>
<head>
<title>其他系统-威博多用户商城后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" type="text/JavaScript">
function uppic(model,frmname) 
{
window.open("../upload/upload.asp?uppath=showpic&ProdId="+model+"&frmname="+frmname,"upload", " width=550, height=280, resizable=no,menubar=1,scrollbars=1")
}
</script>
<!-- #include file="../include2.asp" -->
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background" onLoad="LoadFinish()">
<!-- #include file="../loading2.asp" -->
<center>
<!--#include file="../other/web_other_include.asp"-->
<div class="div-top">
<span class="right-span"><a href="javascript:history.go(-1);"><font color="#990000">返回普通广告管理</font></a>&nbsp;&nbsp;</span>
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - 编辑普通广告 </span>
</div>
<div class="tab-div">
<%#@~^uAAAAA==~,@#@&iqkbNsk	cJ8*J*@#@&7aloxD;EdO`rwmonJb@#@&dPwm.l{JME@#@&dPPm4s+{Eq+8|b9J@#@&d:/W	NrYbWUxrht.+,0VmLxF,l	N~l[r9'E[Mn;!+dOvJk[E*[EJ@#@&iZC^V,+({;m?Dl8V`PKmDlBPKm4VSPZKx9kOkGU*NzMAAA==^#~@%>
<form action="wadsave.asp?action=editad" name="myform" method="post" >
<table width="100%"border="0" align="center" cellspacing="0" bordercolorlight="#FFffff"  bordercolordark="#CCCCCC" bgcolor="#CCCCCC" >
<tr class="bottomborder2">
  <td colspan="4" height="20" align="right" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">广告分类</td>
<td height="30" bgcolor="#FFFFFF" class="hback">
<select name="AdClassID" class="nowidth">
<option value="0">广告分类</option>
<%#@~^oQIAAA==@#@&mG	x94@#@&NbhP1VC/k{.d|W4NSYsw{K8%~D:a{Kl.n	Y(N@#@&YswmKmD+UO&Nxk	OvDn$E/YvJz[Z^ld/&fEb*@#@&@#@&/YP1sC/k{M/mW8%{ZGx	 +X+^;D+`EdVnmD~CPoMWsPh4|CN:X2+,PA4D+,~PhlDUOqG'ZP~W.[D~4H~k9P[nkmJb@#@&NGPS4bVn,xKYP1Vmd/|Dd{K4% W0,@#@&b0PDh2{hlM+UY([,'~m^C/k{.d|W4%crk[J*~Dtn	@#@&D+kwKU/R	DbYn~r@!WaOkKxP7CsE'rJE[^sm/d{Md{K4%crkNEbLJEJ,dVn1YN@*r[1slk/mDk{G8N`J:zw1lsnE#LJ@!zGwOrKx@*J@#@&+^/n@#@&D+d2Kxd+c	MkOPr@!WaYbGx,\CV!+xErJ[1slk/{MdmW(LvJrNEbLJEJ@*E[1VCdk{DdmK4%`rPHwngls+J*[r@!zKwOkKx@*E@#@&+	[Pb0@#@&.n/aW	/nR	.bYnPTnY|m4r^NSrdD`^Vmdk{.k{K4LvJb[J*~EJBYh2|nlMnxDqNBEA+({mNPX2nr#@#@&1slk/m.k{W8%c:G\U6O@#@&^WWa@#@&^Vm/d{M/mG(LR1sWk+)knOP1Vm/d{.d|W8L{UWDtrUT@#@&19YAAA==^#~@%>
</select >
<input type="hidden" name="adid" value="<%=#@~^DQAAAA==.;;/D`JbNrbawQAAA==^#~@%>">
<input type="hidden" name="page" value="<%=#@~^DwAAAA==.;;/D`JalTnJ*OwUAAA==^#~@%>">
<input type="hidden" name="Type" value="<%=#@~^FAAAAA==.;;/D`JzN;slk/(fr#xgYAAA==^#~@%>"></td>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><label></label></td>
</tr>
<tr>
<td width="12%" height="30" align="center" bgcolor="#F7F7F7" class="hback">广告名称</td>
<td width="38%" height="30" align="left" bgcolor="#F7F7F7" class="hback"><font color="#FF0000">*必须填写项目
<input name="AdName" type="text" id="AdName" title="广告名称，必填" size="32" maxlength="20" value=<%=#@~^EgAAAA==OMkhvDk`JzNgC:Jb#rQUAAA==^#~@%>>
</font></td>
<td width="12%" height="30" align="center" bgcolor="#F7F7F7" class="hback">广告类型</td>
<td width="38%" height="30" align="left" bgcolor="#F7F7F7" class="hback"><select name="AdType" id="AdType" style="width:200" onChange="javascript:ChooseType(this.value);">
<%=#@~^HAAAAA==!Y)9Sb/Yvk	O`M/cJzNPza+J*b#DwkAAA==^#~@%>
</select></td>
</tr>
<tr id="tr1" style="display:none">
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">循环广告</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback">
<input name="IsLoop" type="checkbox" id="IsLoop" value="1" title="将非循环类广告添加到循环广告中循环显示" onClick="javascript:ChooseCycleDis();" <%#@~^LwAAAA==(6P.k`rbNdWK2J*'qP:tnU,I+k2W	/+cA.kD+,J^tn^0+[JmA8AAA==^#~@%>><input type="hidden" name="IsLoopvalue" value="0">
循环广告位  
<select name="LoopAdName" title="将非循环广告设置为循环广告后必选" disabled style="width:110">
<%#@~^iQAAAA==~1WU	N(@#@&k+D~Dk{sWKwxdD\.R;D+mOnr(LmO`EC9W[4c.+1W.[k+YEb@#@&d;^xr/n^+1YPCP6.WsPA+({C[,ht.+,bN:z2+{FZPE@#@&.k{sWK2RKwnU,/;sS1WUxBqB&rSwAAA==^#~@%>
<%#@~^FwAAAA==r6PUKY,D/|VKGwc+G0,Y4n	lQgAAA==^#~@%>
<%#@~^GAAAAA==[KPA4k^+P	WD~Dk{sWKw nK0AwkAAA==^#~@%>
<option value="<%=#@~^FQAAAA==OMkhvDk{VKWacJmNrNr#bMgcAAA==^#~@%>"><%=#@~^FwAAAA==OMkhvDk{VKWacJzNHls+Eb*xgcAAA==^#~@%></option>
<%#@~^GAAAAA==.k{sKWaR:K\U+XY@#@&^WG2cwgAAA==^#~@%>
<%#@~^BAAAAA==n^/nqQEAAA==^#~@%>
<option value=""></option>
<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>
</select>     </td>
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">循环方向</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><select name="LoopFollow" id="select" style="width:70" title="将广告设置为循环广告后必选" <%#@~^GgAAAA==(6P.k`rbNdWK2J*@!@*F,K4n	PAgcAAA==^#~@%>disabled<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
<option value="0" <%#@~^HQAAAA==~b0~M/vJb9SKGwwWsVKhEb{!PD4+	dwkAAA==^#~@%>  selected<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>向   上</option>
<option value="1" <%#@~^HQAAAA==~b0~M/vJb9SKGwwWsVKhEb{FPD4+	eAkAAA==^#~@%>  selected<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>向   下</option>
<option value="2" <%#@~^HQAAAA==~b0~M/vJb9SKGwwWsVKhEb{ PD4+	eQkAAA==^#~@%>  selected<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>向   左</option>
<option value="3"<%#@~^HQAAAA==~b0~M/vJb9SKGwwWsVKhEb{&PD4+	egkAAA==^#~@%>  selected<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>向   右</option>
</select>
循环速度    
<input name="LoopSpeed" type="text" disabled id="LoopSpeed" style="width:70"title="将广告设置为循环广告后必填" onKeyUp="if(isNaN(value))execCommand('undo')" size="17" maxlength="20"   value="<%=#@~^EQAAAA==.k`EzNdWWa?an+9JbqgUAAA==^#~@%>" onafterpaste="if(isNaN(value))execCommand('undo')"></td>
</tr>
<tr id="tr2">
<td height="30" align="center" bgcolor="#F7F7F7" class="hback">图片地址</td>
<td height="30" align="left" bgcolor="#F7F7F7" class="hback"><input name="LoopPicAdress" type="text" id="LoopPicAdress" title="广告图片地址：必选项" size="19" value="<%=#@~^DwAAAA==.k`EzNhkmhlD4J*yAQAAA==^#~@%>">
<input name="SelectPic" type="button" id="SelectPic" value="选择图片" onClick="javascript:uppic('one','LoopPicAdress');">
<font color="#FF0000">*必须填写项目</font></td>
<td height="30" align="center" bgcolor="#F7F7F7" class="hback">右图地址</td>
<td height="30" align="left" bgcolor="#F7F7F7" class="hback"><input name="LoopRPicAdress" type="text" disabled id="LoopRPicAdress" title="如果广告类型为对联广告，请选择此项，其它类型不用选择" size="19" value="<%=#@~^FAAAAA==.k`EzN"ko4YhrmhlOtr#xgYAAA==^#~@%>">
<input name="SelectRPic" type="button" id="SelectPic2" value="选择图片" onClick="javascript:uppic('one','LoopRPicAdress');" <%#@~^GQAAAA==r6P.k`rbN:XanJ*@!@*,,Y4n	MgcAAA==^#~@%> disabled<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>></td>
</tr>
<tr id="tr3">
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">图片高度</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdPicHeight" type="text" id="AdPicHeight" title="图片高度：必选项" onKeyUp="if(isNaN(value))execCommand('undo')" size="8" maxlength="4" value="<%=#@~^EQAAAA==.k`EzNhkm_+bLtDJblAUAAA==^#~@%>"  onafterpaste="if(isNaN(value))execCommand('undo')">
  <font color="#FF0000">*必须填写项目</font></td>
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">图片宽度</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdPicWidth" type="text" value="<%=#@~^EAAAAA==.k`EzNhkmqk9Otr#OwUAAA==^#~@%>" id="AdPicWidth" title="图片宽度：必选项" onKeyUp="if(isNaN(value))execCommand('undo')" size="8" maxlength="4"  onafterpaste="if(isNaN(value))execCommand('undo')">
  <font color="#FF0000">*必须填写项目</font></td>
</tr>
<tr id="tr4" style="display:none">

<td height="30" align="center" valign="top" bgcolor="#F7F7F7" class="hback">广告内容<br>
(<a href=javascript:f_add()><img src="/admin/../images/add.gif" border="0" alt="点击添加更多文字广告"></a>)      </td>
<td height="30" colspan="3" align="left" bgcolor="#F7F7F7" class="hback">
<table width="641" id="tb1">
<tr><td>显示文本
<input name="AdTxtContent" type="text" size="30" maxlength="200">
样式 
<input name="AdTxtCss" type="text" size="7" maxlength="40">
链接地址
<input name="AdTxtLink" type="text" id="AdTxtLink" size="16" maxlength="100" value="<%=#@~^EgAAAA==.k`EzNdkx0b9.+k/E#DwYAAA==^#~@%>" >
列数
<input name="AdTxtColNum" type="text" id="AdTxtColNum" size="4" maxlength="2" onKeyUp="if(isNaN(value))execCommand('undo')"  onafterpaste="if(isNaN(value))execCommand('undo')"></td>
</tr><%=#@~^EgAAAA==O:2|KXYmKxDnxD/ODqQcAAA==^#~@%></table>
<input name="TxtID" type="hidden" value="<%=#@~^DgAAAA==O:2|b9{KXY&9FFwUAAA==^#~@%>"></td></tr>
<tr id="tr6">
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">链接地址</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdLinkUrl" type="text" id="AdLinkUrl" title="广告链接地址，必填项" size="32" maxlength="200" value="<%=#@~^GAAAAA==OMkhvDk`JzNdrx0b[D/dE*#HAgAAA==^#~@%>">
<font color="#FF0000">*必须填写项目</font></td>
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">说明文字</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdCaptionTxt" type="text" title="广告说明文字，可选项" size="32" maxlength="100" value="<%=#@~^GAAAAA==OMkhvDk`JzN;CwDkGx:6OE*#OggAAA==^#~@%>"></td>
</tr>
<tr style="display:none">
<td height="30" align="center" bgcolor="#F7F7F7" class="hback">显示条件</td>
<td height="30" align="left" bgcolor="#F7F7F7" class="hback"><input name="LoopFactor" type="radio" title="将此广告设置为不受任何条件限制而永不过期。选择此项后，最大点击次数、最大显示次数和截止日期不用填写" value="0" onClick="javascript:LoopFactorClick('1');" <%#@~^NQAAAA==(6P.k`rbNdWK2smmOWMJbxZPK4nx,I+k2Gxk+ch.kOn,J^t^3NE9hEAAA==^#~@%>>    
无条件显示
<input type="radio" name="LoopFactor" value="1" title="将广告设置为有条件显示后,此广告将在满足最大点击次数、最大显示次数和截止日期中的任何一项后失效" onClick="javascript:LoopFactorClick('2');" <%#@~^NQAAAA==(6P.k`rbNdWK2smmOWMJbx8PK4nx,I+k2Gxk+ch.kOn,J^t^3NE9xEAAA==^#~@%>>
有条件显示</td>
<td height="30" align="center" bgcolor="#F7F7F7" class="hback">截止日期</td>
<td height="30" align="left" bgcolor="#F7F7F7" class="hback"><input name="LoopEndDate" type="text" id="LoopEndDate" size="19" disabled readonly  value="<%=#@~^FQAAAA==OMkhvDk`JzNAUNGlO+r#bwQYAAA==^#~@%>">
<input name="SelectDate" type="button" id="SelectDate" value="选择时间" onClick="OpenWindowAndSetValue('../CommPages/SelectDate.asp',300,130,window,document.myform.LoopEndDate);" disabled></td>
</tr>
<tr style="display:none">
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">点击次数</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdMaxClickNum" type="text" disabled id="AdClickNum" title="设置广告的最大点击数量,广告将在点击次数达到此数量后失效。如果不设置此项，请置空" onKeyUp="if(isNaN(value))execCommand('undo')" size="32" maxlength="30"  onafterpaste="if(isNaN(value))execCommand('undo')" value="<%=#@~^FgAAAA==OMkhvDk`JzN;sk13HEsJbbQgcAAA==^#~@%>"></td>
<td height="30" align="center" bgcolor="#FFFFFF" class="hback">显示次数</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdMaxShowNum" type="text" disabled id="AdShowNum" title="设置广告的最大显示数量,广告将在显示次数达到此数量后失效。如果不设置此项，请置空" onKeyUp="if(isNaN(value))execCommand('undo')" size="32" maxlength="30"  onafterpaste="if(isNaN(value))execCommand('undo')" value="<%=#@~^FQAAAA==OMkhvDk`JzNU4WS1;:r#b/QYAAA==^#~@%>"></td>
</tr>
<tr>
<td height="9" align="center" bgcolor="#F7F7F7" class="hback">广告备注</td>
<td height="9" colspan="3" align="left" bgcolor="#F7F7F7" class="hback"><textarea name="AdRemarks" cols="80" rows="5" title="广告备注,仅供后台查阅,不做前台调用" onpropertychange="if(value.length>2500) value=value.substr(0,2500)"><%=#@~^FQAAAA==OMkhvDk`JzN"n:mDV/r#bAQcAAA==^#~@%></textarea></td>
</tr>
<tr>
<td height="9" align="right" valign="top" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
<td height="50" colspan="3" align="left" bgcolor="#FFFFFF" class="hback"><label>
<input type="submit" name="Submit" value=" 确 定 " onClick="return Ad_Flag();">
<input type="button" name="Submit2" value=" 取 消 "  onClick="history.go(-1)">
</label></td>
</tr>
</table>
</form>
</div>
</center>
<%#@~^dQEAAA==@#@&qW,Z^xovDkcJzNPXa+Eb*',,PtxP"ndwKxk+ .rD+cJ@!dmMk2O,VlUL!lL+{ErLC7lkmDbwDEJ@*NGm!:nUDR:HWWM:RdGGw"nbm)N.nk/ Nbdl(Vn[{0lsdi[W1;s+UDRsX0KDs ?VnmDIKr1RNbdl(V+9xWl^/i@!zd^Mk2Y@*E#@#@&(W,ZVULvDd`r)9Kza+r##{FZ~K4+UP"+d2Kx/ MkYcE@!kmMk2Y~smxLEmL+{JE%m\ld^Mk2YrE@*NG1Es+xDRsz0KDhRdWG2"nk1)NM+/k [kkl(VnNxWmVd+p[W1Ehn	YRhz6W.:cjVn1Y"nk1R9r/m4s+9'WC^/+p@!zkmDb2O@*r#@#@&vX4AAA==^#~@%>
<script language="javascript">
function Ad_Flag()
{
if (document.myform.AdName.value=="")
{
alert("请输入广告名称");
document.myform.AdName.focus();
return false;
}
if (parseInt(document.myform.AdType.value)==11)
{
var _arr=document.all.AdTxtContent
if (typeof(_arr.length)=="undefined")
{
if (_arr.value=="")
{
alert("请输入文字显示内容");
_arr.focus();
return false;
}
}
else
{
for (var j=0;j<_arr.length;j++)
{	
if (_arr[j].value=="")
{
alert("请输入文字显示内容");
_arr[j].focus();
return false;
}
}
}
}
else
{
if (document.myform.LoopPicAdress.value=="")
{
alert("请输入图片地址");
document.myform.LoopPicAdress.focus();
return false;
}
if (parseInt(document.myform.AdType.value)==9)
{
if (document.myform.LoopRPicAdress.value=="")
{
alert("请输入图片地址");
document.myform.LoopRPicAdress.focus();
return false;
}
}
if (parseInt(document.myform.IsLoopvalue.value)==1)
{
if (document.myform.LoopSpeed.value=="")
{
alert("请输入循环速度");
document.myform.LoopSpeed.focus();
return false;
}
else
{
if (isNaN(document.myform.LoopSpeed.value))
{
alert("循环速度必须为整数");
document.myform.LoopSpeed.value="";
document.myform.LoopSpeed.focus();
return false;
}
else
{
if (parseInt(document.myform.LoopSpeed.value)<0)
{
alert("循环速度必须为整数");
document.myform.LoopSpeed.focus();
document.myform.LoopSpeed.value="";
return false;
}
}
}
}
if (document.myform.AdPicHeight.value=="")
{
alert("请输入图片高度");
document.myform.AdPicHeight.focus();
return false;
}
else
{
if (isNaN(document.myform.AdPicHeight.value)==true)
{
alert("图片高度必须为整数");
document.myform.AdPicHeight.value="";
document.myform.AdPicHeight.focus();
return false;
}
else
{
if (parseInt(document.myform.AdPicHeight.value)<0)
{
alert("图片高度必须为整数");
document.myform.AdPicHeight.value="";
document.myform.AdPicHeight.focus();
return false;
}
}
}
if (document.myform.AdPicWidth.value=="")
{
alert("请输入图片宽度");
document.myform.AdPicWidth.focus();
return false;
}
else
{
if (isNaN(document.myform.AdPicWidth.value)==true)
{
alert("图片宽度必须为整数");
document.myform.AdPicWidth.value="";
document.myform.AdPicWidth.focus();
return false;
}
else
{
if (parseInt(document.myform.AdPicWidth.value)<0)
{
alert("图片宽度必须为整数");
document.myform.AdPicWidth.value="";
document.myform.AdPicWidth.focus();
return false;
}
}
}
if (document.myform.AdLinkUrl.value=="")
{
alert("请输入链接地址");
document.myform.AdLinkUrl.focus();
return false;
}
}
if (document.myform.AdClickNum.value!="")
{
if (isNaN(document.myform.AdClickNum.value)==true)
{
alert("点击次数必须为整数");
document.myform.AdClickNum.value="";
document.myform.AdClickNum.focus();
return false;
}
else
{
if (parseInt(document.myform.AdClickNum.value)<0)
{
alert("点击次数必须为整数");
document.myform.AdClickNum.value="";
document.myform.AdClickNum.focus();
return false;
}
}
}
if (document.myform.AdShowNum.value!="")
{
if (isNaN(document.myform.AdShowNum.value)==true)
{
alert("显示次数必须为整数");
document.myform.AdShowNum.value="";
document.myform.AdShowNum.focus();
return false;
}
else
{
if (parseInt(document.myform.AdShowNum.value)<0)
{
alert("显示次数必须为整数");
document.myform.AdShowNum.value="";
document.myform.AdShowNum.focus();
return false;
}
}
}
return true;
}
function LoopFactorClick(type)
{
if(type==1)
{
document.myform.LoopEndDate.disabled=true;
document.myform.SelectDate.disabled=true;
document.myform.AdClickNum.disabled=true;
document.myform.AdShowNum.disabled=true;
document.myform.LoopFactor.value=1;
}
else
{
document.myform.LoopEndDate.disabled=false;
document.myform.SelectDate.disabled=false;
document.myform.AdClickNum.disabled=false;
document.myform.LoopFactor.value=0;
document.myform.AdShowNum.disabled=false;
}
}
function ChooseType(type)
{
switch (parseInt(type))
{
case 9:
document.myform.LoopRPicAdress.disabled=false;
document.myform.SelectRPic.disabled=false;
show();
break;
case 10:
document.myform.LoopRPicAdress.disabled=false;
document.myform.SelectRPic.disabled=false;
show();
break;
case 0:
document.myform.LoopRPicAdress.disabled=true;
document.myform.SelectRPic.disabled=true;
document.myform.IsLoop.disabled=true;
document.myform.LoopAdName.disabled=true;
document.myform.LoopFollow.disabled=false;
document.myform.LoopSpeed.disabled=false;
show();
break;
case 11:
document.all.tr1.style.display="none";
document.all.tr2.style.display="none";
document.all.tr3.style.display="none";
document.all.tr4.style.display="";
document.all.tr6.style.display="none";			
break;
default:
//document.myform.IsLoop.disabled=false;
document.myform.LoopAdName.disabled=true;
document.myform.LoopFollow.disabled=true;
document.myform.LoopSpeed.disabled=true;
document.myform.LoopRPicAdress.disabled=true;
document.myform.SelectRPic.disabled=true;
//document.myform.IsLoop.checked=false;
show();
break;
}
}
function ChooseCycleDis()
{
if (document.myform.IsLoop.checked==true)
{
//		document.myform.LoopFollow.disabled=false;
//		document.myform.LoopSpeed.disabled=false;
//		document.myform.LoopAdName.disabled=false;
//		document.myform.IsLoopvalue.value=1;
}
else
{
//		document.myform.LoopFollow.disabled=true;
//		document.myform.LoopSpeed.disabled=true;
//		document.myform.LoopAdName.disabled=true;
//		document.myform.IsLoopvalue.value=0;
}
}
function Ad_Save()
{
document.myform.submit();
}
function Ad_Update()
{
document.myform.action="?Submit=SubUp&ID=<%=#@~^CQAAAA==P:2|b9qfJwMAAA==^#~@%>&OpPage=<%=#@~^HQAAAA==];;/DRp!+Mz?DDrxT`E6anlTnJ*dQoAAA==^#~@%>";
document.myform.submit();
}
function show()
{
//document.all.tr1.style.display="";
document.all.tr2.style.display="";
document.all.tr3.style.display="";
document.all.tr4.style.display="none";
document.all.tr6.style.display="";			
}
function f_add()
{
var _tbobj=document.all.tb1
var _trobj=_tbobj.rows
if (_trobj.length>9)
{
return;
} 
var _newRow=_tbobj.insertRow(_tbobj.rows.length)
var _newCell=_newRow.insertCell(0)
_newCell.innerHTML="<tr><td> 显示文本 <input name=AdTxtContent type=text id=AdTxtContent size=30 maxlength=200> 样式 <input name=AdTxtCss type=text size=7 maxlength=40> 链接地址 <input name=AdTxtLink type=text id=AdTxtLink size=16 maxlength=100><a href='#'onclick='f_delete(this.parentElement.parentElement)'> 删除 </a></td></tr>"; 
_newCell=_newRow.insertCell(1) 
}
function f_delete(_aobj)
{
var _tbobj=document.all.tb1
var _trobj=_tbobj.rows
var _deltr=_aobj
for(var i=0;i<_trobj.length;i++)
{
if (_deltr==_trobj[i])
{
_tbobj.deleteRow(i)
break;
}
}
}
</script>

<!-- #include file="../bottom2.asp" -->
</body>
</html>





