





function validate() {
		var p=document.forms.form1;
		if (IsEmpty(p.deltitle)) {
			alert('Please enter your title, such as Mr, Mrs, Miss etc..');
			return false;
			}
		if (IsEmpty(document.forms.form1.fname)) {
			alert('Please enter your first name.');
			return false;
			//if (!validAlphaNum(p.fname)) return false;
			}
		if (IsEmpty(p.sname)) {
			alert('Please enter your last name.');
			return false;
			}
		if (IsEmpty(p.org)) {
			alert('Please enter your organisation name.\n\nIf you have no organisation specify \"None\" or \"Self-employed\"');
			return false;
			}
		if (IsEmpty(p.position)) {
			alert('Please enter your job title, such as \"Training Manager\" or \"Personnel Director\".');
			return false;
			}
		if (IsEmpty(p.add1)) {
			alert('Please enter your address.');
			return false;
			}
		if (IsEmpty(p.pcode)) {
			alert('Please enter your postcode.');
			return false;
			}
		if (IsEmpty(p.tel)) {
			alert('Please enter your telephone number');
			return false;
			}
		if (!ValidateTelNo(p.tel.value)) {
			alert('The telephone number is not a valid number.\n\nYou can only use numbers and spaces');
			p.tel.focus();
			return false;
			}		
		if (!p.email.value) {
			alert('Please enter your email address.\n\nWe will use this to confirm your booking.');
			p.email.focus();
			return false;
			}
		if (!isEmail(p.email.value)) {
			return false; //n.b. the alert & focus are handled by isEmail function
			}
		return true;
	}
