/*アクセス解析用jsファイルver2.0 2006/04/10 コンバージョンレート機能追加 2006/04/11 SSLに対応 by KazumaNishihata ■使い方 acc_ses_regist acc_analisis 内のショップIDをクライアント様のファイル名に変更してください。 list.phpとdetail.phpにはシステムでアクセス解析を自動出力しているので なにも記述しなくて結構です。 ------------------------------------------------------------*/ function encodeURL(str) { var character = ''; var unicode = ''; var string = ''; var i = 0; for (i = 0; i < str.length; i++) { character = str.charAt(i); unicode = str.charCodeAt(i); if (character == ' ') { string += '+'; } else { if (unicode == 0x2a || unicode == 0x2d || unicode == 0x2e || unicode == 0x5f || ((unicode >= 0x30) && (unicode <= 0x39)) || ((unicode >= 0x41) && (unicode <= 0x5a)) || ((unicode >= 0x61) && (unicode <= 0x7a))) { string = string + character; } else { if ((unicode >= 0x0) && (unicode <= 0x7f)) { character = '0' + unicode.toString(16); string += '%' + character.substr(character.length - 2); } else if (unicode > 0x1fffff) { string += '%' + (oxf0 + ((unicode & 0x1c0000) >> 18)).toString(16); string += '%' + (0x80 + ((unicode & 0x3f000) >> 12)).toString(16); string += '%' + (0x80 + ((unicode & 0xfc0) >> 6)).toString(16); string += '%' + (0x80 + (unicode & 0x3f)).toString(16); } else if (unicode > 0x7ff) { string += '%' + (0xe0 + ((unicode & 0xf000) >> 12)).toString(16); string += '%' + (0x80 + ((unicode & 0xfc0) >> 6)).toString(16); string += '%' + (0x80 + (unicode & 0x3f)).toString(16); } else { string += '%' + (0xc0 + ((unicode & 0x7c0) >> 6)).toString(16); string += '%' + (0x80 + (unicode & 0x3f)).toString(16); } } } } return string; } function acc_analisis(title){ var temp; var ref; ref = window.document.referrer.replace(/&/g,"::"); var tmp = new RegExp(location.hostname); if( ref.match(tmp) ){ ref = '--'; } temp = encodeURL(title); document.write(""); } function acc_ses_regist(mode){ var mode; var ref; ref = window.document.referrer; var tmp = new RegExp(location.hostname); if( ref.match(tmp) ){ ref = '--'; } ref = ref.replace(/&/g,"::"); document.write(""); } function chengeKeyWord(str){ document.cathand_search.search.value=str; document.cathand_search.submit(); } acc_ses_regist('')