					function CheckForm()
					{
						var form = null;
						var meldung = document.getElementById("Alert");
						var fenster = document.getElementById('ErrorPop');


						this.checkForm = function(id) 
						{	if(form == null)
							{	form = document.getElementById(id);
							}
							return checkInput()	;				
						}
						
						function checkInput() 
						{	
							for(i=0; i < form.length; i++)
							{	if(form[i].getAttribute('email') == "true")
								{	if (istEmail(form[i].value) == false)
									{	var error1 = 'Bitte geben Sie die Email richtig ein.';
										if(form[i].getAttribute('errortext'))
										{	error1 = form[i].getAttribute('errortext');
										}
										meldung.innerHTML=error1;
										fenster.style.display = 'block';
										return false;
									}
								}
								else
								{	if(form[i].getAttribute('check') == "true")
									{	if (istAusgefuellt(form[i].value) == false)
										{	var error1 = 'Ein Feld ist nicht richtig ausgefüllt.';
											if(form[i].getAttribute('errortext'))
											{	error1 = form[i].getAttribute('errortext');
											}
											meldung.innerHTML=error1;
											fenster.style.display = 'block';
											return false;
										}	
									}
								}
							}
							document.getElementById("set").value = time;


							return true;					
						}
						
						function istEmail(value)
						{	if (value.indexOf("@") != "-1" &&
								value.indexOf(".") != "-1")
							{	return true;
							}
							else
							{	return false;
							}
						}

						function istAusgefuellt(value)
						{	if (value == "" || value == null)
							{	return false;
							}
							else
							{	return true;
							}
						}					
					}
