function validateSubs(theForm) {
	var strEmail;
	strEmail = new String(theForm['email'].value)
	if (theForm['subrates'][0].checked == false && theForm['subrates'][1].checked == false && theForm['subrates'][2].checked == false) {
		alert('Please choose a subscription rate.');
		return false;
	} else if (theForm['Full_Name'].value == '') {
		alert('Please fill in your name.');
		theForm['Full_Name'].focus();
		return false;
	} else if (theForm['Company'].value == '') {
		alert('Please fill in your company.');
		theForm['Company'].focus();
		return false;
	} else if (theForm['Email'].value == '') {
		alert('Please fill in your email address.');
		theForm['Email'].focus();
		return false;
	} else if ((strEmail.indexOf("@") < 1) || (strEmail.indexOf(".") < 1)) {
		alert('We have found an error with your email address. Please check you have typed your email in full and it is correct. Then resubmit this form. Thank you.');
		theForm['Email'].focus();
		return false;
	} else if (theForm['Phone_Number'].value == '') {
		alert('Please fill in your phone number.');
		theForm['Phone_Number'].focus();
		return false;
	} else {
		theForm.submit();
		return true;
	}
}

function validateEnq(theForm) {
	var strEmail;
	strEmail = new String(theForm['Email'].value)
	if (theForm['Full_Name'].value == '') {
		alert('Please fill in your full name.');
		theForm['Full_Name'].focus();
		return false;
	} else if (theForm['Company'].value == '') {
		alert('Please fill in your company.');
		theForm['Company'].focus();
		return false;
	} else if (theForm['Phone_Number'].value == '') {
		alert('Please fill in your phone number.');
		theForm['Phone_Number'].focus();
		return false;
	} else if (theForm['Email'].value == '') {
		alert('Please fill in your email address.');
		theForm['Email'].focus();
		return false;
	} else if ((strEmail.indexOf("@") < 1) || (strEmail.indexOf(".") < 1)) {
		alert('We have found an error with your email address. Please check you have typed your email in full and it is correct. Then resubmit this form. Thank you.');
		theForm['Email'].focus();
		return false;
	} else if (theForm['Comments'].value == '') {
		alert('Please fill in your comments.');
		theForm['Comments'].focus();
		return false;
	} else {
		theForm.submit();
		return true;
	}
}

