	        <!--

	        function checkApplicationForm()
	        {

		        //Check to see if each required field is filled in, if not display the error div and increase errorCounter

		        var errorCounter = 0;
                
                //Check to see all fields are filled in
		        if	((document.frmApplication.Surname.value == "") || (document.frmApplication.Forenames.value == "") || (document.frmApplication.AddressLine1.value == "") || (document.frmApplication.TownCity.value == "") || (document.frmApplication.Postcode.value == "") || (document.frmApplication.TelephoneNumber.value == "") || (document.frmApplication.NationalInsuranceNumber.value == "") || (document.frmApplication.DOB.value == "") || (document.frmApplication.Gender.value == "") || (document.frmApplication.EmailAddress.value == "") || (document.frmApplication.RetypeEmailAddress.value == "") || (document.frmApplication.DateLeftSchool.value == "") || (document.frmApplication.SQARegistrationNumber.value == "") || (document.frmApplication.YTorSkillseekersTraining.value == "") || (document.frmApplication.AreYouDisabled.value == "") || (document.frmApplication.AreYouRegisteredDisabled.value == "") || (document.frmApplication.AreYouColourBlind.value == "") || (document.frmApplication.HaveYouAnyHistoryOfIllnessAllergies.value == "") || (document.frmApplication.AreYouDyslexic.value == "") || (document.frmApplication.HowDidYouHearAboutSECTT.value == "") || (document.frmApplication.QuickQuestion.value == ""))
		        {
			        document.getElementById('applicationError').style.display='block';
			        errorCounter = errorCounter + 1;
		        }
		        else
		        {
			        document.getElementById('applicationError').style.display='none';
		        }
		        
	            if(( frmApplication.EqualOpportunities[0].checked == false ) && ( frmApplication.EqualOpportunities[1].checked == false )  && ( frmApplication.EqualOpportunities[2].checked == false )  && ( frmApplication.EqualOpportunities[3].checked == false ))
                {
	                document.getElementById('applicationError').style.display='block';
	                errorCounter = errorCounter + 1;
                }
                else
                {
                    document.getElementById('applicationError').style.display='none';
                }
		        

		        if (document.frmApplication.EmailAddress.value !== "")
		        {
                    //Check the email address is valid
                    $address=frmApplication.EmailAddress.value;
                    apos=$address.indexOf("@")
                    dotpos=$address.lastIndexOf(".")
                    if (apos<1||dotpos-apos<2)
                    {
                        document.getElementById('frmemailError').style.display='block';
                        errorCounter = errorCounter + 1;
                    }
                    else
                    {
                        document.getElementById('frmemailError').style.display='none';
                    }
                }  
				
				
				if (document.frmApplication.RetypeEmailAddress.value !== document.frmApplication.EmailAddress.value)
				{
					document.getElementById('frmretypeemailError').style.display='block';
                    errorCounter = errorCounter + 1;
				}
				else
				{
					document.getElementById('frmretypeemailError').style.display='none';
				}


		        //If the errorcounter is greater than 0 show the main error message
		        if (errorCounter > 0)
		        {
        		
			        //alert(errorCounter);
                    document.getElementById('applicationError').style.display='block';
			        document.location.href='#form-error';
			        alert("The form was not completed correctly.");
			        return (false);
        			
		        }
        		
                else
                {
			        return true;
	            }
        	    
	        }

	        //-->
