 function clearText(thefield) { if (thefield.defaultValue==thefield.value) thefield.value = "" }var text1; function checklength(i) { var txt; txt=document.postedit.topic_body.value; n=txt.length; if (n>i) { alert('Allekirjoituksen maksimipituus on 200 merkki&auml;.'); document.postedit.topic_body.value=text1; return; } text1=document.postedit.topic_body.value; }function bbbold() { var val = document.postedit.topic_body.value;	val += "[b][/b]"; document.postedit.topic_body.value = val; }function bbitalic() { var val = document.postedit.topic_body.value; val += "[i][/i]"; document.postedit.topic_body.value = val; }function bbunderline() { var val = document.postedit.topic_body.value; val += "[u][/u]"; document.postedit.topic_body.value = val; }function bbcolor() { var val = document.postedit.topic_body.value; val += "[color=][/color]";	document.postedit.topic_body.value = val; }function bbimage() { var val = document.postedit.topic_body.value; val += "[img][/img]"; document.postedit.topic_body.value = val; }function bburl() { var val = document.postedit.topic_body.value; val += "[url=http:\/\/][/url]"; document.postedit.topic_body.value = val; }function bbquote() { var val = document.postedit.topic_body.value; val += "[quote][/quote]"; document.postedit.topic_body.value = val; }function smiley_1() { var val = document.postedit.topic_body.value; val += ":D"; document.postedit.topic_body.value = val; }sm1_help = ":D";function smiley_2() { var val = document.postedit.topic_body.value; val += ":?"; document.postedit.topic_body.value = val; }sm2_help = ":?";function smiley_3() { var val = document.postedit.topic_body.value; val += "8)"; document.postedit.topic_body.value = val; }sm3_help = "8)";function smiley_4() { var val = document.postedit.topic_body.value; val += ":cry:"; document.postedit.topic_body.value = val; }sm4_help = ":cry:";function smiley_5() { var val = document.postedit.topic_body.value; val += "8O"; document.postedit.topic_body.value = val; }sm5_help = "8O";function smiley_6() { var val = document.postedit.topic_body.value; val += ":evil:"; document.postedit.topic_body.value = val; }sm6_help = ":evil:";function smiley_7() { var val = document.postedit.topic_body.value; val += ":lol:"; document.postedit.topic_body.value = val; }sm7_help = ":lol:";function smiley_8() { var val = document.postedit.topic_body.value; val += ":x"; document.postedit.topic_body.value = val; }sm8_help = ":x";function smiley_9() { var val = document.postedit.topic_body.value; val += ":mrgreen:"; document.postedit.topic_body.value = val; }sm9_help = ":mrgreen:";function smiley_10() { var val = document.postedit.topic_body.value; val += ":|"; document.postedit.topic_body.value = val; }sm10_help = ":|";function smiley_11() { var val = document.postedit.topic_body.value; val += ":P"; document.postedit.topic_body.value = val; }sm11_help = ":P";function smiley_12() { var val = document.postedit.topic_body.value; val += ":oops:"; document.postedit.topic_body.value = val; }sm12_help = ":oops:";function smiley_13() { var val = document.postedit.topic_body.value; val += ":roll:"; document.postedit.topic_body.value = val; }sm13_help = ":roll:";function smiley_14() { var val = document.postedit.topic_body.value; val += ":("; document.postedit.topic_body.value = val; }sm14_help = ":(";function smiley_15() { var val = document.postedit.topic_body.value; val += ":)"; document.postedit.topic_body.value = val; }sm15_help = ":)";function smiley_16() { var val = document.postedit.topic_body.value; val += ":o"; document.postedit.topic_body.value = val; }sm16_help = ":o";function smiley_17() { var val = document.postedit.topic_body.value; val += ":twisted:"; document.postedit.topic_body.value = val; }sm17_help = ":twisted:";function smiley_18() { var val = document.postedit.topic_body.value; val += ":wink:"; document.postedit.topic_body.value = val; }sm18_help = ":wink:";z_help = "Kuljeta hiiri kuvan yli saadaksesi kuvauksen.";b_help = "[b]teksti[/b]";i_help = "[i]teksti[/i]";u_help = "[u]teksti[/u]";color_help = "[color=red]teksti[/color]";image_help = "[img]http://www.website.com/image.jpg[/img]";url_help = "[url=http://www.website.com]Kotisivu[/url]";quote_help = "[quote]teksti[/quote]";function bbexplain(expl) { document.postedit.bbexp.value = eval(expl + "_help"); }
