function verifyConsultationForm( ) {
	var sErr = '', vFocus
	with( document.forms['frmConsultation'] ) {
		/* Payment Scheme is required */
		if( optPayment.value=='' ) {
			sErr= 'Please select your preferred payment scheme.\n' + sErr;
			vFocus = 8;
		}
		/* Lot Location is required */
		if( txtLotLocation.value=='' ) {
			sErr= 'Where is your lot located?\n' + sErr;
			vFocus = 7;
		}
		/* Lot Dimensions required */
		if( txtLotL.value=='' || txtLotW.value=='' ) {
			sErr= 'We need to know the size of your lot.\n' + sErr;
			vFocus = 6;
		}
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 5;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 5;
		}
		/* Mobile No. is required */
		if( txtMobile.value=='' ) {
			sErr= 'Please enter your Mobile No.\n' + sErr;
			vFocus = 4;
		}
		/* Phone No. is required */
		if( txtPhone.value=='' ) {
			sErr= 'Please enter your Phone No.\n' + sErr;
			vFocus = 3;
		}
		/* Visitor Address is required */
		if( txtAddress.value=='' ) {
			sErr= 'Please enter your complete Address.\n' + sErr;
			vFocus = 2;
		}
		/* Visitor Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}
		
		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtAddress.focus( );
			if( vFocus==3 )
				txtPhone.focus( );
			if( vFocus==4 )
				txtMobile.focus( );
			if( vFocus==5 )
				txtEMail.focus( );
			if( vFocus==6 )
				txtLotL.focus( );
			if( vFocus==7 )
				txtLotLocation.focus( );
			if( vFocus==8 )
				optPayment.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}



function verifyFeedbackForm( ) {
	var sErr = '', vFocus
	
	with( document.forms['frmFeedback'] ) {
		/* Feedback Message is required */
		if( txtMessage.value=='' ) {
			sErr= 'Please type in your message.\n' + sErr;
			vFocus = 3;
		}
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 2;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 2;
		}
		/* Visitor Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}
		
		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtEMail.focus( );
			if( vFocus==3 )
				txtMessage.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}



function verifyVentureForm( ) {
	var sErr = '', vFocus
	
	with( document.forms['frmVenture'] ) {
		/* Phone No. is required */
		if( txtPhone.value=='' ) {
			sErr= 'Please type in your Phone No.\n' + sErr;
			vFocus = 5;
		}
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		}
		/* Applicant Job Designation is required */
		if( txtJob.value=='' ) {
			sErr= 'What is your Job Designation in your company?\n' + sErr;
			vFocus = 3;
		}
		/* Applicant Company is required */
		if( txtCompany.value=='' ) {
			sErr= 'Tell us which Company you\'re representing.\n' + sErr;
			vFocus = 2;
		}
		/* Applicant Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}

		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtCompany.focus( );
			if( vFocus==3 )
				txtJob.focus( );
			if( vFocus==4 )
				txtEMail.focus( );
			if( vFocus==5 )
				txtPhone.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}



function verifySupplierForm( ) {
	var sErr = '', vFocus
	
	with( document.forms['frmSupplier'] ) {
		/* Phone No. is required */
		if( txtPhone.value=='' ) {
			sErr= 'Please type in your Phone No.\n' + sErr;
			vFocus = 5;
		}
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		}
		/* Applicant Job Designation is required */
		if( txtJob.value=='' ) {
			sErr= 'What is your Job Designation in your company?\n' + sErr;
			vFocus = 3;
		}
		/* Applicant Company is required */
		if( txtCompany.value=='' ) {
			sErr= 'Tell us which Company you\'re representing.\n' + sErr;
			vFocus = 2;
		}
		/* Applicant Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}

		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtCompany.focus( );
			if( vFocus==3 )
				txtJob.focus( );
			if( vFocus==4 )
				txtEMail.focus( );
			if( vFocus==5 )
				txtPhone.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}



function verifyHPIApplicationForm( ) {
	var sErr = '', vFocus
	with( document.forms['frmHPIApplication'] ) {
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 5;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 5;
		}
		/* Mobile No. is required */
		if( txtMobile.value=='' ) {
			sErr= 'Please enter your Mobile No.\n' + sErr;
			vFocus = 4;
		}
		/* Phone No. is required */
		if( txtPhone.value=='' ) {
			sErr= 'Please enter your Phone No.\n' + sErr;
			vFocus = 3;
		}
		/* Visitor Address is required */
		if( txtAddress.value=='' ) {
			sErr= 'Please enter your complete Address.\n' + sErr;
			vFocus = 2;
		}
		/* Visitor Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}
		
		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtAddress.focus( );
			if( vFocus==3 )
				txtPhone.focus( );
			if( vFocus==4 )
				txtMobile.focus( );
			if( vFocus==5 )
				txtEMail.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}



function verifyReferralForm( ) {
	var sErr = '', vFocus
	
	with( document.forms['frmReferral'] ) {
		/* Referred Client's Phone No. is required */
		if( txtRefPhone.value=='' ) {
			sErr= 'Please type in your referral\'s Phone No.\n' + sErr;
			vFocus = 7;
		}
		/* Applicant Name is required */
		if( txtRefName.value=='' ) {
			sErr= 'Please enter your referral\'s Full Name.\n' + sErr;
			vFocus = 6;
		}
		/* Phone No. is required */
		if( txtPhone.value=='' ) {
			sErr= 'Please type in your Phone No.\n' + sErr;
			vFocus = 5;
		}
		/* A valid EMail Address is required */
		if( txtEMail.value=='' ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		} else if( IsEmailAddress(txtEMail.value) == false ) {
			sErr = 'A valid Email Address is required.\n' + sErr;
			vFocus = 4;
		}
		/* Applicant Address is required */
		if( txtAddress.value=='' ) {
			sErr= 'Please enter your complete Address.\n' + sErr;
			vFocus = 3;
		}
		/* Applicant Company is required */
		if( txtCompany.value=='' ) {
			sErr= 'Tell us which Company you\'re representing.\n' + sErr;
			vFocus = 2;
		}
		/* Applicant Name is required */
		if( txtName.value=='' ) {
			sErr= 'Please enter your Name.\n' + sErr;
			vFocus = 1;
		}

		if( sErr!='' ) {
			alert( sErr );
			if( vFocus==1 )
				txtName.focus( );
			if( vFocus==2 )
				txtCompany.focus( );
			if( vFocus==3 )
				txtAddress.focus( );
			if( vFocus==4 )
				txtEMail.focus( );
			if( vFocus==5 )
				txtPhone.focus( );
			if( vFocus==6 )
				txtRefName.focus( );
			if( vFocus==7 )
				txtRefPhone.focus( );
		} else {
			SUBMIT.value = 'True';
			submit( );
		}
	}
}