Hello, I'm sorry for my English

I need to creat a link via javascript that pass the attribute rel:

I have the link:

HTML Code:
<a href="#page.php" rel="history">PAGE LINK</a>
I need something that call a javascript function, for example:

HTML Code:
<a href="javascript:pageURL('#page.php','history')>PAGE LINK</a>
where call the function

Code:
function pageURL(url, rel){

}
I don't know how to create in this function, I need creat the link with the href and rel attributes inside this function, and that in it same function execute the link automatically.

I need to do it, because I have to call it in the getURL of my flash menu, because the getURl don't suport the attribute rel.

Somebody can help me??

Thank's