// JavaScript Document

function GetCookieValue(name)
{
    var allcookies = document.cookie;
    var value = "";
    var pos = allcookies.indexOf(name+"=");
    if (pos != -1) 
    {
        var start = pos + name.length+1;
        var end = allcookies.indexOf(";", start);
        if (end == -1) 
        {
            end = allcookies.length;
        }    
        value = allcookies.substring(start, end);
        value = unescape(value);            
    }
    return value;        
}


//retrieves the user's unique customer code from the login cookie.
//if returns empty string, means user is not logged in
var customerCode = GetCookieValue("memberid");




// hide or display the login txt
//var lou
