function WriteJavaScriptDetectionCookie (){
	/*This function uses JavaScript to write a cookie*/
	/*The existence of this cookie implies that JavaScript is on */
	/*The absence of this cookie implies that either JavaScript is off or cookies are off*/
	/*Cookies exist for an entire session*/
	/*If you have JS on and turn it off, the cookie will remain and it will appear like JS is on */
	/*If you have JS off and turn it on, everything will work fine*/
	var sCookieValueBefore;
	var sCookieValueAfter;
	sCookieValueBefore = getCookie("JavaScriptOn");
	/*document.write ("CookieValueBefore : |" + sCookieValueBefore+ "|");*/
	 /*Check for a missing Javascript cookie.  This should only happen on first page */
	if (sCookieValueBefore == null) {
		/*document.write ("No JS Cookie Found..writing cookie");*/
		setCookie("JavaScriptOn", "TRUE");
		sCookieValueAfter = getCookie("JavaScriptOn");
		/*Are cookies enabled?.  If the cookie has not changed, then cookies are disabled*/
		if (sCookieValueBefore != sCookieValueAfter) {
			window.location.reload(); /*This line causes problems when Javascript is on but cookies are off*/			
		}
	}
	
	return true;
}

