In 2010 I wrote these custom Javascript validation scripts for Aspire's PowerSchool implementation.