function validateFeedback(form) {
	if (document.getElementById('user_name').value=='') {
		alert ('Please complete the name field and try again.');
		document.getElementById('user_name').focus();
		return false;
	}
	if (document.getElementById('user_email').value=='') {
		alert ('Please complete the email field and try again.');
		document.getElementById('user_email').focus();
		return false;
	}
	if (document.getElementById('serv_comments') && !document.getElementById('user_company')) {
		if (document.getElementById('serv_comments').value=='') {
			alert ('Please complete the comments field and try again.');
			document.getElementById('serv_comments').focus();
			return false;
		}
	}
	if (document.getElementById('user_company')) {
		/*if (document.getElementById('user_company').value=='') {
			alert ('Please complete the company field and try again.');
			document.getElementById('user_company').focus();
			return false;
		}*/
		if (document.getElementById('user_position').value=='' && document.getElementById('user_position_other').value=='') {
			alert ('Please complete the position field and try again.');
			document.getElementById('user_position').focus();
			return false;
		}
	}
	
	emailpat = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	
	if( !emailpat.test( document.getElementById('user_email').value ) ) {
		alert ('Please specify a valid email address and try again.');
		document.getElementById('user_email').focus();
		return false;
	}
}

function region_field(select_val) {
	if (select_val=='scot')
		document.getElementById('user_region').disabled = 0;
	else
		document.getElementById('user_region').disabled = 1;
}