function CheckLen(Target)
 {
 StrLen = Target.value.length;
 if (StrLen == 1 && Target.value.substring(0,1) == ' ') 
  {
  Target.value = '';
  StrLen = 0; 
  }
  if (StrLen > 250) 
  {
  Target.value = Target.value.substring(0,250);
  CharsLeft = 0; 
  }
  else
  {
  CharsLeft = 250 - StrLen; 
  }
 document.formular.anzahl.value = CharsLeft; 
 }
function ereg(txt, search) {
	for(i = 0; i < txt.length; i++) {
		if (txt.substr(i,1) == search) return true;
	}
	return false;
}
function compress (txt) {
 var Ausdruck = /(.+)\s(.+)/;
 
 while (txt.search(Ausdruck) != -1){
	Ausdruck.exec(txt);
	txt = RegExp.$1 + RegExp.$2.charAt(0).toUpperCase() + RegExp.$2.substring(1, 250);
 }
document.formular.nachricht.value = txt;
CheckLen(document.formular.nachricht);
}