
function validate(aForm) {
	var msg = '';
	var isGood = true;
	if (trim(aForm.email.value) == '') {
		msg = msg + '\n You must enter an email address';
		isGood = false;
		focusField = 'email';
	}
	else {
		if (aForm.email.value.indexOf('.') == -1 ||
			aForm.email.value.indexOf('@') == -1) {
			isGood = false;
			msg = msg + '\n You must enter a VALID email address';
			focusField = 'email';
		}
	}
	
	if (trim(aForm.country.options[aForm.country.selectedIndex].value) == '') {
		msg = msg + '\n You must select a country';
		isGood = false;
		focusField = 'country';
	}
	
	if (! isGood) {
		alert(msg);
		var doit = 'aForm.'+focusField+'.focus()';
		eval(doit);
		return false;
	}
	return true;
}
