function FirstCommLen()
{
maxLen=150;
var txt=document.frm_contentsend.firstcomment.value;
if(txt.length>maxLen)
    {
      alert("You are not allowed to insert more than "+maxLen+" characters.");
      document.frm_contentsend.firstcomment.value=txt.substring(0,maxLen);
      document.frm_contentsend.zaehler.value=0;
    }
else
    {
    document.frm_contentsend.zaehler.value=maxLen-txt.length;
    }
}

function checkLen()
{
maxLen=300;
var txt=document.frm_commsend.comment.value;
if(txt.length>maxLen)
    {
      alert("You are not allowed to insert more than "+maxLen+" characters.");
      document.frm_commsend.comment.value=txt.substring(0,maxLen);
      document.frm_commsend.zaehler.value=0;
    }
else
    {
    document.frm_commsend.zaehler.value=maxLen-txt.length;
    }
}


