On an asp page, I need to get the name of the current page and any parameters and send it as a return url parameter when I navigate to the next page. Basically I need to get the url and trim it to everything after the last "/".

for examlple, on this page the url is

http://www.vbforums.com/newthread.ph...ead&forumid=11

I would need a javascript function that would give me

newthread.php?s=&action=newthread&forumid=11

any ideas?