function setCookie() { document.cookie = 'viewsource_cookie=foo'; }