//Katja Bubenzers FormTool Box

function CheckLen(Target){
var maxlength = "300"; // maximal substring
StrLen=Target.value.length;

if (StrLen==1&&Target.value.substring(0,1)==" "){
Target.value="";
StrLen=0;
}

if (StrLen>maxlength ){
Target.value=Target.value.substring(0,maxlength);
CharsLeft=0;
}else{
CharsLeft=maxlength-StrLen;
}
document.zaehlformular.Anzahl.value=CharsLeft;
}

function mark(face,field_color,text_color){
if (document.documentElement){//if browser is IE5+ or NS6+
face.style.backgroundColor=field_color;
face.style.color=text_color;
}
}

