function CheckLogin() {

			if(document.lform.us.value=="")
			{
				window.alert('Bitte Ihren Benutzername eingeben!');
				document.lform.us.focus();
				return false;
			}

			if(document.lform.ps.value=="")
			{
				window.alert('Bitte Ihre Passwort eingeben!');
				document.lform.ps.focus();
				return false;
			}

		}

		function CheckForgot() {

			if(document.ForgotForm.u2.value=="")
			{
				window.alert('Bitte Ihre Passwort eingeben!');
				document.ForgotForm.u2.focus();
				return false;
			}
		}

		function CheckSearch() {

			if(document.SearchForm.what.value=="")
			{
				window.alert('Bitte Ihren Suchbegriff eingeben!');
				document.SearchForm.what.focus();
				return false;
			}
		}

		function CheckRegister() {

			if(document.RegForm.NewUsername.value=="")
			{
				window.alert('Bitte Ihren Benutzername eingeben!');
				document.RegForm.NewUsername.focus();
				return false;
			}

			if(document.RegForm.p1.value=="")
			{
				window.alert('Bitte Ihre Passwort eingeben!');
				document.RegForm.p1.focus();
				return false;
			}

			if(document.RegForm.p2.value=="")
			{
				window.alert('Bitte Ihre Passwort nochmal eingeben!');
				document.RegForm.p2.focus();
				return false;
			}

			if(document.RegForm.p1.value != "" && document.RegForm.p2.value != "" && document.RegForm.p1.value != document.RegForm.p2.value)
			{
				window.alert('Eingeben und bestätigen Sie das Passwort erneut!');
				document.RegForm.p1.value="";
				document.RegForm.p2.value="";
				document.RegForm.p1.focus();
				return false;
			}

			if(document.RegForm.FirstName.value=="")
			{
				window.alert('Bitte Ihren Vornamen eingeben!');
				document.RegForm.FirstName.focus();
				return false;
			}

			if(document.RegForm.LastName.value=="")
			{
				window.alert('Bitte Ihren Nachnamen eingeben!');
				document.RegForm.LastName.focus();
				return false;
			}

			if(document.RegForm.Phone.value=="")
			{
				window.alert('Bitte Ihre Telefonnummer eingeben!');
				document.RegForm.Phone.focus();
				return false;
			}

			if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.RegForm.email.value))
			{
				return true;
			}
			
			alert("Ungültige E-Mail-Adresse! Bitte erneut eingeben.");
			document.RegForm.email.focus();
			return false;
			

		}

		function CheckProfile() {

			if(document.RegForm.p1.value=="")
			{
				window.alert('Bitte Ihre Passwort eingeben!');
				document.RegForm.p1.focus();
				return false;
			}

			if(document.RegForm.p2.value=="")
			{
				window.alert('Bitte Ihre Passwort nochmal eingeben!');
				document.RegForm.p2.focus();
				return false;
			}

			if(document.RegForm.p1.value != "" && document.RegForm.p2.value != "" && document.RegForm.p1.value != document.RegForm.p2.value)
			{
				window.alert('Eingeben und bestätigen Sie das Passwort erneut!');
				document.RegForm.p1.value="";
				document.RegForm.p2.value="";
				document.RegForm.p1.focus();
				return false;
			}

			if(document.RegForm.FirstName.value=="")
			{
				window.alert('Bitte Ihren Vornamen eingeben!');
				document.RegForm.FirstName.focus();
				return false;
			}

			if(document.RegForm.LastName.value=="")
			{
				window.alert('Bitte Ihren Nachnamen eingeben!');
				document.RegForm.LastName.focus();
				return false;
			}

			if(document.RegForm.phone.value=="")
			{
				window.alert('Bitte Ihre Telefonnummer eingeben!');
				document.RegForm.phone.focus();
				return false;
			}

			if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.RegForm.email.value))
			{
				return true;
			}
			
			alert("Ungültige E-Mail-Adresse! Bitte erneut eingeben.");
			document.RegForm.email.focus();
			return false;

		}

		function CheckOffer() {

			if(document.PostForm.CategoryID.value=="")
			{
				alert('Wählen Sie die Kategorie, in der Ihr Angebot erscheint!');
				document.PostForm.CategoryID.focus();
				return false;
			}

			if(document.PostForm.Description.value=="")
			{
				alert('Beschreiben Sie Ihr Angebot, bitte!');
				document.PostForm.Description.focus();
				return false;
			}

			if(document.PostForm.sp.value=="")
			{
				alert('Wählen Sie Ihre bevorzugte Priorität!');
				document.PostForm.sp.focus();
				return false;
			}

		}

