function floatAD()
{	
var uu=uu9.innerHTML;
if(uu==4)
ceng.style.top=document.body.scrollTop+250;
else   ceng1.style.top=document.body.scrollTop+250;
}
function mx1(mx2)
{
DemoMethods.mxr3(mx2);
}

function fatie(oooo)
{
var o890=t2.innerHTML;
var qwe122=qwe1.innerHTML;
var xynm=document.Form1.xynm.value;
var uu=add_ft.GetCustomerMac(document.Form1.tiezibiaoti.value,document.Form1.color.value,document.Form1.doc_html.value,oooo,o890,qwe122,xynm,document.Form1.txtFileName.value).value;
document.Form1.tiezibiaoti.value="";
document.Form1.doc_html.value="";
document.Form1.txtFileName.value="11";
document.Form1.xynm.value="0";
window.parent.right.location.href="jt1/"+uu;
window.open("left/topic.html?ioo="+uu,'left');


}
function MyShow()//定时器及设置各模块的显示属性
{
if(rtrt454.innerHTML=="1")
document.getElementById("add").style.display   =   ""; 
else
document.getElementById("add").style.display   =   "none"; 
    DemoMethods.wuliang(ss);
    DemoMethods.oooooo(pp);
     DemoMethods.whjl(whwhwh);
    floatAD();
GetResult();
ooooo();

NMBZ();
    DemoMethods.wuliang22fg2(uio);
   
}
function whwhwh(whwhwhwh) 
{
var ds12 = whwhwhwh.value; 
var sh1 = new Array(); 
sh1[sh1.length] = "<table border=0>"; 
for(var i=4; i<12; i++)
{

sh1[sh1.length] = "<tr>";
sh1[sh1.length] = "<td  style='WORD-BREAK:break-all'><a title="+ds12.Tables[0].Rows[i].mu_wz_xl+" href="+ds12.Tables[0].Rows[i].mu_lj_xl+" target=_blank ><font face=宋体 size=2 >"+ggg3(ds12.Tables[0].Rows[i].mu_wz_xl) +"</font></a></td>"; 
sh1[sh1.length] = "</tr>"; 

}
sh1[sh1.length] = "</table>"; 
jh1.innerHTML = sh1.join(""); 
var sh1 = new Array(); 
sh1[sh1.length] = "<table border=0>"; 
for(var i=12; i<23; i++)
{

sh1[sh1.length] = "<tr>";
sh1[sh1.length] = "<td  style='WORD-BREAK:break-all'><a title="+ds12.Tables[0].Rows[i].mu_wz_xl+" href="+ds12.Tables[0].Rows[i].mu_lj_xl+" target=_blank ><font face=宋体 size=2 >"+ggg3(ds12.Tables[0].Rows[i].mu_wz_xl) +"</font></a></td>"; 
sh1[sh1.length] = "</tr>"; 

}
sh1[sh1.length] = "</table>"; 
jh2.innerHTML = sh1.join(""); 

var sh1 = new Array(); 
sh1[sh1.length] = "<table border=0>"; 
for(var i=23; i<34; i++)
{

sh1[sh1.length] = "<tr>";
sh1[sh1.length] = "<td  style='WORD-BREAK:break-all'><a title="+ds12.Tables[0].Rows[i].mu_wz_xl+" href="+ds12.Tables[0].Rows[i].mu_lj_xl+" target=_blank ><font face=宋体 size=2 >"+ggg3(ds12.Tables[0].Rows[i].mu_wz_xl) +"</font></a></td>"; 
sh1[sh1.length] = "</tr>"; 

}
sh1[sh1.length] = "</table>"; 
jh3.innerHTML = sh1.join(""); 
}

function NMBZ()
{
var q11=uuu.innerHTML;
if(q11!="")
document.Form1.nmbb.value=DemoMethods.NMB(q11).value;
else return;
}


 function ggg(str){
    var strlen = 0;
    var s = "";
    for(var i = 0;i < str.length;i++){
        if(str.charCodeAt(i) > 128) strlen += 2;
        else strlen++;
        s += str.charAt(i);
        if(strlen >= 26) return s + "";
    }
    return s;
}


function ggg3(str){
    var strlen = 0;
    var s = "";
    for(var i = 0;i < str.length;i++){
        if(str.charCodeAt(i) > 128) strlen += 2;
        else strlen++;
        s += str.charAt(i);
        if(strlen >= 32) return s + "";
    }
    return s;
}



 function ggg1(str){
    var strlen = 0;
    var s = "";
    for(var i = 0;i < str.length;i++){
        if(str.charCodeAt(i) > 128) strlen += 2;
        else strlen++;
        s += str.charAt(i);
        if(strlen >=64) return s + "";
    }
    return s;
}
function ooooo()
{
DemoMethods.oooooo(pp);
}
function pppp()
{

}
function pp(oo)
{
var ds1 = oo.value; 
var s1 = new Array(); 
s1[s1.length] = "<table border=0>"; 
for(var i=0; i<ds1.Tables[0].Rows.length; i++){ 

if(i%2==0)
{
s1[s1.length] = "<tr>";
s1[s1.length] = "<td width=237  style='WORD-BREAK:break-all'><img  src=images/2/dot1.gif>" +"<a title="+ds1.Tables[0].Rows[i].topictitle_xl+" href=xl_topic.aspx?id="+ds1.Tables[0].Rows[i].id+" target=right  onclick=mx1("+ds1.Tables[0].Rows[i].id+")>"+"<font face=宋体 size=2 color="+ds1.Tables[0].Rows[i].topiccolor_xl+">"+ggg(ds1.Tables[0].Rows[i].topictitle_xl) +"</font>"+"</a><font face=宋体 size=2>"+ds1.Tables[0].Rows[i].topicreply_xl+"/"+ds1.Tables[0].Rows[i].topicclick_xl+"</font></td>"; 
}
else
{
s1[s1.length] = "<td width=237  style='WORD-BREAK:break-all'><img  src=images/2/dot1.gif>" +"<a  title="+ds1.Tables[0].Rows[i].topictitle_xl+" href=xl_topic.aspx?id="+ds1.Tables[0].Rows[i].id+" target=right  onclick=mx1("+ds1.Tables[0].Rows[i].id+")>"+"<font face=宋体 size=2 color="+ds1.Tables[0].Rows[i].topiccolor_xl+">"+ ggg(ds1.Tables[0].Rows[i].topictitle_xl) +"</font>"+"</a><font face=宋体 size=2>"+ds1.Tables[0].Rows[i].topicreply_xl+"/"+ds1.Tables[0].Rows[i].topicclick_xl+"</font></td>"; 
s1[s1.length] = "</tr>"; 
}


} 
s1[s1.length] = "</table>"; 
yy.innerHTML = s1.join(""); 
}


function GetResult()
{
DemoMethods.wuliang(ss);
}
function ss(dd)
{
var iu1=Number(document.Form1.wo1.value);
var ds = dd.value; 
var s = new Array(); 
s[s.length] = "<table border=0>"; 
for(var i=(iu1-1)*500; i<ds.Tables[0].Rows.length; i++){
if(i==iu1*500)
break;
else{ 
s[s.length] = "<tr>";
s[s.length] = "<td><img  src=images/2/dot3.gif>" +"<a  title="+ds.Tables[0].Rows[i].topictitle_xl+"  href=jt1/"+ds.Tables[0].Rows[i].html_xl+" target=right  onclick=mx1("+ds.Tables[0].Rows[i].id+")>"+"<font face=宋体 size=2 color="+ds.Tables[0].Rows[i].topiccolor_xl+">"+ ggg1(ds.Tables[0].Rows[i].topictitle_xl) +"</font>"+"</a><font face=宋体 size=2>"+ds.Tables[0].Rows[i].topicreply_xl+"/"+ds.Tables[0].Rows[i].topicclick_xl+"</font></td>"; 
s[s.length] = "</tr>"; 
}
} 
var uuuu=ds.Tables[0].Rows.length;

s[s.length] = "<tr><td>";
for(var j=1;j<=(uuuu-1)/500+1;j++)
{

if(iu1==j)
s[s.length] ="<FONT size=2 color=#ff0033>"+document.Form1.wom.value+j+document.Form1.wom1.value+"</FONT>"; 
else
s[s.length] ="<a href=# onclick=ssk3("+j+")><FONT size=2> "+document.Form1.wom.value+j+document.Form1.wom1.value+" </FONT></a>"; 

}
s[s.length] = "</td></tr>";
s[s.length] = "</table>"; 
tb.innerHTML = s.join(""); 
}
	
	function ssk3(pp)
	{
	document.Form1.wo1.value=pp;
	}
function huifu() 
{

xl_topic.wanghui(document.Form2.Hidden2.value);
document.Form2.Hidden2.value="";
}



