function linkLineDel(){a=document.getElementsByTagName("a");for(i=0;i<a.length;i++){a[i].onfocus=function(){this.blur()}}}$(function(){$("a[href^=#]").click(function(){var b=$(this.hash);var c=$(b).offset().top;$("html,body").animate({scrollTop:c},1000);return false})});function lnSetSelect(name1,name2,id,val){sele1=document.form1[name1];sele2=document.form1[name2];lists=eval("lists"+id);vals=eval("vals"+id);if(sele1&&sele2){index=sele1.selectedIndex;count=sele2.options.length;for(i=count;i>=0;i--){sele2.options[i]=null}len=lists[index].length;for(i=0;i<len;i++){sele2.options[i]=new Option(lists[index][i],vals[index][i]);if(val!=""&&vals[index][i]==val){sele2.options[i].selected=true}}}}var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-1527526-5"]);_gaq.push(["_trackPageview"]);(function(){var c=document.createElement("script");c.type="text/javascript";c.async=true;c.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(c,b)})();var preLoadFlag="false";function preLoadImg(b){arrImgList=new Array();arrPreLoad=new Array();for(i in arrImgList){arrPreLoad[i]=new Image();arrPreLoad[i].src=arrImgList[i]}preLoadFlag="true"}function chgImg(c,b){if(preLoadFlag=="true"){document.images[b].src=c}}function chgImgImageSubmit(c,b){b.src=c}function naviStyleChange(d,b,c){document.getElementById(d).style.backgroundColor=b}function win01(b,c,f,d){var e;e=window.open(b,c,"width="+f+",height="+d+",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no");e.focus()}function win02(b,c,f,d){var e;e=window.open(b,c,"width="+f+",height="+d+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");e.focus()}function win03(b,c,f,d){var e;e=window.open(b,c,"width="+f+",height="+d+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no");e.focus()}function winSubmit(b,e,c,f,d){WIN=window.open(b,c,"width="+f+",height="+d+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no");document.forms[e].target=c;WIN.focus()}function ChangeParent(){window.opener.location.href="../contact/index.php"}function CloseChild(){window.close()}function fnIsopener(){var b=navigator.userAgent;if(!!window.opener){if(b.indexOf("MSIE 4")!=-1&&b.indexOf("Win")!=-1){return !window.opener.closed}else{return typeof window.opener.document=="object"}}else{return false}}function fnCallAddress(f,e,d,c,b){zip1=document.form1[e].value;zip2=document.form1[d].value;if(zip1.length==3&&zip2.length==4){url=f+"?zip1="+zip1+"&zip2="+zip2+"&input1="+c+"&input2="+b;window.open(url,"nomenu","width=500,height=350,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no")}else{alert("郵便番号を正しく入力して下さい。")}}function fnPutAddress(c,b){if(fnIsopener()){if(document.form1.state.value!=""){state_id=document.form1.state.value;town=document.form1.city.value+document.form1.town.value;window.opener.document.form1[c].selectedIndex=state_id;window.opener.document.form1[b].value=town}}else{window.close()}}function fnOpenNoMenu(b){window.open(b,"nomenu","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no")}function fnOpenWindow(c,d,e,b){window.open(c,d,"width="+e+",height="+b+",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no")}function fnSetFocus(b){if(document.form1[b]){document.form1[b].focus()}}function fnSetSelect(c,b,d){sele1=document.form1[c];sele2=document.form1[b];if(sele1&&sele2){index=sele1.selectedIndex;count=sele2.options.length;for(i=count;i>=0;i--){sele2.options[i]=null}len=lists[index].length;for(i=0;i<len;i++){sele2.options[i]=new Option(lists[index][i],vals[index][i]);if(d!=""&&vals[index][i]==d){sele2.options[i].selected=true}}}}function fnCancelEnter(){if(gCssUA.indexOf("WIN")!=-1&&gCssUA.indexOf("MSIE")!=-1){if(window.event.keyCode==13){return false}}return true}function fnModeSubmit(d,c,b){switch(d){case"delete_category":if(!window.confirm("選択したカテゴリとカテゴリ内のすべてのカテゴリを削除します")){return}break;case"delete":if(!window.confirm("一度削除したデータは、元に戻せません。\n削除しても宜しいですか？")){return}break;case"confirm":if(!window.confirm("登録しても宜しいですか")){return}break;case"delete_all":if(!window.confirm("検索結果をすべて削除しても宜しいですか")){return}break;default:break}document.form1.mode.value=d;if(c!=""&&b!=""){document.form1[c].value=b}document.form1.submit()}function fnFormModeSubmit(b,e,d,c){switch(e){case"delete":if(!window.confirm("一度削除したデータは、元に戻せません。\n削除しても宜しいですか？")){return}break;case"confirm":if(!window.confirm("登録しても宜しいですか")){return}break;case"regist":if(!window.confirm("登録しても宜しいですか")){return}break;default:break}document.forms[b]["mode"].value=e;if(d!=""&&c!=""){document.forms[b][d].value=c}document.forms[b].submit()}function fnSetFormSubmit(c,b,d){document.forms[c][b].value=d;document.forms[c].submit();return false}function fnSetFormVal(c,b,d){document.forms[c][b].value=d}function fnChangeAction(b){document.form1.action=b}function fnNaviPage(b){document.form1.pageno.value=b;document.form1.submit()}function fnSearchPageNavi(b){document.form1.pageno.value=b;document.form1.mode.value="search";document.form1.submit()}function fnSubmit(){document.form1.submit()}function fnCheckInputPoint(){if(document.form1.point_check){list=new Array("use_point");if(!document.form1.point_check[0].checked){color="#dddddd";flag=true}else{color="";flag=false}len=list.length;for(i=0;i<len;i++){if(document.form1[list[i]]){document.form1[list[i]].disabled=flag;document.form1[list[i]].style.backgroundColor=color}}}}function fnCheckInputDeliv(){if(!document.form1){return}if(document.form1.deliv_check){list=new Array("deliv_name01","deliv_name02","deliv_kana01","deliv_kana02","deliv_pref","deliv_zip01","deliv_zip02","deliv_addr01","deliv_addr02","deliv_tel01","deliv_tel02","deliv_tel03");if(!document.form1.deliv_check.checked){fnChangeDisabled(list,"#dddddd")}else{fnChangeDisabled(list,"")}}}function fnCheckInputMember(){if(document.form1.member_check){list=new Array("password","password_confirm","reminder","reminder_answer");if(!document.form1.member_check.checked){fnChangeDisabled(list,"#dddddd")}else{fnChangeDisabled(list,"")}}}var g_savecolor=new Array();function fnChangeDisabled(c,b){len=c.length;for(i=0;i<len;i++){if(document.form1[c[i]]){if(b==""){document.form1[c[i]].disabled=false;document.form1[c[i]].style.backgroundColor=g_savecolor[c[i]]}else{document.form1[c[i]].disabled=true;g_savecolor[c[i]]=document.form1[c[i]].style.backgroundColor;document.form1[c[i]].style.backgroundColor=b}}}}function fnCheckLogin(f){var e=new Array();if(f=="login_mypage"){e[0]="mypage_login_email";e[1]="mypage_login_pass"}else{e[0]="login_email";e[1]="login_pass"}var b=e.length;var c=false;var d=0;for(d=0;d<b;d++){if(document.forms[f][e[d]].value==""){c=true;break}}if(c==true){alert("メールアドレス/パスワードを入力してください。");return false}}function fnPassTime(){end_time=new Date();time=end_time.getTime()-start_time.getTime();alert((time/1000))}start_time=new Date();function fnUpdateParent(b){if(fnIsopener()){window.opener.location.href=b}else{window.close()}}function fnKeySubmit(c,b){if(c!=""&&b!=""){document.form1[c].value=b}document.form1.submit()}function fnCharCount(c,d,b){document.forms[c][b].value=document.forms[c][d].value.length}function ChangeSize(c,f,d,b,e){if(f.rows<=b){f.rows=d;c.value="小さくする";e.value=d}else{f.rows=b;c.value="大きくする";e.value=b}};
