if (!Dvbbs_bIsIE5){
document.write('');
}
//数据传递
function Dvbbs_CopyData(hiddenid)
{
ischeck=true
if(Dvbbs_bTextMode!=1){
cont=IframeID.document.body.innerText;
IframeID.document.body.innerHTML=cont;
IframeID.focus()
}
document.Dvform.Submit1.disabled=true;
document.Dvform.Submit2.disabled=true;
document.getElementById(hiddenid).value = OSWEBXHTML.GetXHTML(IframeID.document.body);
//d.body.innerHTML=document.getElementById(hiddenid).value;
}
function Checkpostdata()
{
Checkdata()
if (ischeck==false)
{
return false
}
}
function Checkdata()
{
ischeck = true;
return;
// document.getElementById("titlestr").innerHTML="";
// document.getElementById("constr").innerHTML="";
ischeck=true;
CheckUbbUse('UserName',1,document.getElementById('Body').value) //定员帖检查
if (typeof document.Dvform.title == "object" && document.Dvform.title.value.length==0)
{
alert("您忘记填写标题");
//document.getElementById("titlestr").innerHTML=" ←您忘记填写标题"
document.Dvform.title.focus();
ischeck=false
return false;
}
//是否必选专题判断。2005-3-11 Dv.Yz
if (document.Dvform.topicmode){
if (document.Dvform.topicmode.value==0 && document.Dvform.selecttmode.value==2)
{
alert("您没有选择专题");
//document.getElementById("titlestr").innerHTML=" ←您没有选择专题"
document.Dvform.title.focus();
ischeck=false
}
}
if (document.Dvform.title.value.length>Maxtitlelength)
{
alert("标题长度不能大于"+Maxtitlelength+"");
//document.getElementById("titlestr").innerHTML=" ←标题长度不能大于"+Maxtitlelength+""
document.Dvform.title.focus();
ischeck=false
}
if (document.Dvform.codestr!=null)
{
document.getElementById("GetCode").innerHTML="";
if (document.Dvform.codestr.value.length!=4)
{
alert("请输入正确的验证码");
//document.getElementById("GetCode").innerHTML=" ←请输入正确的验证码"
document.Dvform.codestr.focus();
ischeck=false
}
}
if (document.getElementById('Body').value.length==0)
{
alert("请填写帖子内容");
//document.getElementById("constr").innerHTML=" ←请填写帖子内容"
IframeID.focus();
ischeck=false
}
else if (document.getElementById('Body').value.length>MaxConlength)
{
alert("帖子内容长度不能大于"+MaxConlength+",您已经输入了"+document.getElementById('body').value.length+"个字");
//document.getElementById("constr").innerHTML=" ←帖子内容长度不能大于"+MaxConlength+",您已经输入了"+document.getElementById('body').value.length+"个字"
IframeID.focus();
ischeck=false
}
if (ischeck==false)
{
document.Dvform.send.disabled=false;
//document.Dvform.Submit2.disabled=false;
}
}
function Dvbbs_PasteData()
{
cont = IframeID.document.body.innerHTML;
IframeID.document.body.innerHTML = cont
}
function ShowForum_Emot(thepage)
{
var Emot_PageCount
var Emot_Count=Forum_Emot.length-2;
if(Emot_Count%Emot_PageSize==0)
{
Emot_PageCount=(Emot_Count)/Emot_PageSize
}else{
Emot_PageCount=Math.floor((Emot_Count)/Emot_PageSize)+1
}
thepage=parseInt(thepage);
if (thepage<=Emot_PageCount){
var istr
var EmotStr=' ';
var EmotPath=Forum_Emot[0];
if (thepage!=1 && Emot_PageCount>1)
{EmotStr+='
';}
for(i=(thepage-1)*Emot_PageSize;i<(thepage-1)*Emot_PageSize+Emot_PageSize;i++)
{
if (i==Emot_Count){break}
if (i<9)
{istr='em0'+(i+1)}
else
{istr='em'+(i+1)}
EmotStr+='
';
}
if (thepage!=Emot_PageCount)
{EmotStr+='
';}
EmotStr+='分页:'+thepage+'../_3Cb>'+Emot_PageCount+',共'+(Emot_Count)+'个';
EmotStr+="