function ausgefuellt(text) {
 	if (text == "hier") { return false };
 return (text.length > 1); // mindestens zwei Buchstaben
}

function pruefe_email(address) {
  if ((address == "")
    || (address.indexOf ('@') == -1)
    || (address.indexOf ('.') == -1))
      return false;
  return true;
}
function ist_zahl(eingabe) {
	for(i=0; i < eingabe.length; ++i) {
	   if (eingabe.charAt(i) < "0" || eingabe.charAt(i) > "9")	return false;
	}
	return true;
}


function also(feld,text) {
        ist_ok = false;
        alert(text);
        document.form[feld].value = "";
        document.form[feld].focus();
        document.form[feld].select();
  return ist_ok;
}


function checkMailForm() {
    if (checkForm()) {
                    prev_big();
                    return false;
                    }
    else {
            return false;
        }
}

function checkForm() {
	ist_ok = true;
	if (!ausgefuellt(document.form.streamid.value))  { also('streamid','Bitte gebe deinem Livestream einen Namen!'); return false; }
	if (!ausgefuellt(document.form.lastname.value))  { also('lastname',''); return false; }
    return ist_ok;

}

