   	//=========================================	
   	// refresh and reload this page
   	//=========================================	
	function refresh(page)
	{
		window.location.replace(page);
	
	}
		
    //=========================================	
	// detect if cookies are being blocked: set, then check.
   	//=========================================	
   	function IsCookiesAllowed(document){
		var x_cookieName = "xyzzy"; // unique
		var x_domain  = ".autodesk.com"; // set to whatever domain you want to test, with the standard provisos
 		
		var x_expires = new Date(); x_expires.setFullYear(x_expires.getFullYear()+1); // testing persistent cookies
		xDeleteCookie(document, x_cookieName); // don't get false positive
  	//alert(document);
		
		// add path if you want to. drop expires for session cookie. drop domain for default domain test.
		document.cookie = x_cookieName + "=test; expires=" + x_expires.toGMTString();
	
		// now look for it.
		var x_cookieString = document.cookie || "";
		var x_cookies = x_cookieString.split(/\s*;\s*/);
		var x_found = 0;
		//alert(x_cookies);
		for (var i in x_cookies) {
			var cookie = x_cookies[i];
			var dough = cookie.split(/\s*=\s*/);
			//alert("dough: " + dough);
			if (dough[0] == x_cookieName) { x_found = 1; break; }
		}
		//alert(x_found);
	
		// ensure it's gone
		xDeleteCookie(document, x_cookieName);
		
		// do whatever you want with x_found bool
		if (x_found == 1) {
			window.cookies
			return true;
		} else {
			return false;
		}
	}
	
	function xDeleteCookie(document, x_cookieName) {
		var oldDate = new Date(1970, 1, 1);
		document.cookie = x_cookieName + "=0; expires=" + oldDate.toGMTString();
		//alert("after delete: " + document.cookie);
	}  
	
	