function addMail(theForm) { txt = prompt("Ange en mailadress.", "info@rakeback.se"); if(txt!=null){ auth=prompt("Ange en rubrik fr meddelandet.","Jag vill veta mer om ert erbjudande p "); if(auth!=""){ AddTxt="[email=" + txt + "]" + auth + "[/email]"; }else{ AddTxt="[email=" + txt + "]Meddelande frn rakeback.se[/email]"; } } AddText(AddTxt, theForm); } function addLink(theForm) { AddText("[url][/url]", theForm); } function navOver(text, e){ e.style.border = "1px #316AC5 solid"; e.style.background = "#C1D2EE"; e.style.padding = "3px"; window.status = text; } function navOut(e){ e.style.border = "0px #eee solid"; e.style.background = ""; e.style.padding = "4px"; window.status = ''; } function bold(theForm) { AddText("[b][/b]", theForm); theForm.focus(); } function italic(theForm) { AddText("[i][/i]", theForm); theForm.focus(); } function under(theForm) { AddText("[u][/u]", theForm); theForm.focus(); } function through(theForm) { AddText("[s][/s]", theForm); theForm.focus(); } function code(theForm){ AddText("\n[code]\n\n[/code]\n", theForm); theForm.focus(); } function cImg(theForm) { txtIMG=prompt("Name & Suchweg für ein Bild. zB. 'http://www.mydomain.com/picture.jpg'",""); if (txtIMG!="") { AddTxt="[img]"+ txtIMG +"[/img]"; AddText(AddTxt, theForm); } } function quote(theForm) { txt = prompt("Schreibe Ihr Zitat", ""); if(txt!=null){ auth=prompt("Geben Sie an wen Sie zitieren wollen.\n Lassen Sie 'blank', falls Sie keinen Namen angeben wollen.",""); if(auth!=""){ AddTxt="[quote="+ auth +"]"+ txt + "[/quote]"; }else{ AddTxt="[quote]" + txt + "[/quote]"; } AddText(AddTxt, theForm); } theForm.focus(); } function inserticon(icon) { var f = document.frm_nthread.thread_text; if(!icon.length==""){ AddText(icon, f); f.focus(); } } function AddText(val, obj){ obj.value += val; } function post_thread(a, b){ var f = document.frm_nthread; if(f.thread_text.value == "" || f.thread_text.value.length <= 30){ alert("Schreibe ein Beitrag mit mindestens 30 Zeichen\n"); return false; } if(a == "newthread" && b == "preview"){ if(f.thread_title.value == ""){ alert("Schreibe eine Rubrik\n"); return false; } f.tVar.value = "preview"; f.action = "newthread.asp?forum_id=" + f.forum_id.value; }else if(a == "newthread" && b == "post"){ if(f.thread_title.value == ""){ alert("Schreibe eine Rubrik"); return false; } f.tVar.value = "post"; f.action = "newthread.asp?forum_id=" + f.forum_id.value; }else if(a == "newreply" && b == "preview"){ f.tVar.value = "preview"; f.action = "newreply.asp?thread=" + f.thread_id.value; }else if(a == "newreply" && b == "post"){ f.tVar.value = "post"; f.action = "newreply.asp?thread=" + f.thread_id.value; }else if(a == "editpost" && b == "preview"){ f.tVar.value = "preview"; f.action = "editpost.asp?thread=" + f.thread_id.value; }else if(a == "editpost" && b == "post"){ f.tVar.value = "post"; f.action = "editpost.asp?thread=" + f.thread_id.value; } f.submit(); }