function SetMenuBg()
{if (document.all.MenuBgType.value==0)
{document.all.MenuBgColor.style.display="";
document.all.MenuBgPic.style.display="none";}
else
{
document.all.MenuBgColor.style.display="none";
document.all.MenuBgPic.style.display="";}
}
function SetNavStatus()
{
if (document.all.NavType.value==0)
{document.all.NavWord.style.display="";
document.all.NavPic.style.display="none";}
else
{
document.all.NavWord.style.display="none";
document.all.NavPic.style.display="";}
}
function SetMoreLinkStatus()
{
if (document.all.MoreLinkType.value==0)
{document.all.LinkWord.style.display="";
document.all.LinkPic.style.display="none";}
else
{
document.all.LinkWord.style.display="none";
document.all.LinkPic.style.display="";}
}
function InsertScriptFun(Obj)
{ if (document.myform.LabelName.value=='')
{
alert('请输入标签名称');
document.myform.LabelName.focus();
return false
}
var ColNumber=document.myform.ColNumber.value;
var FolderCss='"'+document.myform.FolderCss.value+'"';
var MenuBgType=1,NavType=1;
var MenuBg,MenuBgType=document.myform.MenuBgType.value;
var ShowClassName;
var OpenType='"'+document.myform.OpenType.value+'"';
var DownLoadListNumber=document.myform.DownLoadListNumber.value;
var RowHeight=document.myform.RowHeight.value;
var TitleLen=document.myform.TitleLen.value;
var DownLoadSort='"'+document.myform.DownLoadSort.value+'"';
var Nav,NavType=document.myform.NavType.value;
var MoreLink,MoreLinkType=document.myform.MoreLinkType.value;
var SplitPic='"'+document.myform.SplitPic.value+'"';
var DateRule=document.myform.DateRule.value;
var DateAlign='"'+document.myform.DateAlign.value+'"';
var TitleCss='"'+document.myform.TitleCss.value+'"';
var DateCss='"'+document.myform.DateCss.value+'"';
for (var i=0;i var KM = document.myform.ShowClassName[i];
if (KM.checked==true)
ShowClassName = KM.value
}
if (DownLoadListNumber=='') DownLoadListNumber=10;
if (RowHeight=='') RowHeight=20
if (TitleLen=='') TitleLen=30;
if (ColNumber=='') ColNumber=2;
if (MenuBgType==0) MenuBg='"'+document.myform.ColorMenuBg.value+'"'
else MenuBg='"'+document.myform.PicMenuBg.value+'"';
if (NavType==0) Nav='"'+document.myform.TxtNavi.value+'"'
else Nav='"'+document.myform.NaviPic.value+'"';
if (MoreLinkType==0) MoreLink='"'+document.myform.MoreLinkWord.value+'"'
else MoreLink='"'+document.myform.MoreLinkPic.value+'"';
document.myform.LabelContent.value= '{$GetCirDownLoadList('+ColNumber+','+FolderCss+','+MenuBgType+','+MenuBg+','+ShowClassName+','+OpenType+','+DownLoadListNumber+','+RowHeight+','+TitleLen+','+DownLoadSort+','+NavType+','+Nav+','+MoreLinkType+','+MoreLink+','+SplitPic+','+DateRule+','+DateAlign+','+TitleCss+','+DateCss+')}';
document.myform.submit();
}