function smilie(text)
{
eval("document.post.report.value += \""+text+"\"");
document.post.report.focus();
}

var oldTag = "";
var newTag2 = "";
var closeTags = new Array();

function openTag(newTag){
if(newTag2 != newTag)
{
 newTag2=newTag;
 var vor_text = document.post.report.value;
 document.post.report.value = vor_text+""+newTag+"[";
 closeTags.unshift(newTag);
}
document.post.report.focus();
}

function closeTag(){
if(closeTags.join() != "")
{
 var vor_text = document.post.report.value;
 document.post.report.value = vor_text+"]"+closeTags[0]+"";
 closeTags.shift()
 newTag2 = "";
 font = 0;
 size = 0;
 color = 0;
}
document.post.report.focus();
}
function eingabe() {
lina = window.prompt("Name des Links","");
url= window.prompt("URL","http://");
if(lina=="") { lina=url; }


erg="link[" + url + "][" + lina + "]link";

    eval("document.post.report.value += \""+erg+"\"");
}

function color(add)
  {
  	document.getElementById('text').value += add;
  }

function quote(add)
  {
  	document.getElementById('text').value += add;
}

function smilie(text)
{
eval("document.post.text.value += \""+text+"\"");
document.post.text.focus();
}

var oldTag = "";
var newTag2 = "";
var closeTags = new Array();

function openTag(newTag){
if(newTag2 != newTag)
{
 newTag2=newTag;
 var vor_text = document.post.text.value;
 document.post.text.value = vor_text+""+newTag+"[";
 closeTags.unshift(newTag);
}
document.post.text.focus();
}

function closeTag(){
if(closeTags.join() != "")
{
 var vor_text = document.post.text.value;
 document.post.text.value = vor_text+"]"+closeTags[0]+"";
 closeTags.shift()
 newTag2 = "";
 font = 0;
 size = 0;
 color = 0;
}
document.post.text.focus();
}
function eingabe() {
lina = window.prompt("Name des Links","");
url= window.prompt("URL","http://");
if(lina=="") { lina=url; }


erg="link[" + url + "][" + lina + "]link";

    eval("document.post.text.value += \""+erg+"\"");

}

function bbcode(add)
  {
  	document.getElementById('text').value += add;
  }

function smilie1(text)
{
eval("document.post1.report.value += \""+text+"\"");
document.post1.report.focus();
}


function smilie1(text)
{
eval("document.post1.text.value += \""+text+"\"");
document.post1.text.focus();
}


function smilie1(text)
{
eval("document.post1.report.value += \""+text+"\"");
document.post1.report.focus();
}


function smilie1(text)
{
eval("document.post1.text.value += \""+text+"\"");
document.post1.text.focus();
}