Exhibit 10.22 TERM LOAN AGREEMENT dated as of July 31, 2002,