// *****************************// * Popup What's New Function *// *****************************var siteUpdatedOn = new Date("18 Apr 2003")var informWhenSiteUpdated = getAlertCookie("OutpostGuideInformWhenSiteUpdated");var checkStatus = getCheckedCookie("OutpostGuideAlertCheckboxStatus")	if (informWhenSiteUpdated != null){	informWhenSiteUpdated = new Date(informWhenSiteUpdated);	if (informWhenSiteUpdated < siteUpdatedOn && checkStatus == "showPopup")	{		alert("The Guide has been updated since your last visit!\nSee the 'What's New' page in the 'About this guide' section for more details.");	}}var nowDate = siteUpdatedOnsetAlertCookie("OutpostGuideInformWhenSiteUpdated", nowDate.toGMTString(),365)// Checked Status Cookie functions.function getCheckedCookie(checkedCookieName){	var checkedCookieValue = document.cookie;	var cookieStartsAt = checkedCookieValue.indexOf(" " + checkedCookieName + "=");		if (cookieStartsAt == -1)	{		cookieStartsAt = checkedCookieValue.indexOf(checkedCookieName + "=");	}		if (cookieStartsAt == -1)	{		checkedCookieValue = null;	}	else	{		cookieStartsAt = checkedCookieValue.indexOf("=", cookieStartsAt) +1;		var cookieEndsAt = checkedCookieValue.indexOf(";", cookieStartsAt);		if (cookieEndsAt == -1)		{			cookieEndsAt = checkedCookieValue.length;		}		checkedCookieValue = checkedCookieValue.substring(cookieStartsAt,cookieEndsAt);	}	return checkedCookieValue;}function setCheckedCookie(checkedCookieName, checkedCookieValue, checkedCookieExpires){	if (checkedCookieExpires)	{		var date = new Date();		date.setTime(date.getTime()+(checkedCookieExpires*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}	else expires = "";	    document.cookie = checkedCookieName + "=" + checkedCookieValue + "; expires" + expires + "; path=/";}// Alert Popup Cookie functions.function getAlertCookie(alertCookieName){	var alertCookieValue = document.cookie;	var cookieStartsAt = alertCookieValue.indexOf(" " + alertCookieName + "=");		if (cookieStartsAt == -1)	{		cookieStartsAt = alertCookieValue.indexOf(alertCookieName + "=");	}		if (cookieStartsAt == -1)	{		alertCookieValue = null;	}	else	{		cookieStartsAt = alertCookieValue.indexOf("=", cookieStartsAt) +1;		var cookieEndsAt = alertCookieValue.indexOf(";", cookieStartsAt);		if (cookieEndsAt == -1)		{			cookieEndsAt = alertCookieValue.length;		}		alertCookieValue = alertCookieValue.substring(cookieStartsAt,cookieEndsAt);	}	return alertCookieValue;}function setAlertCookie(alertCookieName, alertCookieValue, alertCookieExpires){	if (alertCookieExpires)	{		var date = new Date();		date.setTime(date.getTime()+(alertCookieExpires*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}	else expires = "";	    document.cookie = alertCookieName + "=" + alertCookieValue + "; expires" + expires + "; path=/";}