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