/* checks age */function is21 (f) { var theirDate = new Date( f.month.value + "/" + f.day.value + "/" + f.year.value); // check for validity of date if (theirDate=="Invalid Date" || theirDate=="NaN") {   alert ("Date must be in numeric MM, DD, YYYY format.");   return false; }  // alert ("entry date: " + theirDate); var now = new Date(); var validDate = new Date(); validDate.setFullYear(now.getFullYear() - 21, now.getMonth(), now.getDay());  // alert ("now: " + now); if ( validDate.getTime() < theirDate.getTime()) { 	//alert("Sorry, you must be 21 years of age to enter this sweepstakes."); 	document.cookie = "youngster=true; max-age="+(60*60*24*14); 	this.reload(); } else { 	// alert ("return true"); 	f.isValid.value = "true"; 	return true; }}