
function CheckForm() {

	// Title
	var a = egen.gEBI('idTitle');
	var b = egen.gEBI('idOtherTitle');
	if ((a != null) && (b != null)) {
		if ((a.value == '')  && (b.value == '')) {
			alert('Please select a title or supply an alternative title');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// first name
	a = egen.gEBI('idFirstName');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply your First Name');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// last name
	a = egen.gEBI('idLastName');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply your Last Name');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// organisation
	a = egen.gEBI('idOrganisation');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply the name of your Organisation');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// job title
	a = egen.gEBI('idJobTitle');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply your Job Title');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// address
	a = egen.gEBI('idAddress1');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply the address where you wish the information to be sent');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// post code 
	a = egen.gEBI('idPostCode');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply the Post Code of your address');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}
	// phone number
	a = egen.gEBI('idPhoneNumber');
	if (a != null) {
		if (a.value == '') {
			alert('Please supply a Phone Number');
			a.focus();
			event.returnValue = false;
			return false;
			
		}
	}

}
