function PasswordReminder (intPasswordRemainningDays, strUrl, intNoticePeriod)
{
	var objCookie = new mrtcCookie ();
	var strCookieName = "HasReminded";
	var blnChangePassword;
	var strMessage;
	
	if (objCookie.Read (strCookieName) == null)
	{
		objCookie.Save (strCookieName, true, null);
		if (intPasswordRemainningDays <= intNoticePeriod)
		{
			switch (intPasswordRemainningDays)
			{
				case 0:
					strMessage = "Your password will be expired by today.";
					break;
				default:
					strMessage = "Your password will be expired within " + intPasswordRemainningDays + " days.";
					break;
			}
			blnChangePassword = confirm (strMessage + "\nTo change your password, click OK, or click CANCEL to continue.");
			if (blnChangePassword)
			{
				self.location.href = strUrl;
			}
		}
	}
}