function validate(form){
	
	var req = new Array(12);
	req[1] = document.frmReg.title;
	req[2] = document.frmReg.firstname;
	req[3] = document.frmReg.surname;
	req[4] = document.frmReg.position;
	req[5] = document.frmReg.organisation;
	req[6] = document.frmReg.organisation_type;
	req[7] = document.frmReg.address1;
	req[8] = document.frmReg.address2;
	req[9] = document.frmReg.postcode;
	req[10] = document.frmReg.tel;
	req[11] = document.frmReg.email;
	req[12] = document.frmReg.confEmail;
	req[13] = document.frmReg.heard;
	
	var error = "You have not filled in all required parts of the form.\n\nPlease review the form and try submitting again.";
	var c = 0;

	for(i=1;i<=13;i++){
	if(req[i].value == ""){
		c = c+1;
	}
	}
	
	if(document.frmReg.heard.selectedIndex == 9 && document.frmReg.other.value == ""){
		c = c+1;
		error = "You have marked that you heard the event from a source other then those listed, but have not stated what the source was.";
	}
	
	if(c != 0){
		alert(error);
		return false;
	}else{
		return true;
	}
}
