function insert(F,D,H,K){var G=document.forms[H].elements[K];G.focus();if(typeof document.selection!="undefined"){var C=document.selection.createRange();var I=C.text;C.text=F+I+D;C=document.selection.createRange();if(I.length==0){C.move("character",F.length+I.length+D.length)}else{C.moveStart("character",F.length+I.length+D.length)}C.select()}else{if(typeof G.selectionStart!="undefined"){var A=G.selectionStart;var B=G.selectionEnd;var I=G.value.substring(A,B);G.value=G.value.substr(0,A)+F+I+D+G.value.substr(B);var E;if(I.length==0){E=A+F.length+I.length+D.length}else{E=A+F.length+I.length+D.length}G.selectionStart=E;G.selectionEnd=E}else{var E;var J=new RegExp("^[0-9]{0,3}$");while(!J.test(E)){E=prompt("Insert at position (0.."+G.value.length+"):","0")}if(E>G.value.length){E=G.value.length}var I=prompt("Please you enter the text which can be formatted:");G.value=G.value.substr(0,E)+F+I+D+G.value.substr(E)}}}function setsmile(A,B,C){document.forms[B].elements[C].focus();document.forms[B].elements[C].value=document.forms[B].elements[C].value+A;document.forms[B].elements[C].focus()};