function chkFormularPrintform()  
{
  
  var index = 0;
  var stillobjects = true;
  var sVar = "", sPflicht="";

  while (stillobjects == true)
  {
        if (document.Formular.elements[index])
        {
          sVar = document.Formular.elements[index].name;
          sCon = document.Formular.elements[index].value;
          sPflicht = sVar.substr(0,5);

          if ( sPflicht.toUpperCase() == "TXTP_" && sCon.length < 1 )
          {
            alert("Bitte füllen Sie das Feld " + sVar.substr(5, sVar.length - 5) + " aus.");
            return false;
          }
          index = index + 1;    
        }
        else
        {
          stillobjects = false;
        }
  }
  return true;
}
