function doPic(imgName,txtName) {imgOn = ("" + imgName);txtOn = ("" + txtName);document.mainpic.src = imgOn;document.txtPic.src = txtOn;}