/* nawform.js */
function CheckNAW(cFormName) {
	with(document.forms[cFormName]) {
		if(Initials.value.length < 1) {
			alert(oAlertsNAW[0]);
			Initials.focus();
			return false;
		}
		if(LastName.value.length < 2) {
			alert(oAlertsNAW[1]);
			LastName.focus();
			return false;
		}
		if(document.getElementById('BirthDate')) {
			if(!checkdate(BirthDate.value)) {
				alert(oAlertsNAW[2]);
				BirthDate.focus();
				return false;
			}
		}
		if(ZipCode.value.length < 2) {
			alert(oAlertsNAW[3]);
			ZipCode.focus();
			return false;
		}
		if(HouseNumberAndExtension.value.length < 1) {
			alert(oAlertsNAW[4]);
			HouseNumberAndExtension.focus();
			return false;
		}	
		if(Street.value.length < 2) {
			alert(oAlertsNAW[5]);
			Street.focus();
			return false;
		}
		if(PhoneNumberByDay) {
			if(PhoneNumberByDay.value.length < 2) {
				alert(oAlertsNAW[6]);
				PhoneNumberByDay.focus();
				return false;
			}
		}	
		if(Town.value.length < 2) {
			alert(oAlertsNAW[7]);
			Town.focus();
			return false;
		}
		if(EmailAddress.value.length < 5) {
			alert(oAlertsNAW[8]);
			EmailAddress.focus();
			return false;
		}		
		return true;
	}
}
