Call javascript function inside PHP

Hi,
I’ve a code something like this

<div id=“middle” class=“clearfix”>
<div id=“splash”><a title="<?php bloginfo(‘name’); ?>" href="<?php bloginfo(‘url’); ?>"><img src="[COLOR=red]http://www.walkingshadow.in/wp-content/themes/default/images/splash.gif[/COLOR]" width=“568” height=“118” border=“0” alt="<?php bloginfo(‘description’); ?>"/></a></div>
<?php get_sidebar(); ?>
<div id=“content”>

Don’t look at the details of the code. I simply need to call a javascript function [COLOR=red]showImage();[/COLOR] instead of the red color text to rotate (showing different images on each refresh) the image. Javascipt is on top of the page and that return all values correctly. But my code is not working.

Any help will really appreciable.