function validRequired(formField,fieldLabel)
{
var result = true;
if (formField.value == "")
{
alert('Please enter a value for the "' + fieldLabel +'" field.');
formField.focus();
result = false;
}
return result;
}
function validateForm(theForm)
{
if (document.getElementById('email').style.display != "none") if (!validRequired(theForm.email,"email")) return false;
if (!theForm.terms_ticked.checked)
{
alert('Please check the box to confirm you have read and accept the privacy statement.');
return false;
}
return true;
}
