
function huifu() 
{

var liang34=document.all.liang2.value;
var i7u="";
for(var i=liang34.length-1;i>0;i--)
{
var uo=liang34.substr(i,1);
if(uo!=".")
i7u=i7u+uo;
else 
break;
}
if(i7u=="gpj"||i7u=="gepj"||i7u=="fig"||i7u=="pmb"||i7u=="fifj"||i7u=="fws")
document.all.doc_html.value=document.all.doc_html.value+"<br><IMG style='BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none' src='"+liang34+"'>";



var nmc1=Number(document.all.nmv2.value);
var wu5=document.all.doc_html.value;
if(document.all.yy.checked==true)
document.all.Text3.value=1;
else
document.all.Text3.value=0;
document.all.Text2.value=document.all.doc_html.value;
var str2;
var z=0;
var k=0;
for(var i=0;z<4;)
{
str2=wu5.substr(i,6);
if(str2=="&nbsp;")
{
if((wu5.length-k)<6)
    {
        z=z+(wu5.length-k);
         break;
     }
    else 
    {k=k+6;
    i=i+6;
    }
}
else
{

  if((wu5.length-k)<6)
   {
   z=z+(wu5.length-k);
   break;
   }
   else 
   {
   z=z+1;
   i=i+1;
   k=k+1; 
   }
 }
}

if(nmc1*0!=0)
{
window.alert("请您输入数字！");
return false;
}
else if(nmc1<0)
{
window.alert("不能输入负数！");
return false;
}
else if(Number(z)<2)
{
window.alert("对不起，最少输入两个字！");
return false;
}
else
return true;

}




function shangchuan()
{

openScript('../tt2.aspx',400,100); 

}

function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,frameborder=0,status=yes' );

}
function nmn()
{
document.getElementById("kl").style.display   =   "none"; 
document.getElementById("hg1").style.display  = ""; 
document.getElementById("hg").style.display="";
var ggg=document.all.txtFileName.value;
document.all.hg.src="../tupian/"+ggg;
}

function shanchuan()
{
var kjk=document.all.txtFileName.value;
var lllkl="f://nmmn//xl_bbs//fuye//tupian//";
//xl_topic.hgh(lllkl,kjk);
document.all.txtFileName.value="11";
document.getElementById("kl").style.display   =   ""; 
document.getElementById("hg1").style.display  = "none"; 
document.getElementById("hg").style.display="none";
}

function biaoqing2()
{

openScript('../WebForm1.aspx',600,400);

}

function q12()
{
var wl0=tt.innerHTML;
var hhh=rr.innerHTML;
if(wl0==1){
DemoMethods.w12(hhh);
window.alert("恭喜您！！设置成功！！");}
else 
window.alert("您没有 权限");
}

function xlxl2()
{

 location.href="../xg_topic.aspx?id="+document.all.html_id.value; 
}

function xiugaihuifu(re1,re)
{
var mx9=re1;
var wl1=uu9.innerHTML;
var wl0=tt.innerHTML;
if(wl0==1||wl1==mx9)
 location.href="xg_huifu.aspx?id="+re;
 else
 window.alert("对不起，您没登录或这不是您发的回复！！");

} 


function whwl1()
{
 location.href="../del_huifu.aspx?html_id="+document.all.html_id.value; 

}

function q12()//精华贴
{
 location.href="../jh_topic.aspx?id="+document.all.html_id.value; 

}
function whwl()//删除贴
{
 location.href="../del_topic.asp?html_id="+document.all.html_id.value; 

}

function ff568()
{
if(window.parent.main.cols=="48%,*")
window.parent.main.cols="0,100%";
else window.parent.main.cols="48%,*";
}


