function chkFormular()
		{
			if(document.Formular.EMail.value == "")
				{
				alert("Bitte geben Sie Ihre E-Mail-Adresse an!");
				document.Formular.EMail.focus();
				return false;
				}
		if(document.Formular.EMail.value.indexOf('@') == -1)
				{
				alert("Sie haben keine gueltige E-Mail-Adresse angegeben!");
				document.Formular.EMail.focus();
				return false;
				}
		if(document.Formular.EMail.value.indexOf('.') == -1)
				{
				alert("Sie haben keine gueltige E-Mail-Adresse angegeben!");
				document.Formular.EMail.focus();
				return false;
				}
		}
        
        function chkReservationsFormular()
		{
        	if(document.Formular.anzahl.value == "keinewahl")
				{
				alert("Bitte waehlen Sie die gewuenschte Anzahl Plaetze!");
				document.Formular.anzahl.focus();
				return false;
				}
            if(document.Formular.einstieg.value == "keinewahl")
				{
				alert("Bitte waehlen Sie Ihren gewuenschten Einstiegsort!");
				document.Formular.einstieg.focus();
				return false;
				}
            if(document.Formular.Name.value == "")
				{
				alert("Bitte geben Sie Ihren Namen an!");
				document.Formular.Name.focus();
				return false;
				}
            if((document.Formular.Gebdatum.value == "") || (document.Formular.Gebdatum.value.length<10) || (document.Formular.Gebdatum.value.split(".")[0]*1>31) || (document.Formular.Gebdatum.value.split(".")[1]*1>12) || (document.Formular.Gebdatum.value.split(".")[2]*1<1900))
				{
				alert("Bitte geben Sie Ihr Geburtsdatum in der korrekten Form an!");
				document.Formular.Gebdatum.focus();
				return false;
				}
			if(document.Formular.EMail.value == "")
				{
				alert("Bitte geben Sie Ihre E-Mail-Adresse an!");
				document.Formular.EMail.focus();
				return false;
				}
            if(document.Formular.EMail.value.indexOf('@') == -1)
				{
				alert("Sie haben keine gueltige E-Mail-Adresse angegeben!");
				document.Formular.EMail.focus();
				return false;
				}
            if(document.Formular.EMail.value.indexOf('.') == -1)
				{
				alert("Sie haben keine gueltige E-Mail-Adresse angegeben!");
				document.Formular.EMail.focus();
				return false;
				}
            if(document.Formular.EMail.value.length < 5)
				{
				alert("Sie haben keine gueltige E-Mail-Adresse angegeben!");
				document.Formular.EMail.focus();
				return false;
				}
		}


function open_window(URL)
		{
window.open(URL,"Popup","scrollbars=no,width=320,height=400");
		}

function open_resultwindow(URL)
		{
window.open(URL,"Popup","width=620,height=550");
		}

function open_picturewindow(URL)
		{
window.open(URL,"Popup","scrollbars=no,width=660,height=500");
		}


function goToSelectedItem(){
if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
                }
    }

/**
 * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmLink(theLink, theEvent)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' \n -' + theEvent);
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} // end of the 'confirmLink()' function


/**
 * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmDiscLink(theLink, theEvent)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmDiscMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmDiscMsg + ' \n -' + theEvent);
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} // end of the 'confirmLink()' function


/**
 * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmInfoLink(theLink, theAuthor)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmInfoMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmInfoMsg + ' \n -Info von ' + theAuthor);
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

/**
 * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmNewAnlassLink(theLink)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmAnlassNewMsg);
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} // end of the 'confirmLink()' function




function setsmiley(Zeichen) {
	opener.document.formular.message.value += " " + Zeichen+" ";
	opener.formular.message.focus();
}
