﻿function OnClicked(sender,eventArgs)
{
    if(eventArgs._item._attributes.getAttribute("Pop")=="True")
    {
        window.open(eventArgs._item._attributes.getAttribute("Lien"),'','width=1030,height=500,scrollbars=yes,menubar=yes');
    }
    else
    {
        if(eventArgs._item._attributes.getAttribute("HiddenValue") == undefined)
        {
            document.getElementById("LblPage").innerHTML = "";
        }
        else
        {
            document.getElementById("LblPage").innerHTML = eventArgs._item._attributes.getAttribute("HiddenValue");
        }
        if(eventArgs._item._attributes.getAttribute("Background") == "True")
        {
                document.getElementById("TdContainer").style.background = "url(images/acgrh_background.jpg) no-repeat";
        }
        else
        {
            document.getElementById("TdContainer").style.background = ""
       }
    }
}

function ShowText(Obj,Id,ShowBackground)
{
    if(ShowBackground=="True")
    {
        document.getElementById("TdContainer").style.background = "url(images/acgrh_background.jpg) no-repeat";
    }
    else
    {
        document.getElementById("TdContainer").style.background = ""
    }
    
    if(Id != undefined && Id != "")
    {
        document.getElementById("LblPage").innerHTML = document.getElementById("HideNote" + Id).value;
    }
    else
    {
        document.getElementById("LblPage").innerHTML = Obj.getAttribute("HiddenValue");
    }
}
    
function AfficheOublie()
{
    document.getElementById("TrOublie1").style.display="block";
    document.getElementById("TrOublie2").style.display="block";
}

function Disable(Obj)
{
    Obj.disabled=true;
}
function LoginMembre() {
    document.formPassword.hfdLogin.value = document.getElementById("TxtLogin").value;
    document.formPassword.hfdPassword.value = document.getElementById("TxtPass").value;
    document.formPassword.hfdAction.value = '1';
    document.formPassword.submit();
}
function EnvoieCourriel() {
    document.formPassword.hfdEmail.value = document.getElementById("TxtEmail").value;
    document.formPassword.hfdAction.value = '2';
    document.formPassword.submit();
}
function ModifierCompte() {
    document.location = 'inscription.aspx?first=false&IdC='+document.getElementById("HideIdClnt").value;
}
function EnvoiRecherche() {
    document.formPassword.hfdRecherche.value = document.getElementById("TxtRecherche").value;
    document.formPassword.hfdAction.value = '3';
    document.formPassword.submit();
}
