Does someone know what the javascript is to create confirm boxes for a link?

Only tricky this is that there is more than one link on the page that should use the same function - and each link is to a different page.

So the function should read the variable link and proceed..

I'm a javascript newbie so I don't even know this...

can you pass a variable within parenthesis of a function call, e.g. callconfirm(x)?