I'm calling the first function below to bind the second function to the onClick event.
The strange thing is that calling the first function results in firing the second function.
The LinkName parameter in the first function is a name of a table td element - probably not relevant.
function EnableExpand(LinkName, i) {
$(LinkName).addClass("link-text");
$(LinkName).bind("onclick", ExpandFrame(LinkName, i));
}
function ExpandFrame(lName, i) {
$("#mapFrame" + i).attr({ height: 500, width: 800 });
}