function co (id) { click = document.getElementById(id); if (click.className == "") click.className = "out"; else click.className = ""; } var i = 0; var path = 'http://' + document.domain + '/exe/'; var css = get_cookie.call(this); if(css){change_css.call(this,path,css,i);} function write_form() { // CSSファイル名 var css_a = new Array('exe6','exe6_b'); // セレクトボックス表示 var css_n = new Array('R.E.D','BlueS'); var css = get_cookie.call(this); if(!css){css = css_a[0];} document.write(' '); document.write(''); } function change_css(path,css,i) { if(document.all) { document.all.tags('link').item(i).href = path + css + '.css'; } else if(document.getElementsByTagName) { document.getElementsByTagName('link').item(i).href = path + css + '.css'; } } function get_cookie() { var cookie = document.cookie; var css = ''; if(cookie) { var value1 = cookie.split(';'); var value2 = value1[0].split('='); css = value2[1]; } return css; } function set_cookie(css) { var cookie = 'css=' + css + ";"; cookie += 'expires=Thu,1-Jan-2030 00:00:00 GMT;'; cookie += 'path=/;'; //cookie += 'domain=act.st; secure'; document.cookie = cookie; location.reload(); }