// check.js
// Funktionen für Formulare
// (c) 04.07.2002 Thomas Freese
// T.Freese@bremtec.de
///////////////////////////////////////////////////////////

function isPLZ(plz) {
   return plz>=1000 && plz<=99999 && !isNaN(plz);
}
function isEmail(email) {
   var idxAt = email.indexOf('@');
   return (idxAt>0 && email.indexOf(".", idxAt)>0)
}
function chkZeichen(teststr, zchn) {
   var i=0;
   zchn = zchn.toUpperCase();
   teststr = teststr.toUpperCase();
   var res = teststr.length>0;
   while(i<teststr.length && res)
      res = !(zchn.indexOf(teststr.charAt(i++))==-1);
   return res;
}

