function getCookie(name)

{

    var c = document.cookie;

    var index = c.indexOf(name + "=");

    if (index == -1) return null;

    index = c.indexOf("=", index) + 1;

    var endstr = c.indexOf(";", index);

    if (endstr == -1) endstr = c.length;

    return unescape(c.substring(index, endstr));

}



if( getCookie("Auth") != null )

{

  document.loginImage.src="../img/headerLogout.jpg";

}