|
||
|
|
[ ') != -1){ center[i].innerHTML=center[i].innerHTML.replace('}{','-'); } } if(document.title.indexOf('}{') != -1){ document.title=document.title.split('}{')[0]; } } if(loc.match(/on=(post$|createpoll|pmsend)/) && document.postForm && document.postForm.subject){ var sub=document.postForm.subject; sub.maxLength="30"; var dRow=sub.parentNode.parentNode.parentNode.insertRow(2); var dCell1=dRow.insertCell(0); var dCell2=dRow.insertCell(1); dCell1.className="windowbg"; dCell2.className="windowbg"; dCell1.innerHTML='Description:'; dCell1.width="30%"; dCell2.width="70%"; var desBox=document.createElement("input"); desBox.maxLength="40"; desBox.name="description"; desBox.type="text"; desBox.size="40"; document.postForm.message.tabIndex="3"; desBox.tabIndex="2"; dCell2.appendChild(desBox); document.postForm.onsubmit=function(){ var d=desBox.value; if(d.length>0){ var tLength=parseInt(sub.value.length)+parseInt(d.length)+4; var dL=parseInt(d.length)-parseInt(tLength-46); dVal = (tLength<49 || !document.all) ? d : d.substring(0,dL)+'...'; sub.maxLength="50"; sub.value+=' }{ '+dVal; } return true; } }else if(document.postForm && loc.match(/on=post&/) && document.postForm.subject){ var sub=document.postForm.subject; if(sub.value.indexOf('}{') != -1){ sub.value=sub.value.split('}{')[0]; } }else if(loc.match(/on=(displ|search2|(user)?recen)/)){ for(i=0;i |