function formCheck() {

	applicant.expandit(0);

	if (document.appform.FAFamilyCompany.value == "") {
	alert("The First Name or Company Name cannot be blank, Please enter your First Name");
	document.appform.FAFamilyCompany.focus();return false
	}

	if (document.appform.FAName.value == "") {
	alert("The Given Name cannot be blank, Please enter your Given Name");
	document.appform.FAName.focus();return false
	}

	if (document.appform.FAResAdd1.value == "") {
	alert("The Address cannot be blank, Please enter your Address");
	document.appform.FAResAdd1.focus();return false
	}

	if (document.appform.FAResAdd2.value == "") {
	alert("The Address cannot be blank, Please enter your Address");
	document.appform.FAResAdd2.focus();return false
	}

	if (document.appform.FAResAdd3.value == "") {
	alert("The City cannot be blank, Please enter your City");
	document.appform.FAResAdd3.focus();return false
	}

	if (document.appform.FAResPostCode.value == "") {
	alert("The Post Code cannot be blank, Please enter your Post Code");
	document.appform.FAResPostCode.focus();return false
	}

	if (document.appform.FAEmail.value == "") {
	alert("The email field cannot be blank, Please enter your email address");
	document.appform.FAEmail.focus();return false
	}

	if (document.appform.FAEmail.value != "") {
		if (document.appform.FAEmail.value.indexOf("@")==-1 || document.appform.FAEmail.value.indexOf(".")==-1 || document.appform.FAEmail.value.indexOf(" ")!=-1 || document.appform.FAEmail.value.length<6) {
		alert("Sorry, your email address is not valid.");document.appform.FAEmail.focus();return false
	}
	}

	if (document.appform.FADOB.value == "") {
	alert("The Date of Birth cannot be blank, Please enter your Date of Birth");
	document.appform.FADOB.focus();return false
	}	


	applicant.expandit(1);

	if ( document.appform.SA.checked == true )
    {

		if (document.appform.SAFamilyCompany.value == "") {
		alert("The First Name or Company Name cannot be blank, Please enter your First Name");
		document.appform.SAFamilyCompany.focus();return false
		}

		if (document.appform.SAName.value == "") {
		alert("The Given Name cannot be blank, Please enter your Given Name");
		document.appform.SAName.focus();return false
		}

		if (document.appform.SAResAdd1.value == "") {
		alert("The Address cannot be blank, Please enter your Address");
		document.appform.SAResAdd1.focus();return false
		}

		if (document.appform.SAResAdd2.value == "") {
		alert("The Address cannot be blank, Please enter your Address");
		document.appform.SAResAdd2.focus();return false
		}

		if (document.appform.SAResAdd3.value == "") {
		alert("The City cannot be blank, Please enter your City");
		document.appform.SAResAdd2.focus();return false
		}

		if (document.appform.SAResPostCode.value == "") {
		alert("The Post Code cannot be blank, Please enter your Post Code");
		document.appform.SAResPostCode.focus();return false
		}

		if (document.appform.SAEmail.value == "") {
		alert("The email field cannot be blank, Please enter your email address");
		document.appform.SAEmail.focus();return false
		}

		if (document.appform.SAEmail.value != "") {
			if (document.appform.SAEmail.value.indexOf("@")==-1 || document.appform.SAEmail.value.indexOf(".")==-1 || document.appform.SAEmail.value.indexOf(" ")!=-1 || document.appform.SAEmail.value.length<6) {
			alert("Sorry, your email address is not valid.");document.appform.SAEmail.focus();return false
		}
		}

		if (document.appform.SADOB.value == "") {
		alert("The Date of Birth cannot be blank, Please enter your Date of Birth");
		document.appform.SADOB.focus();return false
		}	

	}

	applicant.expandit(0);

	property.expandit(0);

		if (document.appform.P1PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P1PIntendFin.focus();return false
		}	

		if (document.appform.P1PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P1PBPurPrice.focus();return false
		}	

		if (document.appform.P1PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P1PBExpCloseDate.focus();return false
		}	

		if (document.appform.P1PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P1PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P1PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P1PBDepositBond.focus();return false
		}	

		if (document.appform.P1PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P1PBMonthsBond.focus();return false
		}	

		if (( document.appform.P1PBOtherBonds[0].checked == false ) && ( document.appform.P1PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P1PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P1PBOtherBonds[0].checked == true )
		{
			if (document.appform.P1PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P1PBBondDetails.focus();return false
			}	
		}


	if ( document.appform.P2.checked == true )
    {

	property.expandit(1);

		if (document.appform.P2PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P2PIntendFin.focus();return false
		}	

		if (document.appform.P2PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P2PBPurPrice.focus();return false
		}	

		if (document.appform.P2PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P2PBExpCloseDate.focus();return false
		}	

		if (document.appform.P2PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P2PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P2PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P2PBDepositBond.focus();return false
		}	

		if (document.appform.P2PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P2PBMonthsBond.focus();return false
		}	

		if (( document.appform.P2PBOtherBonds[0].checked == false ) && ( document.appform.P2PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P2PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P2PBOtherBonds[0].checked == true )
		{
			if (document.appform.P2PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P2PBBondDetails.focus();return false
			}	
		}

	}

	if ( document.appform.P3.checked == true )
    {

	property.expandit(2);

		if (document.appform.P3PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P3PIntendFin.focus();return false
		}	

		if (document.appform.P3PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P3PBPurPrice.focus();return false
		}	

		if (document.appform.P3PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P3PBExpCloseDate.focus();return false
		}	

		if (document.appform.P3PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P3PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P3PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P3PBDepositBond.focus();return false
		}	

		if (document.appform.P3PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P3PBMonthsBond.focus();return false
		}	

		if (( document.appform.P3PBOtherBonds[0].checked == false ) && ( document.appform.P3PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P3PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P3PBOtherBonds[0].checked == true )
		{
			if (document.appform.P3PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P3PBBondDetails.focus();return false
			}	
		}

	}

	if ( document.appform.P4.checked == true )
    {

	property.expandit(3);

		if (document.appform.P4PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P4PIntendFin.focus();return false
		}	

		if (document.appform.P4PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P4PBPurPrice.focus();return false
		}	

		if (document.appform.P4PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P4PBExpCloseDate.focus();return false
		}	

		if (document.appform.P4PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P4PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P4PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P4PBDepositBond.focus();return false
		}	

		if (document.appform.P4PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P4PBMonthsBond.focus();return false
		}	

		if (( document.appform.P4PBOtherBonds[0].checked == false ) && ( document.appform.P4PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P4PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P4PBOtherBonds[0].checked == true )
		{
			if (document.appform.P4PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P4PBBondDetails.focus();return false
			}	
		}

	}

	if ( document.appform.P5.checked == true )
    {

	property.expandit(4);

		if (document.appform.P5PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P5PIntendFin.focus();return false
		}	

		if (document.appform.P5PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P5PBPurPrice.focus();return false
		}	

		if (document.appform.P5PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P5PBExpCloseDate.focus();return false
		}	

		if (document.appform.P5PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P5PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P5PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P5PBDepositBond.focus();return false
		}	

		if (document.appform.P5PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P5PBMonthsBond.focus();return false
		}	

		if (( document.appform.P5PBOtherBonds[0].checked == false ) && ( document.appform.P5PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P5PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P5PBOtherBonds[0].checked == true )
		{
			if (document.appform.P5PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P5PBBondDetails.focus();return false
			}	
		}

	}


	if ( document.appform.P6.checked == true )
    {

	property.expandit(5);

		if (document.appform.P6PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P6PIntendFin.focus();return false
		}	

		if (document.appform.P6PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P6PBPurPrice.focus();return false
		}	

		if (document.appform.P6PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P6PBExpCloseDate.focus();return false
		}	

		if (document.appform.P6PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P6PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P6PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P6PBDepositBond.focus();return false
		}	

		if (document.appform.P6PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P6PBMonthsBond.focus();return false
		}	

		if (( document.appform.P6PBOtherBonds[0].checked == false ) && ( document.appform.P6PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P6PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P6PBOtherBonds[0].checked == true )
		{
			if (document.appform.P6PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P6PBBondDetails.focus();return false
			}	
		}

	}

	if ( document.appform.P7.checked == true )
    {

	property.expandit(6);

		if (document.appform.P7PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P7PIntendFin.focus();return false
		}	

		if (document.appform.P7PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P7PBPurPrice.focus();return false
		}	

		if (document.appform.P7PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P7PBExpCloseDate.focus();return false
		}	

		if (document.appform.P7PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P7PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P7PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P7PBDepositBond.focus();return false
		}	

		if (document.appform.P7PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P7PBMonthsBond.focus();return false
		}	

		if (( document.appform.P7PBOtherBonds[0].checked == false ) && ( document.appform.P7PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P7PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P7PBOtherBonds[0].checked == true )
		{
			if (document.appform.P7PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P7PBBondDetails.focus();return false
			}	
		}

	}


	if ( document.appform.P8.checked == true )
    {

	property.expandit(7);

		if (document.appform.P8PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P8PIntendFin.focus();return false
		}	

		if (document.appform.P8PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P8PBPurPrice.focus();return false
		}	

		if (document.appform.P8PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P8PBExpCloseDate.focus();return false
		}	

		if (document.appform.P8PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P8PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P8PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P8PBDepositBond.focus();return false
		}	

		if (document.appform.P8PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P8PBMonthsBond.focus();return false
		}	

		if (( document.appform.P8PBOtherBonds[0].checked == false ) && ( document.appform.P8PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P8PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P8PBOtherBonds[0].checked == true )
		{
			if (document.appform.P8PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P8PBBondDetails.focus();return false
			}	
		}

	}


	if ( document.appform.P9.checked == true )
    {

	property.expandit(8);

		if (document.appform.P9PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P9PIntendFin.focus();return false
		}	

		if (document.appform.P9PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P9PBPurPrice.focus();return false
		}	

		if (document.appform.P9PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P9PBExpCloseDate.focus();return false
		}	

		if (document.appform.P9PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P9PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P9PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P9PBDepositBond.focus();return false
		}	

		if (document.appform.P9PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P9PBMonthsBond.focus();return false
		}	

		if (( document.appform.P9PBOtherBonds[0].checked == false ) && ( document.appform.P9PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P9PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P9PBOtherBonds[0].checked == true )
		{
			if (document.appform.P9PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P9PBBondDetails.focus();return false
			}	
		}

	}


	if ( document.appform.P10.checked == true )
    {

	property.expandit(9);

		if (document.appform.P10PIntendFin.value == "") {
		alert("The Borrowing amount cannot be blank, Please enter your borrowing amount to purchase the property");
		document.appform.P10PIntendFin.focus();return false
		}	

		if (document.appform.P10PBPurPrice.value == "") {
		alert("The Purchase Price cannot be blank, Please enter the Purchase Price to purchase the property");
		document.appform.P10PBPurPrice.focus();return false
		}	

		if (document.appform.P10PBExpCloseDate.value == "") {
		alert("The Expected Completion Date cannot be blank, Please enter Expected Completion Date");
		document.appform.P10PBExpCloseDate.focus();return false
		}	

		if (document.appform.P10PBExpExchangeDate.value == "") {
		alert("The Expected Exchange Date cannot be blank, Please enter Expected Exchange Date");
		document.appform.P10PBExpExchangeDate.focus();return false
		}	

		if (document.appform.P10PBDepositBond.value == "") {
		alert("The Deposit Bond Amount cannot be blank, Please enter  Deposit Bond Amount");
		document.appform.P10PBDepositBond.focus();return false
		}	

		if (document.appform.P10PBMonthsBond.value == "") {
		alert("The period cannot be blank, Please enter the period in months for which the bond is required");
		document.appform.P10PBMonthsBond.focus();return false
		}	

		if (( document.appform.P10PBOtherBonds[0].checked == false ) && ( document.appform.P10PBOtherBonds[1].checked == false ) )
		{
			alert ( "Please enter whether you have deposits with us or any other provider: Yes or No" );
			document.appform.P10PBOtherBonds[0].focus();
			return false
		}

		if ( document.appform.P10PBOtherBonds[0].checked == true )
		{
			if (document.appform.P10PBBondDetails.value == "") {
			alert("The amounts and dates of expected releases cannot be blank, please provide details of amounts and dates of expected releases");
			document.appform.P10PBBondDetails.focus();return false
			}	
		}

	}


	if ( document.appform.CTermsAccept.checked == false )
    {
        alert ( "Please accept the Disclosure & Authorisation - I have read & agree with the terms of Disclosure & authorisation above." );
        return false
    }

}
