function checkForm(form) {
	/*
	var intPCValue=form.elements['pc_value'].value;

	if (intPCValue==3) {
		if (!checkFormDate(form, 'prfnight_start', 'start date of payroll cycle')) return false;
	}
	if (!checkFormDate(form, 'doe', 'date of employment')) return false;
	*/

	if (!form.prfnightRadio) {
		assignPFRadios(form);
	}
	if (form.prfnightRadio && form.prfnightRadio.checked) {
		if (!checkFormDate(form, 'prfnight_start', messages.invalidPayrollCycleStartDate)) return false;
	}
	if (!checkFormDate(form, 'doe', messages.invalidDateOfEmployment)) return false;

	var intMonth;
	var doeDate;
	var dobDate;
	var age;
	intYear		= parseInt(getSelectionBoxValue(form, 'doe_year'));
	intDay		= parseInt(getSelectionBoxValue(form, 'doe_date'));
	intMonth	= parseInt(getSelectionBoxValue(form, 'doe_month'));
	doeDate		= new Date(intYear, intMonth, intDay);
	
	cDate		= new Date();

	if (doeDate < new Date(2000, 11, 1)){
		//alert("The calculator is only applicable for employees who commence employment on or after 1 December 2000.");
		alert(messages.dateOfEmploymentTooEarly);
		return false;
	}

	return true;
}
