	function check(feld,titel,typ,ml) {
		if (typeof typ=="undefined") typ='text';
		if (typeof ml=="undefined") ml=1;
		if(typ=='text') {
			if(feld.value.length<ml) {
				if(ml>1)
					alert(unescape(escape('Die Eingabe im Feld "'+titel+'" muss mindestens '+ml+' Zeichen lang sein!')));
				else
					alert(unescape(escape('Please fill in all fields correctly!')));
				feld.focus();
				return false;
			}
		} else if(typ=='email') {
			var reg=/^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,4}(\.[a-z]{2}){0,2})$/i;
			if (!reg.test(feld.value)) {
				alert(unescape(escape('Please fill in a valid email adress!')));
				feld.focus();
				return false;
			}
		} else if(typ=='select') {
			if(feld[0].selected) {
				alert(unescape(escape('Please choose a title!')));
				feld.focus();
				return false;
			}
		} else if(typ=='checkbox') {
			if(!feld.checked) {
				alert(unescape(escape('Bitte bestätigen Sie '+titel+'!')));
				feld.focus();
				return false;
			}
		}
		return true;
	}