var b=2;var i=2;var u=2;var p=2;var c=2;var url=2;var img=2;var mid=2;function tag(v,tagadd,newbut,tagclose,oldbut,name){if(eval(v)%2==0){eval("window.document.editform."+name+".value = newbut;");var post=window.document.editform.post.value;window.document.editform.post.value=post+tagadd;window.document.editform.post.focus()}else{eval("window.document.editform."+name+".value = oldbut;");var post=window.document.editform.post.value;window.document.editform.post.value=post+tagclose;window.document.editform.post.focus()}eval(v+"++;")}if(eval(v)%2==0){eval("window.document.editform."+name+".value = newbut;");var post=window.document.editform.post.value;window.document.editform.post.value=post+tagadd;window.document.editform.post.focus();eval(v+"++;")}else{eval("window.document.editform."+name+".value = oldbut;");var post=window.document.editform.post.value;window.document.editform.post.value=post+tagclose;window.document.editform.post.focus()}function font(a,d){var e=document.editform.post;e.value+=a+d;return}function smilie(a){var d=document.editform.post;d.value+=a;return}bold_help="Bold text: [b]text[/b]";italic_help="Italic text: [i]text[/i]";underline_help="Underline text: [u]text[/u]";quote_help="Quote text: [quote]text[/quote] or [quote=name]text[/quote]";code_help="Code display: [code]code[/code]";img_help="Insert image: [img]http://image_url[/img]";url_help="Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url]";fontcolor_help="Font color: [color=red]text[/color]  Tip: you can also use color=#FF0000";fontsize_help="Font size: [size=50%]small text[/size]";php_help="Code display: [php]php code[/php]";mid_help="Text Centering: [mid]text u wanna center[/mid]";function helpline(help){var helpbox=document.editform.helpbox;helpbox.value=eval(help+"_help")}function confirm_reset(){if(confirm("If you continue you will loose everything you have entered so far. \n \nClick OK to proceed and start again.  \n \n Alternatively click cancel to continue working on your post.")){return true}else{return false}}function checkForm(){var d=document.editform.subject;var a=document.editform.post;if(d.value.length<2&&a.value.length<2){alert("This is a short post! \n \n We require that each post (and subject) \nbe at least 2 characters long. \n \nGo back and try again.");return false}else{if(d.value.length<2){alert("We require that the subject  \nbe at least 2 characters long. \n \nGo back and try again.");return false}else{if(a.value.length<2){alert("We require that each post  \nbe at least 2 characters long. \n \nGo back and try again.");return false}else{return true}}}}function storeCaret(a){if(a.createTextRange){a.caretPos=document.selection.createRange().duplicate()}};