function bodyload(){
    var ContactID ='';
    if(readCookie('ContactID')!=null){
        ContactID = readCookie('ContactID'); 
        document.getElementById('ClientsBgNew').style.display = "None";
        document.getElementById('ClientsLogoutBgNew').style.display = "block";               
    }
}

function readCookie(name) {
            var nameEQ = name + "=";
            //alert(document.cookie);
            var ca = document.cookie.split(';');
            //alert(document.cookie);
            //alert(ca);
            for(var i=0;i < ca.length;i++) {
                var c = ca[i];
                while (c.charAt(0)==' ') c = c.substring(1,c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
            }
            return null;
        }
