<td><a href='/images/pic.jpg' target='_blank' title='Click to enlarge in a new window'>
<img src='/images/pic.jpg' width=100 height=100 border=o></a></div>
<br>pic1</td>Um.. instead of linking directly to that image, make a serverside page(PHP) and pass the name of that image via url. In that php page write the code to echo the <img> tag dynamically,depending upon the parameter in the url, and then apply the required styles in that page.