Togli gli apici da imgpath, così:

<script language="Javascript">
<!--

function touch(imgname, imgpath) {
document.getElementById(imgname).src=imgpath;
}
-->
</script>

Ciao!