var img = document.getElementById("Verification_img"); img.src="http://www.smirisary.co.uk/cgi-script/csFormbuilder/vsimage.cgi?s=8F1D9653C595"; var elem = document.getElementById("Verification_sid"); elem.value="8F1D9653C595";