﻿var AxDisconnect= {
	delay: 200,
	prepare: function() { 
		InputVar = new Array();
	},
	call: proxies.AjaxFunc.LogOut,
	finish: function (p) 
	{ 
	    if(p == "DECO")
	        window.location.href= "/"
	    else
	        alert("Une erreur est survenue lors de la tentative de déconnexion.");
	},
	onException: ajax.alertException
}

function Disconnect()
{
    if (confirm("Etes vous sur de vouloir vous déconnecter ?")) {
        SoapMethod = "POST";
	    ajax.Start(AxDisconnect);
        }
}



function ShowContact(val)
{
    
    if(val == 0)
    {
        document.getElementById("FormContact").style.display="";
        document.getElementById("FormContact2").style.display="";
    }
        
    else if(val == 1)
         document.getElementById("FormContact").style.display="inline";
         
    else if(val == 2)
        document.getElementById("FormContact2").style.display="inline";
}

