Need a code script !!!
You'd be better off doing this with PHP or other server side lingo. Presumably there is one already to process the form? In that case, you just add a regex rule that only accepts .edu in the email address.