change this
echo("<a href='calendar/calendar.php'><font color=$bground>$eventName</font></a><br><div class='NormalBlack'>$EntryRealDate</div>");
to
echo("<a href='javascript:launchsmall(\"calendar.php?display=event&id=".$eventID."&date=".date("M-n-d", $EntryUnixDate)."\")'> <font color=$bground> $eventName</font></a><br><div class='NormalBlack'>$EntryRealDate</div>");
and then put the code for the javascript function launchsmall() at the top of this page
EDIT : there is no space like "java script", for some reason it puts the space in when i post the code, it should be without a space !!!
reg
kevin