var quoteMark = unescape( '%22' );// ********************Cookie Routines **********************function setCookie (cookieName, cookieValue, expires, path, domain, secure) {  document.cookie =     escape(cookieName) + '=' + escape(cookieValue)     + (expires ? '; EXPIRES=' + expires.toGMTString() : '')    + (path ? '; PATH=' + path : '')    + (domain ? '; DOMAIN=' + domain : '')    + (secure ? '; SECURE' : '');}function getCookie (cookieName) {  var cookieValue = null;  var posName = document.cookie.indexOf(escape(cookieName) + '=');  if (posName != -1) {    var posValue = posName + (escape(cookieName) + '=').length;    var endPos = document.cookie.indexOf(';', posValue);    if (endPos != -1)      cookieValue = unescape(document.cookie.substring(posValue, endPos));    else      cookieValue = unescape(document.cookie.substring(posValue));  }  return cookieValue;}// ***************** End of Cookie Routines *****************function grantAccess() {var now = new Date();var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);var nextyear = new Date(now.getTime() + 1000 * 60 * 60 * 24 * 365);var tomorrow = new Date(now.getTime() + 1000 * 60 * 60 * 24);var theCookieName = "infandibulus"setCookie(theCookieName, 'fdircookie', tomorrow);	} // grantAccessfunction checkString(InString,subString,backtrack)// check for subString// if backtrack = false, returns -1 if not found, and left-most location in string if found// if backtrack = true, returns -1 if not found, and right-most location in string if found// note that location is to the left of the substring in both cases{var found = -1;var theString = InString;var Length = theString.length;var symbLength = subString.length;for (var i = Length- symbLength; i >-1; i--)	{		TempChar=theString.substring (i, i+ symbLength);	if (TempChar == subString) 			{			found = i;			if (backtrack) i = -1			}	} // ireturn(found);} // checkfunction hideContent(d) {document.getElementById(d).style.visibility = "hidden";}function showContent(d) {document.getElementById(d).style.visibility = "visible";}function goTo(place) {if (place == "calc") {this.window.location = '../tccalcp.html'}else if (place == "finite") {this.window.location = '../tcfinitep.html'}}