function checkage(form,reqAge) {
	// reqAge is optional, and will default to 13 (suggestions will pass in a required age of 18)
	if (reqAge == null) {
		reqAge = 13;
	}
	var now = new Date();
	var yearNow = now.getYear();
	var yearNowyy = (yearNow < 1000) ? yearNow + 1900 : yearNow;
	var monthNow = now.getMonth() + 1;
	var dateNow = now.getDate();	
	var yearDob = parseInt(form.yob.value);
	var monthDob = parseInt(form.mob.value);
	var dateDob = parseInt(form.dob.value);
	
	// see if they are 18 or older
	if (monthNow > monthDob) {
		var age_y = Number(yearNowyy - yearDob);
		}
	
	if (monthNow < monthDob) {
		var age_y = Number(yearNowyy - yearDob) - 1;
		}
	
	if (monthNow == monthDob) { // monthNow = monthDob
		if (dateNow >= dateDob) {
			var age_y = Number(yearNowyy - yearDob);
			}
		else {
			var age_y = Number(yearNowyy - yearDob) - 1;
			}
		}

	//alert("required age: " + reqAge + "\n\nactual age: " + age_y); // DEBUG AGE
	
	if (age_y < reqAge) {
		if (reqAge == 13) {
			param=1; // parameter to pass to the regrets page to select proper message. May want to just pass the age and change the regrets page to use that
		} else if (reqAge == 18) {
			param=2;
		}
		if (document.images) { // remove the form from the browser history so they can't go back to it
		    location.replace('/contact_us/regrets.cfm?a=' + param);
		} else { // in case browser does not support the replace method (which is indicated by lack of support for document.images)
			location.href = '/contact_us/regrets.cfm?a=' + param;
		}
		return false;
	} else {
		return true;
	}<!--end function-->

}