//去掉左右空格函数
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           }
//-------------------------------------------------------------------
function dispmorereg()
{
	
		document.getElementById("hidbox").style.display='';
		document.all("hidmenu").innerHTML='<a href="javascript:dispmorehid()"><img src="/peruser/images/close.gif" border="0" /> 以后再填写下列信息</a>';
		document.all("hidtxt").innerHTML='>><a href="javascript:dispmorehid()">以下为选填信息，也可以后填写</a>';
		document.getElementById("divline").style.display='';
		document.all("divline").innerHTML='<a href="javascript:dispmorehid()"><img src="/peruser/images/close.gif" border="0" /> 以后再填写上列信息</a>';

}
function dispmorehid()
{       document.all.talk.value='';
        document.all.intro.value='';
     	document.getElementById("hidbox").style.display='none';
        document.all("hidmenu").innerHTML='<a href="javascript:dispmorereg()"><img src="/peruser/images/open.gif" border="0" /> 现在就填写其它信息</a>';
		document.all("hidtxt").innerHTML='';
		document.getElementById("divline").style.display='none';
}

//--------------------------------------------------------------
function dispCCorBcc(i)
{  	
	    document.getElementById("tr_cc"+i).style.display='';

        document.getElementById("tr_aa"+i).style.display='none';
}

//---------------------------------------------------------------------
function winopen(logid,uid){
window.open ('/Blog/Blog_cite_'+logid+'_'+uid+'.htm', 'newwindow', 'height=350, width=620, top=50,left=100, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')
}






<!--
//时间/////
function yoption(N)
{
    var i,N,str,M;
    str="";
    for(i=1900;i<=N;i++)
    {
        if(i<10) str="<option value='0"+i+"'>"+"0"+i+"</option>";
        else str="<option value='"+i+"'>"+i+"</option>";   
        document.write(str);
    }  
}
function foption(N)
{
    var i,N,str,M;
    str="";
    for(i=1;i<=N;i++)
    {
        if(i<10) str="<option value='0"+i+"'>"+"0"+i+"</option>";
        else str="<option value='"+i+"'>"+i+"</option>";   
        document.write(str);
    }  
}
function changeri()
{
    var nian,yue,ri;
    var it=document.form1;
    ri=31;
    yue=it.month.value ;
    if(yue=="04" || yue=="06" || yue=="09" || yue=="11")
    ri=30;
    if(yue=="02")
    {
        nian=it.year.value;
        if((nian%4==0 && nian%100!=0) || nian%400==0)
            ri=29;
        else ri=28;   
    }
    flen=it.day.length ; 
    it.day.length =ri;
    i=flen+1;
    for(i;i<=ri;i++)
    {
        it.day.options(i-1).text=i;
        it.day.options(i-1).value=i;
    }
}
//时间/////
-->


