I'd like to add my own click tracking system to my site. Getting tired of limitations of CJ and others' reporting.

Are there any shareware or retail favorites you can recommend?

My specific need would be click/impression tracking on javascript links, with some sort of system that identifies total clicks by date range, and also identifies individual links' performance.