<?PHP
	/* **************************************************************
	
	PROJEKT sprachtherapie RELAUNCH 2005
	DKN.CMS
	PHP 4.3.8
	PHPMyAdmin 2.5.5-pl1
	MySQL 4.0.20
	
	© 2000-2005 DKN DÜSSELDORF  www.dkn.de
	
	FILE:		MAIN.PHP4
	MODIFICATION:	01.05.2005 12:00
	DESCRIPTION:	MAIN PAGE OF THE WEB SITE
	
	*************************************************************** */

	/* **************************************************************	
	Aufruf um globals_register_off zu umgehen
	*************************************************************** */
		
	$array_reg = array_merge($_GET,$_POST,$_SESSION,$_COOKIE,$_SERVER,$_ENV);
	foreach ($array_reg as $key => $value)
		{     
		if(is_array($value))
			{foreach ($value as $key_2 => $value_2)$$key_2 = $value_2;}     
	    	else{$$key = $value;}             
	 	}
	 //ende

	/* **************************************************************	
	Einbinden der Projektvariablen
	*************************************************************** */
	
	$conflib ="global/includes/project.config.site.php4"; 
	require($conflib);

	/* **************************************************************	
	Einbinden des Headers
	*************************************************************** */
	
	$including = "header.inc.php4";
	require($inc.$including);
	?>
	<script language="JavaScript">
	// <!-- HIDDEN FROM OLD BROWSERS
		
		function checkform() 
		{

			var form = document.sendform;
			var formdata = new Array(3);

			formdata[0] = form.name;
			formdata[1] = form.vorname;
			formdata[2] = form.email;
			expression = /.+@.+\.{1,}[a-zA-Z0-9]{2,4}/;

			var checked = false;

			for(var i=0;i<2;i++) {
				if(form.geschlecht[i].checked) checked = true;
			}

			for(var i=0;i<3;i++) {
				if(formdata[i].value.length < 2) checked = false;
			}

			if(!checked) {
				alert('Ihre Eingaben reichen für eine Anmeldung nicht aus!\nBitte füllen Sie alle mit * gekennzeichneten Felder aus.');
				checked = false;
			}
			         		 
			if(checked) {				
				
		 		if (!expression.exec(formdata[2].value) != false) {
		      		alert("Bitte geben sie eine gueltige\nE-Mail Adresse an.");
	                 	checked = false;
         		} else {
				form.action = "<? echo $PHP_SELF; ?>?nextstep=1";
				form.method = "post";
				form.submit();}
			}
		}
	// -->
	</script>
	
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="15">
	
	<tr>
		<td width="90%" align="left" valign="top">
				<form name="sendform" action="<? echo $url; ?>mailer/index.php4" method="post">
					<input type="hidden" name="recipient" value="claudia@netthoefel.de">
					<input type="hidden" name="subject" value="Heidelberger Elterntraining - Teilnahme">
					<input type="hidden" name="todo" value="send">
					<input type="hidden" name="confirmation" value="<? echo $url; ?>confirmation.php4"> <!-- Link der Bestätigungsseite -->
			
				<span class="headline">Heidelberger Elterntraining - Teilnahme<br><br></span>
				<span class="medium">Ein neuer Kurs beginnt jeweils, wenn ausreichend Anmeldungen vorliegen. Die Kurse finden in der Regel abends statt, wenn die Teilnehmer es wünschen, ist aber auch eine andere Tageszeit möglich.<br></span>
				<br><br><table border="0" cellpadding="0" cellspacing="0" width="90%">
					     <tr>
						     <td width="30%" class="medium">Vorname:</td>
						     <td width="70%" align="left"><input class="form2" type="text" name="Vorname" size="25" style="width: 200px;"></td>
							</tr>
						<tr>
						     <td width="100%" height="8"></td>
						    </tr>
						<tr>
						     <td width="30%" class="medium">Name:</td>
						     <td width="70%" align="left"><input class="form2" type="text" name="Name" size="25" style="width: 200px;"></td>
							</tr>
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<!-- <tr>
						     <td width="30%" class="medium">Firma:</td>
						     <td width="70%" align="right"><input class="form2" type="text" name="Firma" size="25" style="width: 200px;"></td>
						     </tr> 
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>-->
						<tr>
						     <td width="30%" class="medium">Strasse:</td>
						     <td width="70%" align="left"><input class="form2" type="text" name="Strasse" size="25" style="width: 200px;"></td>
						     </tr>
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="left"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<tr>
						     <td width="30%" class="medium">Plz/Ort:</td>
						     <td width="70%" align="left"><input class="form2" type="text" name="Stadt" size="25" style="width: 200px;"></td>
						</tr>
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<tr>
						     <td width="30%" class="medium">Telefon:</td>
						     <td width="70%" align="left"><input class="form2" type="text" name="Telefon" size="25" style="width: 200px;"></td>
						</tr>
						
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<tr>
						      <td width="30%" class="medium">eMail:</td>
						      <td width="70%" align="left"><input class="form2" type="text" name="email" size="25" style="width: 200px;"></td>
						</tr>
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<tr>
						       <td width="30%" class="medium" valign="top">Anmerkung:</td>
						       <td width="70%" align="left"><textarea class="form2" name="Kommentar" size="25" style="width: 200px";><? echo $objno; ?></textarea></td>
						</tr>
						<tr>
						     <td width="100%" height="8"></td>
						     <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						<tr>
						       
						       <td width="100%" align="left" colspan="2">
				
								<table border="0" width="100%" cellpadding="0" cellspacing="0" bordercolor="#C3C3D5">
								     <tr>
									     <td class="medium"><input type="checkbox" name="Interesse am Heidelberger Elterntraining" value="Ja">&nbsp;Ich interessiere mich für das Heidelberger Elterntraining</td>
									</tr>
									
								</table>
				
						       </td>
					 </tr>
						<tr>
						       <td width="90%" height="10">&nbsp;</td>
						       <td width="10%" align="right"><img src="<? echo $img; ?>blank.gif" width="200" height="1" border="0"></td>
						</tr>
						</tr>
						       <td class="medium">&nbsp;</td>
					            <td align="right">
								<table border="0" cellpadding="0" cellspacing="0">
								     <tr>
									     <td>
											<a href="javascript:document.sendform.submit()"><img src="<? echo $img; ?>button_send.gif" border="0" width="73" height="15"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<a href="javascript:document.sendform.reset()" alt="" border="0"><img src="<? echo $img; ?>button_loeschen.gif" width="73" height="15" border="0" ></a></td>
									</tr>
								</table></td>
					   </tr>
					</table></form></td>
		
	</tr>
	<tr>

		<td><a class="textlink" href="javascript:history.back()"><img src="global/images/arrow_zurueck.gif" border="0" width="14" height="11">zur&uuml;ck</a><a class="textlink" href="#top">&nbsp;<img src="<? echo $img; ?>arrow_oben.gif" border="0" width="14" height="11">top</a>&nbsp;&nbsp;<a class="textlink" href="<? echo $url; ?>index.php4"><img src="<? echo $img; ?>arrow_home.gif" border="0" width="14" height="12">&nbsp;Home</a><br></td>

	</tr>
	<tr>
		<td width="50%" colspan="3" height="10"></td>
	</tr>
</table>
<?PHP
         // FOOTER
        $including = "footer.inc.php4";
        require($inc.$including);
?>	