// JavaScript Documentvar domain = 'takigen.co.jp';function writeCookie() { var formElmt = document.getElementById('scform'); var name = 'googleval'; var value = formElmt["set1"].value; setCookie(name, value, domain, '/');} function getCookie(name) { if (!name || !document.cookie) return; var cookies = document.cookie.split("; "); for (var i=0; i<cookies.length; i++) {  var str = cookies[i].split("=");  if (str[0] != name) continue;  return unescape(str[1]); } return;}function setCookie(name, value, domain, path, expires, secure) { if (!name) return; var str = name + "=" + escape(value); if (domain) {  if (domain == 1) domain = location.hostname.replace(/^[^\.]*/, "");  str += "; domain=" + domain; } if (path) {  if (path == 1) path = location.pathname;  str += "; path=" + path; } if (expires) {  var nowtime = new Date().getTime();  expires = new Date(nowtime + (60 * 60 * 24 * 1000 * expires));  expires = expires.toGMTString();  str += "; expires=" + expires; } if (secure && location.protocol == "https:") {  str += "; secure"; } document.cookie = str;}