<a href="yourfile.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/path/your_image.gif" border="0" alt="" /></a>