
 if (top.location != self.location) {
 top.location=self.location 
   }


function printsmilies(smname)
{
  form.bo.value+= smname;
}


function RestlicheZeichenErmitteln(form)
{
	var ErlaubteAnzahl=600;

	Laenge=document.form.bo.value.length;
	if(Laenge>ErlaubteAnzahl)
	{
		document.form.bo.value=document.form.bo.value.substring(0,ErlaubteAnzahl);
		RestlicheZeichen=0;
	}
	else
	{
		RestlicheZeichen=ErlaubteAnzahl-Laenge;
	}
	document.form.Laenge.value=RestlicheZeichen;
}



function bbcode(bbcode)
{
	if(bbcode == "b")
		var style = "fett";
	else if(bbcode == "i")
		var style = "kursiv";
	else
		var style = "unterstrichen";
		
	inserttext = prompt("Folgender Text wird "+style+" dargestellt:");
	if(inserttext){
	text = "["+bbcode+"]"+inserttext+"[/"+bbcode+"]";
	form.bo.value+= text;
	}
}

function enlight_focus(s)
{
   s.style.background='#485B1F'; s.style.color='white';
  
}

function enlight_blur(s)
{
   s.style.background='#41521B'; s.style.color='white';
}

function fok2()
{
   document.form.bo.focus();
}

