function validate() {

	var problems = new String;

	// Email
	if (document.apply4me.title.value=="") {
		problems+="Please enter your Title\n";
	}


	// Now output validation exceptions.
	if (problems.length>0) {
		// Alert user of missing data
		alert("Some of the required data has not been entered:\n\n"+problems+"\n\nPlease complete these fields and submit again.");

	} else {

		// Submit if no problems.
		document.apply4me.submit();
	}

}