If I had to guess, I'd say one of the following:
- forum/default.asp
- forum/forum_topics.asp
- forum/forum_posts.asp
Look for Dim intNumOfNewPM on one of those OR just comment out the Dim intNumOfNewPM line from your pm_check_inc.asp and see if that clears it up. As long as the intNumOfNewPM variable is dim'ed on each page that is necessary, then you should be ok.
If you have Dreamweaver, you can use the Edit--Find/Replace and search an entire directory. I've found this invaluable for troubleshooting since I am an ASP newbie too.
Also, I keep a page in all my sites called revisions.asp or something that contains commented lines of my revisions. That way, if I have to upgrade an application or something, I have a roadmap to implement the mod's in the new version and a history of what I did. I learned that the hard way.
Edited by xeerex