Hello,
I am new to javascript and am aware that this topic is well documented, but not in the way I need the script to work?

I am able to show/ hide a div using the the following:

function toggleMe(a){
var e=document.getElementById(a);
if(!e)return true;
if(e.style.display=="none"){
e.style.display="block"
} else {
e.style.display="none"
}
return true;
}

With a link using:
<a href="#" onClick="return toggleMe('flashOverlay')">Info</a>

The problem I have is that I need to toggle this script with a link in Flash MX, which will not allow me to use "onClick=". Is it possible to have the div show/hide via <a href></a> only?

Thanks in advance

Not in the usual sense.

You could have two pages, one with the div hidden, the other with it shown, and link each page to the other one.

I got it working using the following:

function showHide() {
    for (var i=0; i<expandCollapse.arguments.length; i++) {
        var element = document.getElementById(expandCollapse.arguments[i]);
        element.style.display = (element.style.display == "none") ? "block" : "none";
    }
}


<a href="javascript: showHide('flashOverlay')">Search site</a>