function VerifyAge(form) {
	var one_day=1000*60*60*24
	var one_month=1000*60*60*24*30
	var one_year=1000*60*60*24*30*12
	var today=new Date()
	var byear = StringToNum(form.birth_year.value)
	var bmonth = StringToNum(form.birth_month.value)
	var bday = StringToNum(form.birth_day.value)
	var pastdate=new Date(byear, bmonth-1, bday)
	var decimals=0
	decimals=(decimals<=0)? 1 : decimals*10
	yearspast=today.getFullYear()-byear-1
	tail=(today.getMonth()>bmonth-1 || today.getMonth()==bmonth-1 && today.getDate()>=bday)? 1 : 0
	pastdate.setFullYear(today.getFullYear())
	pastdate2=new Date(today.getFullYear()-1, bmonth-1, bday)
	tail=(tail==1)? tail+Math.floor((today.getTime()-pastdate.getTime())/(one_year)*decimals)/decimals : Math.floor((today.getTime()-pastdate2.getTime())/(one_year)*decimals)/decimals
	if( (yearspast+tail) <= 17) {
		// You are NOT old enough.
		window.location.href="http://www.beerleaguethemovie.com/sorry.htm"
	} else {
		// You are old enough.
		window.location.href="http://www.beerleaguethemovie.com/index2.htm"
	}
}

function StringToNum(val) {
	return val - 0
}










MM_openBrWindow('email/index.htm','emailsubmission','width=500,height=350')
