function checkClubcardForm() {
	
	var error = '';
	
	if(document.getElementById('existing_number')) {
		if(document.getElementById('existing_number').value == '') {
			error = error + " - Please enter the number from your current TLC CLubcard\n";
		}
	}
	
	if(document.getElementById('first_name').value == '') {
		error = error + " - Please tell us your first name\n";
	}
	
	if(document.getElementById('last_name').value == '') {
		error = error + " - Please tell us your surname\n";
	}
	
	if(document.getElementById('address1').value == '') {
		error = error + " - Please tell us the first line of your address\n";
	}
	
	if(document.getElementById('city').value == '') {
		error = error + " - Please tell us the town or city from your address\n";
	}
	
	if(document.getElementById('state').value == '') {
		error = error + " - Please tell us the county from your address\n";
	}
	
	if(document.getElementById('zip').value == '') {
		error = error + " - Please tell us your postcode\n";
	}
	
	if(document.getElementById('phone_a').value == '') {
		error = error + " - Please tell us your telephone number\n";
	}
	
	
	
	
	if(document.getElementById('preferred_travel_destination').value == '') {
		error = error + " - Please tell us your favourite holiday destination\n";
	}
	
	
	if(document.getElementById('preferred_club').value == '') {
		error = error + " - Please tell us your favourite club\n";
	}
	
	if(!document.getElementById('over_18').checked) {
		error = error + " - Please tick the box to confirm you are at least 18 years old\n";
	}
	
	if(!document.getElementById('terms').checked) {
		error = error + " - Please tick the box to confirm you have accepted our terms and conditions\n";
	}
	
	if(error == '') {
		return true;
	} else {
		alert("We spotted the following errors:\n\n" + error + "\nPlease correct these and try again");
		return false;
	}
	
	
}

$(document).ready(function() {
	$('#oneYearTerm').live("click", function() {
		$('#term_length').val(12);
		$('#toggleTermLength').html('<span class="bigGreenTitle"><strong>Subscription term currently 12 months (£40) </strong></span>(switch to <a id="sixMonthTerm" href="#">6 months</a> for £24)');
		return false;
	});
	$('#sixMonthTerm').live("click", function() {
		$('#term_length').val(6);
		$('#toggleTermLength').html('<span class="bigGreenTitle"><strong>Subscription term currently 6 months (£24) </strong></span>(switch to <a id="oneYearTerm" href="#">12 months</a> for £40)');
		return false;
	});
});