//index.htm(スタート画面) function yoyaku(wkobj,wkvalue){ var wklink = ''; //リンクロックがかかっていたら、Cookieが使えないということなので、リンクさせない。 if (wkvalue != '' && document.links[wkobj].disabled != true){ //リンクロック for (cnt = 0; cnt < document.links.length; cnt++){ document.links[cnt].disabled = true; } //ウィンドウオープン if (wkvalue == 'main'){ wklink = 'logon.asp?LINK=showmenu'; } else { wklink = wkvalue + '.asp'; } window.open(wklink,'SisetuReserveIac','location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,resizable=yes'); //リンクロック解除 for (cnt = 0; cnt < document.links.length; cnt++){ document.links[cnt].disabled = false; } } return; } //Cookieが使えない場合に飛ばすページ //var no_cookie_addr = 'test.htm'; function CookieCheck(){ //Macintoshは除く if(navigator.userAgent.indexOf("Mac")==-1){ var check = 'access'+ new Date(); document.cookie = check; //Cookieが空 or 指定した文字列が設定されていない場合 if((document.cookie == '') || (document.cookie.indexOf(check) == -1)){ //Cookieが使えない場合に他のページに飛ばす //window.location.href = no_cookie_addr; //リンクロック if(navigator.appName.charAt(0) == 'N'){ if (typeof(window.document.links) != 'undefined'){ for (cnt = 0; cnt < window.document.links.length; cnt++){ document.links[cnt].disabled = true; } } } else{ if (typeof(window.document) != 'unknown'){ if (typeof(window.document.links) != 'undefined'){ for (cnt = 0; cnt < window.document.links.length; cnt++){ document.links[cnt].disabled = true; } } } } window.alert('ブラウザのセキュリティレベルを確認してください。'); } } } //Cookie使用可不可チェック window.onload = CookieCheck; //ステータスバークリア setInterval('window.status="";',100);