function formcheckAppForm() {
	
	if (document.appForm.elements["Surname"].value == ''){
           alert('\nPlease enter your surname!');
           document.appForm.elements["Surname"].focus();
           return false;
           }
	
	if (document.appForm.elements["FirstName"].value == ''){
           alert('\nPlease enter your first name!');
           document.appForm.elements["FirstName"].focus();
           return false;
           }
		   
    switch (PruefeDatum(document.getElementById('DateOfBirth').value))
			{
		 case -1:
			//Richtig
			break;
		 case 1:
			//Format falsch
			alert("Please enter your date of birth as follows: dd.mm.yyyy!");
			document.appForm.elements["DateOfBirth"].focus();
			return false;
			break;
		 case 2:
			//Datum in de Zukunft
			alert("You entered a wrong date of birth!");
			document.appForm.elements["DateOfBirth"].focus();
			return false;
			break;
		    }  
	
	if (document.appForm.elements["Age"].value == ''){
           alert('\nPlease enter your age!');
           document.appForm.elements["Age"].focus();
           return false;
           }
	
	if (document.appForm.elements["Nationality"].value == ''){
           alert('\nPlease enter your nationality!');
           document.appForm.elements["Nationality"].focus();
           return false;
           }
	
	if (document.appForm.elements["Street"].value == ''){
           alert('\nPlease enter your street!');
           document.appForm.elements["Street"].focus();
           return false;
           }
	
	if (document.appForm.elements["PostCode"].value == ''){
           alert('\nPlease enter your post code!');
           document.appForm.elements["PostCode"].focus();
           return false;
           }
	
	if (document.appForm.elements["Town"].value == ''){
           alert('\nPlease enter your town!');
           document.appForm.elements["Town"].focus();
           return false;
           }
	
	if (document.appForm.elements["Country"].value == ''){
           alert('\nPlease enter your country!');
           document.appForm.elements["Country"].focus();
           return false;
           }
	
	if (document.appForm.elements["Phone1"].value == ''){
           alert('\nPlease enter your phone number!');
           document.appForm.elements["Phone1"].focus();
           return false;
           }

	 if (!emailtest(document.appForm.elements["Email"].value)) {
	   alert('\nPlease enter your e-mail address! ');
	   document.appForm.elements["Email"].select();
	   document.appForm.elements["Email"].focus();
	   return false;
	   }
	   
	   if (document.appForm.elements["PicFile"].value == ''){
           alert('\nPlease upload only *.png, *.gif, or *.jpg files with max. 500 KB!');
           document.appForm.elements["PicFile"].focus();
           return false;
           }
	
	if (document.appForm.elements["available_start"].value == ''){
           alert('\nBetween which dates would you be available to work?');
           document.appForm.elements["available_start"].focus();
           return false;
           }
	
	if (document.appForm.elements["available_end"].value == ''){
           alert('\nBetween which dates would you be available to work?');
           document.appForm.elements["available_end"].focus();
           return false;
           }
		   
	Obj = document.appForm.elements["English"];
		  if (Obj[Obj.selectedIndex].value == '-') {
		  alert('\nPlease enter your English language skills!');
		  document.appForm.elements["English"].focus();
		  return false;
		  }
		   
	Obj = document.appForm.elements["Spanish"];
		  if (Obj[Obj.selectedIndex].value == '-') {
		  alert('\nPlease enter your Spanish language skills!');
		  document.appForm.elements["Spanish"].focus();
		  return false;
		  }
		   
	Obj = document.appForm.elements["French"];
		  if (Obj[Obj.selectedIndex].value == '-') {
		  alert('\nPlease enter your French language skills!');
		  document.appForm.elements["French"].focus();
		  return false;
		  }
		   
	Obj = document.appForm.elements["German"];
		  if (Obj[Obj.selectedIndex].value == '-') {
		  alert('\nPlease enter your German language skills!');
		  document.appForm.elements["German"].focus();
		  return false;
		  }
		  
	if (document.getElementById('Yes').checked == false && document.getElementById('No').checked == false) {
           alert('\nHave you worked for us before?');
           document.getElementById('Yes').focus();
           return false;
           }
		   
	 if (document.getElementById('Yes').checked == true) {
		 if (document.appForm.elements["worked_for_us_before_where"].value == '') {
           alert('\nWhere did you work for us?');
           document.appForm.elements["worked_for_us_before_where"].focus();
           return false;
           }
	 	  }
		   
	 if (document.getElementById('Yes').checked == true) {
		 if (document.appForm.elements["worked_for_us_before_when"].value == '') {
           alert('\nWhen did you work for us?');
           document.appForm.elements["worked_for_us_before_when"].focus();
           return false;
           }
	 	  }
	
	if (document.appForm.elements["know_about_IP"].value == ''){
           alert('\nHow did you get to know about IP?');
           document.appForm.elements["know_about_IP"].focus();
           return false;
           }
	
	if (document.appForm.elements["current_occupation"].value == ''){
           alert('\nWhat is your current occupation?');
           document.appForm.elements["current_occupation"].focus();
           return false;
           }

	 if (!document.appForm.elements["CM"].checked && !document.appForm.elements["CO"].checked && !document.appForm.elements["CA"].checked && !document.appForm.elements["AT"].checked && !document.appForm.elements["SU"].checked && !document.appForm.elements["Internship"].checked) {           
		  alert('\nWhich position are you interested in. Please cross at least one position!'); 
		  document.appForm.elements["CM"].focus();
		  return false;           
		}
		  
	if (document.getElementById('quali1').checked == false && document.getElementById('quali2').checked == false) {
           alert('\nDo you have a First Aid Certificate?');
           document.getElementById('quali1').focus();
           return false;
           }
		   
	 if (document.getElementById('quali1').checked == true) {
		 if (document.appForm.elements["First_Aid_Certificate_Date"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["First_Aid_Certificate_Date"].focus();
           return false;
           }
		 if (document.appForm.elements["First_Aid_CertificateFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["First_Aid_Certificate_Date"].focus();
           return false;
           }  
	 	  }
		
		  
	if (document.getElementById('quali3').checked == false && document.getElementById('quali4').checked == false) {
           alert('\nDo you have a Driving Licence?');
           document.getElementById('quali3').focus();
           return false;
           }
		   
	 if (document.getElementById('quali3').checked == true) {
		 if (document.appForm.elements["Driving_Licence_Date"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["Driving_Licence_Date"].focus();
           return false;
           }
		 if (document.appForm.elements["Driving_LicenceFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["Driving_LicenceFile"].focus();
           return false;
           }
	 	  }
		  
	if (document.getElementById('quali5').checked == false && document.getElementById('quali6').checked == false) {
           alert('\nDo you have a Public Service Vehicle License?');
           document.getElementById('quali5').focus();
           return false;
           }
		   
	 if (document.getElementById('quali5').checked == true) {
		 if (document.appForm.elements["Public_Service_Vehicle_License"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["Public_Service_Vehicle_License"].focus();
           return false;
           }
		 if (document.appForm.elements["Public_Service_Vehicle_LicenseFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["Public_Service_Vehicle_LicenseFile"].focus();
           return false;
           }
	 	  }
		  
	if (document.getElementById('quali7').checked == false && document.getElementById('quali8').checked == false) {
           alert('\nDo you have a Lifeguard Qualification?');
           document.getElementById('quali7').focus();
           return false;
           }
		   
	 if (document.getElementById('quali7').checked == true) {
		 if (document.appForm.elements["Lifeguard_Qualification"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["Lifeguard_Qualification"].focus();
           return false;
           }
		 if (document.appForm.elements["Lifeguard_QualificationFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["Lifeguard_QualificationFile"].focus();
           return false;
           }
	 	  }
		  
	if (document.getElementById('quali9').checked == false && document.getElementById('quali10').checked == false) {
           alert('\nDo you have a Teaching Qualification?');
           document.getElementById('quali9').focus();
           return false;
           }
		   
	 if (document.getElementById('quali9').checked == true) {
		 if (document.appForm.elements["Teaching_Qualification"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["Teaching_Qualification"].focus();
           return false;
           }
		 if (document.appForm.elements["Teaching_QualificationFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["Teaching_QualificationFile"].focus();
           return false;
           }
	 	  }
		  
	if (document.getElementById('quali11').checked == false && document.getElementById('quali12').checked == false) {
           alert('\nDo you have another qualification?');
           document.getElementById('quali11').focus();
           return false;
           }
		   
	 if (document.getElementById('quali11').checked == true) {
		 if (document.appForm.elements["Other_Qualification"].value == '') {
           alert('\nPlease answer that question!');
           document.appForm.elements["Other_Qualification"].focus();
           return false;
           }
		 if (document.appForm.elements["Other_QualificationFile"].value == '') {
           alert('\nPlease upload *.pdf or *.jpg files with max. 500 KB!');
           document.appForm.elements["Other_QualificationFile"].focus();
           return false;
           }
	 	  }
		  
	if (document.getElementById('quali13').checked == false && document.getElementById('quali14').checked == false) {
           alert('\nHave you ever travelled by plane?');
           document.getElementById('quali13').focus();
           return false;
           }
	 
	
	if (document.appForm.elements["Education1_Date"].value == ''){
           alert('\nPlease answer that question!');
           document.appForm.elements["Education1_Date"].focus();
           return false;
           }
	
	if (document.appForm.elements["Education1_Text"].value == ''){
           alert('\nPlease answer that question!');
           document.appForm.elements["Education1_Text"].focus();
           return false;
           }
	
	if (document.appForm.elements["Education1_Grade"].value == ''){
           alert('\nPlease answer that question!');
           document.appForm.elements["Education1_Grade"].focus();
           return false;
           }
		  
	if (document.getElementById('skills_sport1').checked == false && document.getElementById('skills_sport2').checked == false && document.getElementById('skills_sport3').checked == false && document.getElementById('skills_sport4').checked == false) {
           alert('\nHow are you in sports?');
           document.getElementById('skills_sport1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_dancing1').checked == false && document.getElementById('skills_dancing2').checked == false && document.getElementById('skills_dancing3').checked == false && document.getElementById('skills_dancing4').checked == false) {
           alert('\nHow are you in dancing?');
           document.getElementById('skills_dancing1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_animation1').checked == false && document.getElementById('skills_animation2').checked == false && document.getElementById('skills_animation3').checked == false && document.getElementById('skills_animation4').checked == false) {
           alert('\nHow are you in animation?');
           document.getElementById('skills_animation1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_DJ1').checked == false && document.getElementById('skills_DJ2').checked == false && document.getElementById('skills_DJ3').checked == false && document.getElementById('skills_DJ4').checked == false) {
           alert('\nAre you a DJ');
           document.getElementById('skills_DJ1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_Theatre1').checked == false && document.getElementById('skills_Theatre2').checked == false && document.getElementById('skills_Theatre3').checked == false && document.getElementById('skills_Theatre4').checked == false) {
           alert('\nHow are you in playing theatre?');
           document.getElementById('skills_Theatre1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_Arts1').checked == false && document.getElementById('skills_Arts2').checked == false && document.getElementById('skills_Arts3').checked == false && document.getElementById('skills_Arts4').checked == false) {
           alert('\nHow are you in arts?');
           document.getElementById('skills_Arts1').focus();
           return false;
           }
		  
	if (document.getElementById('skills_Computer1').checked == false && document.getElementById('skills_Computer2').checked == false && document.getElementById('skills_Computer3').checked == false && document.getElementById('skills_Computer4').checked == false) {
           alert('\nHow are your computer skills?');
           document.getElementById('skills_Computer1').focus();
           return false;
           }
		  
	if (document.getElementById('S').checked == false && document.getElementById('M').checked == false && document.getElementById('L').checked == false && document.getElementById('XL').checked == false) {
           alert('\nWhat is you clothes size?');
           document.getElementById('S').focus();
           return false;
           }
	
	if (document.appForm.elements["Why_to_work_in_an_IPcentre"].value == ''){
           alert('\nWhy would you like to work in an IP centre?');
           document.appForm.elements["Why_to_work_in_an_IPcentre"].focus();
           return false;
           }
	
	if (document.appForm.elements["Why_you_are_the_right_person"].value == ''){
           alert('\nWhy do you think you are the right person for this job?');
           document.appForm.elements["Why_you_are_the_right_person"].focus();
           return false;
           }
	
	if (document.appForm.elements["your_strengths"].value == ''){
           alert('\nWhat are your strengths?');
           document.appForm.elements["your_strengths"].focus();
           return false;
           }
	
}



function emailtest(eingabe) {
    var reg1 = /(@.@)|(\.\.)|(@\.)|(\.@)|(^\.)|(www+)([a-zA-Z0-9\\-\\.\\_])|(\u0020)/; // nicht gueltig
    var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
   
    if (!reg1.test(eingabe) && reg2.test(eingabe)) {
        return true;
    } else {
       return false;
    }
}


