function changeImage(filename,txt){
// alter the window parameters in function pugNewWindow( as required
document.getElementById('mainimage').onclick=function(){ pugNewWindow(pugWindow1,'http://www.vicsjavascripts.org.uk/StdImages/Three.gif')}
document.getElementById('mainimage').src=filename;
document.getElementById('ImgTxt').innerHTML=txt;
}