function swap(imgName, locat) {
    //javascript: img.nameProp returns name of image
    //alert(document.location.host);
    document.getElementsByName(locat.name).item(0).src = "images/" + imgName; 
    return true;
}