[MX] problem with calling up JavaScript function

This is my javascript:

function loadIframe(iframeName, url) {
if ( window.frames[iframeName] ) {
window.frames[iframeName].location = url;
return false;
}
else return true;
}

This is my html:

<a href=“page1.html” onclick=“return loadIframe(‘ifrm’, this.href)”>Page 1</a>

I’ve tried this:
getURL(return loadIframe(‘ifrm’, page1.html));

and this:
getURL(“page1.html” onclick=“return loadIframe(‘ifrm’, this.href)”);

…and they both don’t work. Please help me.

Thanks in advance.

-Matthew