﻿// JScript File

function switchImage(id, nSrc) {
    var e = document.getElementById(id)
    
    if (e != null) {
        e.src = nSrc;
    } else {
        throw "Element with Id " + id + " was not found.";
    }
}

