//login / logout scripts
// Club Dependent Constant Definitions
var DEFAULT_CLUB_HOME_URL = "http://www.aaaminneapolis.com/";
var LOGIN_URL = "/scripts/WebObjects.dll/AAAOnline?association=aaa&club=057&page=ExternalSignin&returnpoint=";
var LOGOUT_URL = "/scripts/WebObjects.dll/AAAOnline?association=aaa&club=057&page=signout";
var RETURN_POINT_URL = "http%3A%2F%2F" + document.domain + "%2Fscripts%2FWebObjects.dll%2FAAAOnline%3Fassociation%3Daaa%26club%3D057%26page%3DClubConfig68";
 
function SetAAACookie(cookieName,cookieValue,nDays,path)
{
                path = path ? path : "/"
                var today = new Date();
                var expire = new Date();
                nDays = nDays ? nDays : 1;
                expire.setTime(today.getTime() + 3600000*24*nDays);
                document.cookie = cookieName+"="+escape(cookieValue)
                                                                                + ";expires="+expire.toGMTString()+";path="+path;
}
function ReadAAACookie(cookieName)
{
               var theCookie=""+document.cookie;
                var ind=theCookie.indexOf(cookieName);
               if (ind==-1 || cookieName=="") return "";
                 var ind1=theCookie.indexOf(';',ind);
                if (ind1==-1) ind1=theCookie.length;
                 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}


