// JavaScript Document


//Begin of js for aaa members only section

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;		
}

        var ismemberok=GetCookieValue("ismember");
		if (ismemberok != "Y")
		{

			window.location="http://www.the-aaa.org/Members_Only/logon.htm";
		}
// end of js for aaa members only section

