﻿function ShowActive(imgTarget)
{
    if(imgTarget.src.indexOf("Active" == -1))
    {
        var nExtensionIndex = imgTarget.src.lastIndexOf(".");
        
        imgTarget.src = imgTarget.src.substring(0, nExtensionIndex) + "Active" + imgTarget.src.substring(nExtensionIndex);
    }
}

function ShowInactive(imgTarget)
{
    if(imgTarget.src.indexOf("Active" == -1))
    {
        imgTarget.src = imgTarget.src.replace("Active", "");
    }
}

function GoToURL(strURL)
{
    window.location = strURL;
}
