functionuser_login(){
varl
createDlg("dlgLogin","用户登录",260,170)
l="
l+="
l+="
l+="
l+="
l+="
l+=""
insHtm("dlgLogin",l)
oFocu(document.fmLogin.FUid)
$('dlgLogin').clickOk=function(){
document.fmLogin.btSubmit.click()
}
document.fmLogin.onload=function(xml){
location.reload(true)
}
}
functionuser_reg(){
varl
createDlg("dlgReg","用户注册",320,260)
l="
l+="
l+="
l+="
l+="
l+="
l+="
l+="
l+="
l+=""
insHtm("dlgReg",l)
oFocu(document.fmReg.FUid)
$('dlgReg').clickOk=function(){
document.fmReg.btSubmit.click()
}
document.fmReg.onload=function(xml){
oDel('dlgReg')
location.reload(true)
}
}
functionuser_logout(){
loadXml("handle_user.asp?cmd=logout",function(xml){
location.reload(true)
})
}
functioneditor_setLink(win){
varv
win.focus()
if(document.all)
v=window.showModalDialog("lib/input.htm","请输入超链接路径|http://","dialogwidth:354px;dialogheight:152px;status:no;help:no")
else
v=prompt("请输入超链接路径","http://")
if(v==null)
return
if(v!=""&&v!="http://")
win.document.execCommand("createlink",false,v)
else
win.document.execCommand("unlink",false,null)
}
functioneditor_insImg(win){
varv
win.focus()
if(document.all)
v=window.showModalDialog("lib/input.htm","请输入图片路径|http://","dialogwidth:354px;dialogheight:152px;status:no;help:no")
else
v=prompt("请输入图片路径","http://")
if(v==null)
return
if(!/.(gif|jpg)/i.test(v))
return
win.document.execCommand("insertimage",false,v)
}
functioneditor_insJs(win){
win.focus()
l="
l+="
l+="
"
l+=""
editor_paste(win,l)
}
functionjsCode_run(ee){
vardata,w
data=ee.parentNode.parentNode.nextSibling.innerText
w=window.open("","_blank","")
w.document.write(data)
w.document.close()
if(/