	function doFasterSale() {
		intVal = getCheckedValue('lead_faster_sale');
		elmHidden = getElement('faster_option');
		
		elmHidden.style.display = 'none';
		
		if (intVal == 0) {
			alert('message for people who select no.');
		}
		else if (intVal == 2) {
			elmHidden.style.display = '';
		}
	}
	
	function updateCalc(intLow, intHigh) {
		intVal = getElement('lead_your_value').value;
		
		if (intVal == '') {
			intVal = 0;
		}
		
		if (!isNaN(intVal)) {
			getElement('mark_value').innerHTML = intVal;
			getElement('calc_lower').innerHTML = (intVal - (intVal*(intLow/100))).toFixed(2);
			getElement('calc_higher').innerHTML = (intVal - (intVal*(intHigh/100))).toFixed(2);
		}
	}
	
	function isEmptyPostcode() {
		elmPost = document.getElementById('textfield');
		if (elmPost.value == '' || elmPost.value == 'type postcode') {
			alert('You must enter a postcode to continue.');
			return false;
		}
		
		return true;
	}
	
	function getCheckedValue(strName) {
		elmsToCheck = document.getElementsByName(strName);
		
		for (var intCount = 0; intCount < elmsToCheck.length; intCount++) {
			if (elmsToCheck[intCount].checked) {
				return elmsToCheck[intCount].value;
			}
		}
	}
	
	function getElement(strID) {
		return document.getElementById(strID);
	}
	
	function clearDefault(strDefault, elmToClear) {
		if (elmToClear.value == strDefault) {
			elmToClear.value = '';
		}
	}

