I believe that OnBeforeChange and OnValidate will run first, then rules, then OnAfterChange. The DOM in the first two is read-only, so hopefully that doesn't get in the way of what you're looking for.
Brian
> Is there anyway that you can make it run the code before the rules?