I have this simple java script for a gallery. Here's the code:

<script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) { ...