function showPic (whichpic) { if (document.getElementById) { document.getElementById('placeholder').src = whichpic.href; document.getElementById('placeholder').alt = whichpic.alt; return false; } else { return true; } }