﻿function changeImg(imageurl) {
    // Define the controls we'll be changing.
    var myimage=null;
    //var mytitle=null;
    //var mycaption=null;
    
    // Find the controls we'll be changing.
    if (document.getElementById) {
    
        myimage=document.getElementById('gimage');
        //mytitle=document.getElementById('gtitle');
        //mycaption=document.getElementById('gcaption');
        
    } else if (document.all) {
    
        myimage=document.all['gimage'];
        //mytitle=document.all['gtitle'];
        //mycaption=document.all['gcaption'];
    }

    // Set the new image URL.
    myimage.src=imageurl;
    //mytitle.textContent=title;
    //mycaption.textContent=caption;
}