<!--
// Funktion für neuen Zimmereintrag
function check_select(theForm)
{

if (theForm.sterne.value == "")
{
alert("In 'Sternanzahl' muss eine Zahl von 0 bis 5 stehen!");
theForm.sterne.focus();
return (false);
}
	
  if (  theForm.sterne.value.indexOf('0')== -1 &&
        theForm.sterne.value.indexOf('1')== -1 &&
	    theForm.sterne.value.indexOf('2')== -1 &&
		theForm.sterne.value.indexOf('3')== -1 &&
		theForm.sterne.value.indexOf('4')== -1 &&
		theForm.sterne.value.indexOf('5')== -1)
		
	{
	alert("Bitte nur Zahlen von 0-5 im Feld 'Sternanzahl' eingeben!");
	theForm.sterne.focus();
	return (false);
	}


if ((theForm.ezanzahl.value == "") || (theForm.ezanzahl.value == "") || (theForm.ezanzahl.value == ""))
{
alert("In den Feldern 'Anzahl der Zimmer' muss eine Zahl von 0 bis 9 stehen!");
theForm.ezanzahl.focus();
return (false);
}
	
  if (  theForm.ezanzahl.value.indexOf('0')== -1 &&
        theForm.ezanzahl.value.indexOf('1')== -1 &&
	    theForm.ezanzahl.value.indexOf('2')== -1 &&
		theForm.ezanzahl.value.indexOf('3')== -1 &&
		theForm.ezanzahl.value.indexOf('4')== -1 &&
		theForm.ezanzahl.value.indexOf('5')== -1 &&
		theForm.ezanzahl.value.indexOf('6')== -1 &&
		theForm.ezanzahl.value.indexOf('7')== -1 &&
		theForm.ezanzahl.value.indexOf('8')== -1 &&
		theForm.ezanzahl.value.indexOf('9')== -1 )
	{
	alert("Bitte nur Zahlen in den Feldern 'Anzahl der Zimmer' eingeben!");
	theForm.ezanzahl.focus();
	return (false);
	}
}

/////////////////////////////////////////////

function check_send(theForm)
{

if ((theForm.ezanzahl.value == "") || (theForm.ezanzahl.value == "") || (theForm.ezanzahl.value == ""))
{
alert("In den Feldern 'Anzahl der Zimmer' muss eine Zahl von 0 bis 9 stehen!");
theForm.ezanzahl.focus();
return (false);
}
	
  if (  theForm.ezanzahl.value.indexOf('0')== -1 &&
        theForm.ezanzahl.value.indexOf('1')== -1 &&
	    theForm.ezanzahl.value.indexOf('2')== -1 &&
		theForm.ezanzahl.value.indexOf('3')== -1 &&
		theForm.ezanzahl.value.indexOf('4')== -1 &&
		theForm.ezanzahl.value.indexOf('5')== -1 &&
		theForm.ezanzahl.value.indexOf('6')== -1 &&
		theForm.ezanzahl.value.indexOf('7')== -1 &&
		theForm.ezanzahl.value.indexOf('8')== -1 &&
		theForm.ezanzahl.value.indexOf('9')== -1 )
	{
	alert("Bitte nur Zahlen in den Feldern 'Anzahl der Zimmer' eingeben!");
	theForm.ezanzahl.focus();
	return (false);
	}
	
if (theForm.zeitraum.value == "")
{
alert("Bitte geben Sie einen Zeitraum an!");
theForm.zeitraum.focus();
return (false);
}

if (theForm.username.value == "")
{
alert("Bitte geben Sie Ihren Namen an!");
theForm.username.focus();
return (false);
}

if (theForm.useremail.value == "")
{
alert("Bitte geben Sie Ihre E-Mail-Adresse an!");
theForm.useremail.focus();
return (false);
}

if (theForm.useremail.value.indexOf('@')== -1)
{
alert("Das ist keine E-Mail-Adresse! Beispiel: name@provider.at");
theForm.useremail.focus();
return (false);
}
if (theForm.useremail.value.indexOf('.')== -1)
{
alert("Das ist keine e-Mail-Adresse! Beispiel: name@provider.at");
theForm.useremail.focus();
return (false);
}

}

//////////////////////////////////////////////////////
function switch_stars(theForm)
{
	if(theForm.kategorie.options[theForm.kategorie.selectedIndex].value != "Hotel")
	{
		theForm.sterne.value = 0;
		theForm.sterne.disabled = true;
	}
	else
		theForm.sterne.disabled = false;
}



//-->