function InsUBB(objubb) { var Obj=document.getElementById("CommentContent"); Obj.focus(); var aText = Obj.document.selection.createRange(); switch(objubb){ case "B": if(aText.text.length>0) aText.text='[B]'+aText.text+'[/B]'; break; case "I": if(aText.text.length>0) aText.text='[I]'+aText.text+'[/I]'; break; case "U": if(aText.text.length>0) aText.text='[U]'+aText.text+'[/U]'; break; case "CODE": if(aText.text.length>0) aText.text='[CODE]'+aText.text+'[/CODE]'; break; case "QUOTE": if(aText.text.length>0) aText.text='[QUOTE]'+aText.text+'[/QUOTE]'; break; default: alert("错误参数调用!"); break; } aText=null; } function InsLink(){ var Obj=document.getElementById("CommentContent"); Obj.focus(); var result=window.showModalDialog("/Images/Guest/Link.asp",window,"scroll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:140px"); if(result != null) Obj.value+=result; } function InsImage(){ var Obj=document.getElementById("CommentContent"); Obj.focus(); var result=window.showModalDialog("/Images/Guest/Image.asp",window,"scroll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:135px"); if(result != null) Obj.value+=result; } function InsIcon(){ var Obj=document.getElementById("CommentContent"); Obj.focus(); var result=window.showModalDialog("/Images/Guest/Icon.asp",window,"scroll:no;resizable:no;help:no;status:no;dialogWidth:300px;dialogHeight:250px"); if(result != null) Obj.value+=result; } document.write('