function swapImg(imgId,imgSrc) {
   var obj;
   src=imgSrc.indexOf(".")<0?eval(imgSrc + ".src"):imgSrc;
   obj = eval('document.' + imgId);
   document.oldArray = new Array(imgId,obj.src);
   obj.src = src;
}

function restore() {
   if (document.oldArray != null)
   	swapImg(document.oldArray[0],document.oldArray[1]);
}