﻿function SwapImage(Element,Image)
{
var d = document.getElementById(Element.id);
d.src = '/images/' + Image;
}

function OpenCloseDivModal(DivModal)
{
    var DivModalPopup = parent.document.getElementById(DivModal);
    if (DivModalPopup.className == "DivFermer")
    {
        DivModalPopup.className = "DivOuvert";
    }
    else
    {
        DivModalPopup.className = "DivFermer";
    }
}


function OpenCloseParentDivModal(DivModal)
{
    var DivModalPopup = parent.document.getElementById(DivModal);
    if (DivModalPopup.className == "DivFermer")
    {
        DivModalPopup.className = "DivOuvert";
    }
    else
    {
        DivModalPopup.className = "DivFermer";
    }
    parent.location.reload;
    parent.document.location.reload;
}
