var img1_src = "http://img.diytrade.com/cdimg/95109/3441409/0/1175652624.jpg"; var img2_src = ""; var img3_src = ""; var img4_src = ""; var img5_src = ""; var img1_normal_code = ""; var img2_normal_code = ""; var img3_normal_code = ""; var img4_normal_code = ""; var img5_normal_code = ""; function changeimage(imgid){ var oimgpos = document.geementbyid("image_normal_id"); oimgpos.href = eval(imgid + "_src"); oimgpos.innerhtml = eval(imgid + "_normal_code"); return false; }