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['firstname'].value == '') {
		alert('Please fill in your first name.');
		theForm['firstname'].focus();
		return false;
	} else if (theForm['surname'].value == '') {
		alert('Please fill in your surname.');
		theForm['surname'].focus();
		return false;
	} else if (theForm['company'].value == '') {
		alert('Please fill in your company.');
		theForm['company'].focus();
		return false;
	} else if (theForm['position'].value == '') {
		alert('Please fill in your position.');
		theForm['position'].focus();
		return false;
	} else if (theForm['state'].value == '') {
		alert('Please fill in your state.');
		theForm['state'].focus();
		return false;
	} else if (theForm['country'].value == '') {
		alert('Please fill in your country.');
		theForm['country'].focus();
		return false;
	} else if (theForm['fax'].value == '') {
		alert('Please fill in your fax number.');
		theForm['fax'].focus();
		return false;
	} else if (theForm['web'].value == '') {
		alert('Please fill in your web address.');
		theForm['web'].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['address'].value == '') {
		alert('Please fill in your street address.');
		theForm['address'].focus();
		return false;
	} else if (theForm['town'].value == '') {
		alert('Please fill in your town.');
		theForm['town'].focus();
		return false;
	} else if (theForm['postcode'].value == '') {
		alert('Please fill in your postcode.');
		theForm['postcode'].focus();
		return false;
	} else if (theForm['phone'].value == '') {
		alert('Please fill in your telephone number.');
		theForm['phone'].focus();
		return false;
	} else {
		theForm.submit();
		return true;
	}
}

function validateEnq(theForm) {
	var strEmail;
	strEmail = new String(theForm['email'].value)
	if (theForm['firstname'].value == '') {
		alert('Please fill in your first name.');
		theForm['firstname'].focus();
		return false;
	} else if (theForm['surname'].value == '') {
		alert('Please fill in your surname.');
		theForm['surname'].focus();
		return false;
	} else if (theForm['company'].value == '') {
		alert('Please fill in your company.');
		theForm['company'].focus();
		return false;
	} else if (theForm['position'].value == '') {
		alert('Please fill in your position.');
		theForm['position'].focus();
		return false;
	} else if (theForm['state'].value == '') {
		alert('Please fill in your state.');
		theForm['state'].focus();
		return false;
	} else if (theForm['country'].value == '') {
		alert('Please fill in your country.');
		theForm['country'].focus();
		return false;
	} else if (theForm['fax'].value == '') {
		alert('Please fill in your fax number.');
		theForm['fax'].focus();
		return false;
	} else if (theForm['web'].value == '') {
		alert('Please fill in your web address.');
		theForm['web'].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['address'].value == '') {
		alert('Please fill in your street address.');
		theForm['address'].focus();
		return false;
	} else if (theForm['town'].value == '') {
		alert('Please fill in your town.');
		theForm['town'].focus();
		return false;
	} else if (theForm['postcode'].value == '') {
		alert('Please fill in your postcode.');
		theForm['postcode'].focus();
		return false;
	} else if (theForm['phone'].value == '') {
		alert('Please fill in your telephone number.');
		theForm['phone'].focus();
		return false;
	} else {
		theForm.submit();
		return true;
	}
}

