////////////////////////////////////////////////////////////////////////////////////////
// Ziel: Überprüft Gruss-Botschaft
// Kommentar:
// Beispiel:
// Author: ?
// Quelle:
// Letzte Überarbeitung:
///////////////////////////////////////////////////////////////////////////////////////

function chkTickerForm () {

    if (document.TickerForm.gruss.value.length < 3) {
    alert("Etwas länger darf's schon sein!");
    document.TickerForm.gruss.focus();
    return false;
    }

var text = document.TickerForm.gruss.value;
    if (text.search(/sex/i) != -1  || text.search(/www/i) != -1 || text.search(/http/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }

    if (text.search(/scheiss/i) != -1  || text.search(/votze/i) != -1 || text.search(/viagra/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }

    if (text.search(/fick/i) != -1  || text.search(/fuck/i) != -1 || text.search(/@/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }

    if (text.search(/schwein/i) != -1  || text.search(/geil/i) != -1 || text.search(/fotze/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }

    if (text.search(/scheiß/i) != -1  || text.search(/qwert/i) != -1 || text.search(/scheiss/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }

    if (text.search(/\.de/i) != -1  || text.search(/nicorett/i) != -1 || text.search(/champix/i) !=-1 ) {
    alert("Da stört mich was in Deinem Text...");
    document.TickerForm.gruss.focus();
    return false;
    }


    if (document.TickerForm.name.value == "") {
    alert("Bitte Name eingeben!");
    document.TickerForm.name.focus();
    return false;
    }

    if (document.TickerForm.age.value == "") {
    alert("Bitte Alter eingeben!");
    document.TickerForm.age.focus();
    return false;
    }

    if (document.TickerForm.city.value == "") {
    alert("Bitte Stadt eingeben!");
    document.TickerForm.city.focus();
    return false;
    }

}

////////////////////////////////////////////////////////////////////////////////////////
// Ziel: Ticker einmal reloaden
// Kommentar:
// Beispiel:
// Author: ?
// Quelle:
// Letzte Überarbeitung:
///////////////////////////////////////////////////////////////////////////////////////

function ReloadTicker () {
 TickerReloaded = true;
 window.tickerframe.location.reload(true)
 }