<?php
include('inhalt.php');
$strLang = "de";
$strFrom = $_POST['email'];
$strAdress_01 = $_POST['Vorname'];
$strAdress_02 = $_POST['Nachname'];
$strAdress_03 = $_POST['Postleitzahl'];
$strAdress_04 = $_POST['Ort'];
$strAdress_05 = $_POST['Strasse'];
$strAdress_06 = $_POST['Land'];
$strDatum_01 = $_POST['Anreise'];
$strDatum_02 = $_POST['Abreise'];
$strDatum_03 = $_POST['Anreise_ersatz'];
$strDatum_04 = $_POST['Abreise_ersatz'];
$strAnfrage_01 = $_POST['Betrifft'];
$strAnfrage_02 = $_POST['Ueber'];
$strMailtext_100 = ${$strLang."_texts_36"}."\n".$strAnfrage_01."\n".$strAnfrage_02."\n".${$strLang."_texts_37"}."\n".$strAdress_01." ".$strAdress_02."\n".$strAdress_03." ".$strAdress_04."\n".$strAdress_05."\n".$strAdress_06."\n\n".${$strLang."_texts_38"}."\n".$strDatum_01." ".$strDatum_02."\n".$strDatum_03." ".$strDatum_04."\n";
$strReturnhtml = $strReturnPHP;
if($_POST)
{
$strMailtext = $strLang."\n\n";
while(list($strName,$value) = each($_POST))
{
if(is_array($value))
{
foreach($value as $value_array)
{
$strMailtext .= $strName.$strDelimiter.$value_array."\n\n";
}
}
else
{
$strMailtext .= $strName.$strDelimiter.$value."\n\n";
}
}
if(get_magic_quotes_gpc())
{
$strMailtext = stripslashes($strMailtext);
}
mail($strEmpfaenger, $strSubject, $strMailtext, "From: ".$strFrom) 
#mail($strFrom, "Ihre Anfrage", "test \n".$strMailtext, "From: ".$strEmpfaenger)
#or die("Die Mail konnte nicht versendet werden.");
or die(include('none.php'));
# include('none.php');
header("Location: $strReturnhtml");
exit;
}
include('../extreme/kopf_mail.php');
?>


<script type="text/javascript" src="<?php print ${$strLang."_strJs"}?>"></script>
<script type="text/javascript">
function checkForm()
{
//====== Prueft Feld NAME ======
if(document.mailer.Nachname.value=="")
{
alert (javBox50);
document.mailer.Nachname.focus();
return false;
}
if(document.mailer.Vorname.value=="")
{
alert (javBox51);
document.mailer.Vorname.focus();
return false;
}
if(document.mailer.Postleitzahl.value=="")
{
alert (javBox52);
document.mailer.Postleitzahl.focus();
return false;
}
if(document.mailer.Ort.value=="")
{
alert (javBox53);
document.mailer.Ort.focus();
return false;
}
if(document.mailer.Strasse.value=="")
{
alert (javBox54);
document.mailer.Strasse.focus();
return false;
}
//====== Prueft Feld EMAIL ======
if (document.mailer.email.value=="")
{alert (javBox55);
document.mailer.email.focus();
return false
}
if(document.mailer.email.value.indexOf('@')==-1 ||document.mailer.email.value.indexOf('.')==-1)
{
alert (javBox56);
document.mailer.email.focus();
return false
}

}
//-->
</script>
<form name="mailer" action="<?php print $_SERVER['PHP_SELF']; ?>" method="post">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center">
<p><?php print ${$strLang."_texts_15"}?></p>
</td></tr><tr><td align="center">
<table border="0" width="95%">
<tr><td align="right"><?php print ${$strLang."_texts_10"}?>
<br /><?php print ${$strLang."_texts_11"} ?>
</td><td colspan="2">
<input class="in_2" type="radio"  name="Betrifft" checked="checked" value="<?php print ${$strLang."_texts_10"} ?>" />
<br /><input type="radio" class="in_2" name="Betrifft" value="<?php print ${$strLang."_texts_11"} ?>" />
&nbsp;<?php print ${$strLang."_texts_14"} ?>
</td>
</tr>
<!-- <tr><td align="right">
&nbsp;
</td>
<td colspan="2">
<input type="radio" class="in_2"  name="FEWO" checked="checked" value="<?php print ${$strLang."_texts_10_f"} ?>" />&nbsp;<?php print ${$strLang."_texts_10_fw"} ?><br />
<input type="radio" class="in_2"  name="FEWO" value="<?php print ${$strLang."_texts_11_f"} ?>" />&nbsp;<?php print ${$strLang."_texts_11_fw"} ?><br />
<input type="radio" class="in_2"  name="FEWO" value="<?php print ${$strLang."_texts_12_f"} ?>" />&nbsp;<?php print ${$strLang."_texts_12_fw"} ?><br />
</td>
</tr> -->
<tr>
<td>
&nbsp;
</td>
<td>
<?php print ${$strLang."_texts_12"} ?>
</td>
<td width="200">
<?php print ${$strLang."_texts_13"} ?>
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_16"} ?>
</td>
<td>
<input class="in_3" type="text" name="Anreise" id="f_date_a" />
<img src="css/img.gif" id="f_trigger_a" style="cursor: pointer; border: 1px solid red;" title="Datum wählen." onmouseover="this.style.background='red';" onmouseout="this.style.background=''" alt="" />
</td>
<td><input class="in_3" type="text" name="Abreise" id="f_date_b" />
<img src="css/img.gif" id="f_trigger_b" style="cursor: pointer; border: 1px solid red;" title="Datum wählen." onmouseover="this.style.background='red';" onmouseout="this.style.background=''" alt="" />
</td>
</tr>
<tr>
<td align="right"><?php print ${$strLang."_texts_17"} ?>
</td>
<td>
<input class="in_3" type="text" name="Anreise_ersatz" id="f_date_c" />
<img src="css/img.gif" id="f_trigger_c" style="cursor: pointer; border: 1px solid red;" title="Datum wählen." onmouseover="this.style.background='red';" onmouseout="this.style.background=''" alt="" />
</td>
<td>
<input class="in_3" type="text" name="Abreise_ersatz" id="f_date_d" />
<img src="css/img.gif" id="f_trigger_d" style="cursor: pointer; border: 1px solid red;" title="Datum wählen." onmouseover="this.style.background='red';" onmouseout="this.style.background=''" alt="" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_18"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="<?php print ${$strLang."_texts_18"} ?>" />
</td>
</tr>

<tr>
<td align="right">
<?php print ${$strLang."_texts_25"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Nachname" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_26"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Vorname" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_27"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Land" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_28"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Postleitzahl" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_29"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Ort" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_30"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="Strasse" />
</td>
</tr>
<tr>
<td align="right">
<?php print ${$strLang."_texts_31"} ?>
</td>
<td colspan="2">
<input class="in_5" type="text" name="email" />
</td> </tr> <tr> <td> &nbsp; </td> <td colspan="2"> &nbsp; </td> </tr> <tr>
<td align="right" valign="top">
<?php print ${$strLang."_texts_32"} ?>
</td>
<td colspan="2">
<textarea name="weitere Wünsche" rows="10" cols="24" ></textarea>
</td> </tr> <tr> <td colspan="3"> &nbsp; </td> </tr> <tr><td align="right">
<?php print ${$strLang."_texts_35"} ?>
</td>
<td colspan="2">
<input class="in_4" type="submit" value="<?php print ${$strLang."_texts_33"} ?>" onclick="return checkForm()" />
<img src="css/distanz.gif" border="0" height="8" width="6" alt="" />
<input class="in_4" type="reset" value="<?php print ${$strLang."_texts_34"} ?>" />
</td>
</tr>

</table>
</td>
</tr>
</table>
</form>
<br />
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_a", // id of the input field
ifFormat : "%e. %B %Y", // format of the input field
button : "f_trigger_a", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_b", // id of the input field
ifFormat : "%e. %B %Y", // format of the input field
button : "f_trigger_b", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_c", // id of the input field
ifFormat : "%e. %B %Y", // format of the input field
button : "f_trigger_c", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_d", // id of the input field
ifFormat : "%e. %B %Y", // format of the input field
button : "f_trigger_d", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>

</td></tr></table></center>

<?php
include('../extreme/fuss_mail.php');
?>