function Zip(){
/*
■郵便番号から住所情報の自動入力処理(zipaddrx.js Ver7.275)
The use is free of charge.// ご利用は無料です。
@demo https://zipaddr.com/
@author https://pierre-soft.com/
[htmlの定義]
*/
// 共通
this.xvr= "7.275";
this.sdome="s";
this.vers="06";
this.min="7";
this.max="7";
this.pt="1"; // 都道府県select欄 1:id, 2:名称
this.pn="1"; // 都道府県idの桁数 2:2桁
this.sl="---選択";
this.sc=""; // value
this.lin="--------";// 都道府県(Group)区切り
this.dli="-"; // 郵便番号の区切り
this.mrk="〒";
this.bgc="#009999"; //背景色
this.lnc="#ffffcc"; //文字色
this.bgm="#009999"; //背景色head
this.ovr="#00bbff"; //背景色over
this.ovc="#ffffcc"; //文字色over
this.clr="#333333";
this.fweight="";
this.design="1";// sp:通常,1:コンパクト版
this.family="ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,メイリオ,Meiryo,MS Pゴシック,sans-serif";
this.debug=""; // 1:debug-mode
this.rtrs=""; // 1:補助ガイダンス利用
this.nodb="2";
this.jsafter="";
this.advance="";
//
this.contract="TgeWyKPsMMRT";
// 郵便番号(7桁/上3)用 下4桁 都道府県 市区町村 地域 番地
this.zp ="zip"; this.zp1 ="zip1"; this.pr ="pref"; this.ci ="city"; this.ar ="area"; this.ad ="addr";
this.zp2="zip2";this.zp21="zip21";this.pr2="pref2";this.ci2="city2";this.ar2="area2";this.ad2="addr2";
this.zp3="zip3";this.zp31="zip31";this.pr3="pref3";this.ci3="city3";this.ar3="area3";this.ad3="addr3";
this.zp4="zip4";this.zp41="zip41";this.pr4="pref4";this.ci4="city4";this.ar4="area4";this.ad4="addr4";
this.zp5="zip5";this.zp51="zip51";this.pr5="pref5";this.ci5="city5";this.ar5="area5";this.ad5="addr5";
this.zp6="zip6";this.zp61="zip61";this.pr6="pref6";this.ci6="city6";this.ar6="area6";this.ad6="addr6";
// zip7, zip71, pref7, city7, addr7 // zip7~以降は上記体系で名称は固定です。
this.ary;
this.zipmax=6; // 7個以上の設置はこの値を変更して拡張します。
this.guide="@head@page@line @count@close @zipaddr"; // G-layout,NL:改行
this.com=".com/";
this.tph="https://";
this.zipaddr="zipaddr";
this.zipaddr0=this.tph+this.zipaddr+this.com;
this.zipaddr2=this.tph+this.zipaddr+"2"+this.com;
this.help=this.zipaddr0;
function Sms(){}D=new Sms;this.sel="10";this.wok="";this.left=22;this.top=18;this.pfon="12";this.phig="1.4";this.sfon="16";this.shig="1.6";this.emsg="1";this.rtrv="1";this.welcart="";this.usces="";this.wp="";this.dyna="";this.eccube="";this.basercms="";this.guideg="";this.reverse="";this.rmin="2";this.rsel="15";this.sphone="";this.opt="_____";this.focus="";this.sysid="";this.pm=new Array();this.tel=new Array();this.sei=new Array();this.mei=new Array();this.simei=new Array();this.company=new Array();this.tel[1]="tel";this.tel[2]="tel2";this.sei[1]="sei";this.sei[2]="sei2";this.mei[1]="mei";this.mei[2]="mei2";this.simei[1]="simei";this.simei[2]="simei2";this.company[1]="company";this.company[2]="company2";this.kwz="zip";this.uver="";this.xzp="";this.xzz="";this.xpr="";this.xci="";this.xar="";this.xad="";this.p=new Array();this.q=new Array();this.r=new Array();this.i=new Array();this.e=new Array();this.a=new Array();this.f=new Array();this.preftable=new Array();this.adv=new Array();this.xul=new Array();this.xuls=new Array();this.sv="0";this.ua;this.xuse=0;this.xlisten="";this.ajax="";this.bro="";this.elid="call"+this.zipaddr;this.auto=this.zipaddr+"-auto-";this.data=this.zipaddr+"-data-";this.prm=this.zipaddr+"_param";this.pru="";this.apad="";this.after="";this.woo="";this.dome="";this.mai="";this.skip="";this.msg1="**郵番の設置は最大20箇所迄です。";this.msg2="**Listen 70over, Please TEL "+this.zipaddr;this.m="";this.ut="当システムは有償版です。
無料版は"+this.zipaddr+".comへ";this.h0="ハイフンは入力不要です。";this.n="[住所自動入力]_start!";this.Chngt=[];this.Chngt['[住所自動入力]_start!']="Search start!";this.Chngt['Search start!']="Search start!";this.Chngt['〒']="";this.Chngt['閉じる']="Close";this.Chngt['先頭']="Top";this.Chngt['最終']="Last";this.Chngt['件ヒット']="_Hit!";this.lang="";this.cnt=4;this.Running=false;this.holder="";this.pef_kanah;this.pef_KANAZ;this.pef_HIRAN;this.cty_kanah;this.cty_KANAZ;this.cty_HIRAN;this._cityh;this._cityZ;this._cityN;this._addrh;this._addrZ;this._addrN;this._pref;this._city;this._area;this._kanah;this._KANAZ;this._HIRAN;}ZP=new Zip;Zip.wyz=function(){document.getElementById(ZP.xzz).value="";const x=document.getElementById(ZP.xzp);x.value="";Bas.fc(x);Zip.KKX()};Zip.zTT=function(v,y,c){if(v==1){Bas.av(y,c,Zip.nrr)}else if(v==2){Bas.av(y,c,Zip.Skz)}else if(v==3){Bas.av(y,c,Zip.yZw)}else if(v==4){Bas.av(y,c,Zip.syT)}else if(v==5){Bas.av(y,c,Zip.HpP)}else if(v==6){Bas.av(y,c,Zip.Ntw)}else if(v==7){Bas.av(y,c,Zip.RAs)}else if(v==8){Bas.av(y,c,Zip.pys)}else if(v==9){Bas.av(y,c,Zip.Ynr)}else if(v==10){Bas.av(y,c,Zip.nrr0)}else if(v==11){Bas.av(y,c,Zip.nrr1)}else if(v==12){Bas.av(y,c,Zip.RaY)}else if(v==13){Bas.av(y,c,Zip.qEZ)}else if(v==14){Bas.av(y,c,Zip.nrr4)}else if(v==15){Bas.av(y,c,Zip.nrr5)}else if(v==16){Bas.av(y,c,Zip.nrr6)}else if(v==17){Bas.av(y,c,Zip.nrr7)}else if(v==18){Bas.av(y,c,Zip.nrr8)}else if(v==19){Bas.av(y,c,Zip.nrr9)}else if(v==20){Bas.av(y,c,Zip.Wwr)}};Zip.xKX=function(){Zip.sGx(12)};Zip.rKS=function(){const p=document.getElementsByClassName("h-adr");for(let z=0;z
=1){const r=Zip.wyN(p,z);const g=r.split("|");if(g.length==2){ZP.p[u]=g[0];ZP.q[u]=g[1]}else{ZP.p[u]=g[0];ZP.q[u]=""}ZP.r[u]=Zip.yUs(p[z],"region",ZP.ary[z][2]);ZP.i[u]=Zip.yUs(p[z],"locality",ZP.ary[z][3]);ZP.e[u]=Zip.yUs(p[z],"street-address",ZP.ary[z][4]);ZP.a[u]=Zip.yUs(p[z],"extended-address",ZP.ary[z][5]);ZP.a[u]=Zip.ppS(ZP.a[u],ZP.e[u]);ZP.e[u]=Zip.ppS(ZP.e[u],ZP.i[u]);ZP.i[u]=Zip.ppS(ZP.i[u],ZP.r[u]);Zip.Vam(u)}}};Zip.qEZ=function(){Zip.kc(13)};Zip.Fcm=function(){let p='#zip_header{color:{lnc};}';p+='#zip_body{width:{wids}px; overflow:auto; padding:3px 0px 3px;}';p+='#zip_body a{color:{bgc}; text-decoration:none; white-space:nowrap; font-size:30px; display:block; position:relative; margin:5px 0; padding:0px 25px 0px 5px; border-radius:5px; background:#fff; font-weight:bold;}';p+='#zip_body a:after{display:block; content:""; position:absolute; top:50%; right:10px; width:6px; height:6px; border-top:solid 2px #093; border-right:solid 2px #093; -webkit-transform:rotate(45deg); transform:rotate(45deg);}';p+='#zip_count{color:{lnc}; white-space:nowrap; font-size:10px;}';p+='#zip_close a{color:{clr}; text-decoration:none; white-space:nowrap;}';p+='#zip_footer a{color:{clr}; text-decoration:none; white-space:nowrap; font-size:10px;}';p+='.zip_dtl{color:{bgc}; text-decoration:none; white-space:nowrap; font-size:30px; display:block; position:relative; margin:5px 0; padding:0px 25px 0px 5px; border-radius:5px; background:#fff; font-weight:bold;}';return p};Zip.zms=function(z,g){if(g==1){z.style.backgroundColor=ZP.ovr;z.style.fontSize=120+'%';z.style.color=ZP.ovc}else{z.style.backgroundColor=ZP.bgc;z.style.fontSize=100+'%';z.style.color=ZP.lnc}};Zip.gs=function(){if(typeof D.dli!=="undefined")ZP.dli=D.dli;if(typeof D.wp!=="undefined")ZP.wp=D.wp;if(typeof D.top!=="undefined")ZP.top=D.top;if(typeof D.left!=="undefined")ZP.left=D.left;if(typeof D.pfon!=="undefined")ZP.pfon=D.pfon;if(typeof D.sfon!=="undefined")ZP.sfon=D.sfon;if(typeof D.focus!=="undefined")ZP.focus=D.focus;if(typeof D.sysid!=="undefined")ZP.sysid=D.sysid;if(typeof D.holder!=="undefined")ZP.holder=D.holder;if(typeof D.dyna!=="undefined")ZP.dyna=D.dyna;if(typeof D.min!=="undefined")ZP.min=D.min;if(typeof D.usces!=="undefined")ZP.usces=D.usces};Zip.RaY=function(){Zip.kc(12)};Zip.zipac=function(f){if(ZP.nodb==""&&typeof ZP.mai!="undefined"&&ZP.mai=="1"){ZP.mai="";ZP.min="8"}if(ZP.xzp=="")return;S.Sc[S.keydb]=f;Zip.TQN(ZP.xpr);const h=Zip.Kxu(f);if(h!=""){Zip.KKX();return}if(ZP.guide.indexOf("@zipaddr",0)<=0)return;Bas.es(ZP.elid);if(ZP.nodb==""&&f.s!=0){ZP.pef_kanah=f.f;ZP.cty_kanah=f.k;ZP.pef_KANAZ=f.F;ZP.cty_KANAZ=f.K;ZP.pef_HIRAN=f.P;ZP.cty_HIRAN=f.C}if(f.s==0){}else if(S.keydt=="@"){}else if(f.zip.length==1&&ZP.rtrv!="1"&&S.keyda.length!=7){}else if(f.zip.length==1){let b=new Array();b[0]=f.zip[0].d;b[1]=f.zip[0].c;b[2]=f.zip[0].a;b[3]=f.zip[0].p;b[4]=(typeof f.zip[0].n!="undefined")?f.zip[0].n:"";b[5]=(typeof f.zip[0].u!="undefined")?f.zip[0].u:"";b[6]=(typeof f.zip[0].r!="undefined")?f.zip[0].r:"";b[7]=(typeof f.zip[0].R!="undefined")?f.zip[0].R:"";b[8]=(typeof f.zip[0].H!="undefined")?f.zip[0].H:"";b[9]=(typeof f.L!="undefined")?f.L:"";b[10]=(typeof f.A!="undefined")?f.A:"";let e=b.join('_');if(ZP.nodb!="")e=e.replace(/_+$/,"");Zip.n2(e);return}let a="";let x="";let p="";if(f.s==0){}else{let w="";if(S.lang==""||S.lang=="JP")w=Zip.t2();else w=Zip.FEw();w=Zip.puq(w);const e3=f.zip[0].d.substr(0,3);const c=f.zip[0].c;const s=f.zip[0].p;const m=w[s];a='';let u=Zip.PEz(f,w);if(ZP.opt[0]=="1")u='';x=''+u+'
';if(S.keydb.length==7)Zip.FDT(f.zip[0].d,f.zip[0].p,f.zip[0].c,"","",w)}ZP.urij="じる";let k=(typeof f.x=="undefined")?"":f.x;let z=f.m;if(f.m==""){z=(ZP.sv=="0")?"V":ZP.sv;z='@ZipAddr_'+z+ZP.xvr}let q=(typeof f.a=="undefined")?"":f.a;if(q!="")z=q;S.opt=z;const v="foo";let g=(typeof f.i=="undefined")?"":f.i;if(g==""||g=="null")g=ZP.help;ZP.ourl=g;const t=(ZP.xzz!=""&&document.getElementById(ZP.xzz)&&ZP.sphone==""&&f.s==0)?"1":"";let n=''+f.s+Zip.GRw("件ヒット")+'';if(t=="1")n+=' [クリア]';let r=Zip.FEM("閉");const y=(k=='1'||ZP.skip=="1")?"":' '+z+'';const e0=ZP.guide.replace(/NL/g,"
");let m0;if(ZP.sphone=="")m0=Zip.pCR();else m0=Zip.Fcm();m0=m0.replace(/{lnc}/g,ZP.lnc);m0=m0.replace(/{bgc}/g,ZP.bgc);m0=m0.replace(/{bgm}/g,ZP.bgm);m0=m0.replace(/{clr}/g,ZP.clr);m0=m0.replace(/{widp}/g,"270");m0=m0.replace(/{wids}/g,"270");m0=''+e0;m0=m0.replace("@head",a);m0=m0.replace("@page",p);m0=m0.replace("@line",x);m0=m0.replace("@count",n);m0=m0.replace("@close",r);m0=m0.replace("@zipaddr",y);m0=m0.replace("
","
");m0=m0.replace(/ +$/,"");if(f.s==0){m0=m0.replace("
","");m0=m0.replace(/ /g,"")}const m5=Zip.uKu();m5.innerHTML="";if(ZP.tx!="1")m5.style.display="none";Zip.hsN(m5,ZP.xzp,m0,"1")};function Zps(){this.ver="8";this.rev=".275";this.vpn="6";this.pad=0;this.aj="autozip";this.mvn="movable_zipaddr";this.zc="zip_close";this.host="PierreSoft";this.keydb="";this.keyda="";this.keydt="";this.keydu="";this.keydc=0;this.highs;this.movex="";this.movey="";this.optgrp="x";this.parm="";this.ip="";this.kyn="";this.keyc="";this.mesg2="";this.url2="";this.ino="";this.opt="@ZipAddr_";this.trc="";this.fid="";this.pfc="";this.lang="";this.Sc=[];this.uln;this.ul3;this.n}S=new Zps;Zip.suS=function(){Zip.sGx(5)};Zip.vfU=function(){Zip.yeY(1,ZP.p[1],ZP.q[1])};Zip.vfU5=function(){Zip.yeY(15,ZP.p[15],ZP.q[15])};Zip.FBN=function(r){if(Bas.sc(r)){ZP.min="5"}};Zip.nrr=function(){Zip.kc(1)};Zip.Gzt=function(r){return function(evt){r._moverun_=false;S.movex=S.movey="";r.style.backgroundColor=ZP.bgc;if(ZP.xzz!=""&&document.getElementById(ZP.xzz)){Bas.fc(document.getElementById(ZP.xzz))}else if(ZP.xzp!=""&&document.getElementById(ZP.xzp)){Bas.fc(document.getElementById(ZP.xzp))}}};Zip.uKu=function(){const n=Bas.er(S.aj,"");n.style.position='absolute';n.style.display="block";n.style.zIndex="999999";const v=(ZP.sphone!="")?ZP.sfon:ZP.pfon;const r=(ZP.sphone!="")?ZP.shig:ZP.phig;S.r=v;n.style.fontFamily=ZP.family;n.style.fontSize=v+'px';n.style.lineHeight=r;n.style.padding="5px 8px";n.style.borderRadius="8px";n.style.backgroundColor=ZP.bgc;n.style.textAlign='left';if(ZP.fweight!=""){n.style.fontWeight=ZP.fweight}return n};Zip.SPQ=function(x,d){let n="";if(x!=""&&document.getElementById(x))n+=document.getElementById(x).value;if(d!=""&&document.getElementById(d))n+=document.getElementById(d).value;return n};Zip.taV=function(){Zip.yeY(5,ZP.p[5],ZP.q[5])};Zip.KKX=function(){Bas.es(S.aj);ZP.xzp="";ZP.xzz="";ZP.xpr="";ZP.xci="";ZP.xar="";ZP.xad="";if(ZP.sphone==""){if(typeof S.tgt!="undefined"&&typeof S.emm!="undefined"){let u=S.tgt;let m=S.emm;u.removeEventListener("mousedown",Zip.tuZ(m),false);u.removeEventListener("mouseup",Zip.Gzt(m),false);u.removeEventListener("mousemove",Zip.yky(m),false)}}};Zip.TQN=function(t){const n=Zip.UqV(Zip.t2());const g=Zip.FEw();ZP.pt="1";ZP.pn="1";S.pfc="";S.optgrp="x";ZP.preftable=new Array();if(t!=""&&document.getElementById(t)){const f=document.getElementById(t);if(f.tagName.toLowerCase()=="select"){let q=0;let p=0;for(let c=0;c0)?r.substr(0,1):"";if("0"<=y&&y<="9"){w[r]=e[1]}}return w};Zip.qMr=function(){};Zip.zzR=function(y){if(ZP.focus!=""){let p=ZP.focus;if(ZP.eccube=="1"){const e=ZP.xad.split("_");if(e.length==2)p=e[0]+"_"+e[1].replace("addr01","addr02")}Bas.gi(p);if(document.getElementById(p))Bas.fc(document.getElementById(p))}else Bas.fc(y)};Zip.hsN=function(b,u,c,y){if(ZP.xzp==""){return}const a=document.getElementById(u);a.style.position="relative";a.noWrap="true";let g;let k;if(S.movex==""){g=Bas.ol(a)+ZP.left;k=Bas.ot(a,u)+ZP.top+parseInt(S.pad)-1;if(S.keydu=="b"){S.keydc--;k+=S.keydc*parseInt(S.highs)}else if(S.keydu=="a"){S.keydc++;k+=S.keydc*parseInt(S.highs)}}else{g=S.movex;k=S.movey}if(ZP.sphone!=""){g-=30}b.style.left=g+"px";b.style.top=k+"px";const n=Bas.er(S.mvn,b);n.style.cursor='move';n.innerHTML=c;b._moverun_=false;if(ZP.sphone==""){S.tgt=n;S.emm=b}ZP.click="";let h=(ZP.sphone=="")?'click':'touchend';n.addEventListener(h,(eee)=>{let x=eee.target.outerHTML;if(x.match(/閉じる/)){Zip.KKX();return false}else if(x.match(/Close/)){Zip.KKX();return false}else if(x.match(/クリア/)){Zip.wyz();return false}else if(x.match(/@Zip/)){Zip.zKW();return false}else if(ZP.sphone=="")Zip.YGp(x);else if(x==ZP.click)Zip.YGp(x);else ZP.click=x;setTimeout(function(){ZP.click=""},500)})};Zip.pCR=function(){let w='#zip_header{color:{lnc}; background:{bgm};}';w+='#zip_body{width:{widp}px; overflow:auto; padding:3px 0px 10px;}';w+='#zip_body a,#zip_count a{color:{lnc}; text-decoration:none; white-space:nowrap;}';w+='#zip_count{color:{lnc}; background:{bgm};}';w+='#zip_close a,#zip_footer a{color:{clr}; text-decoration:none; white-space:nowrap;}';w+='#zip_clear,.zip_dtl{color:{lnc};}';return w};Zip.qSM=function(){Zip.sGx(19)};Zip.qkv=function(){Zip.sGx(16)};Zip.Uzz=function(s){if(ZP.ajax==""){ZP.ajax="1";Zip.FVr()}if(ZP.ajax=="1"){const f=s.id;for(let e=1;e<=ZP.zipmax;e++){if(ZP.p[e]==f&&document.getElementById(f)){Zip.kc(e);break}}}};Zip.GfW=function(){Zip.r9(6)};Zip.pys=function(){Zip.kc(8)};Zip.Rhu=function(){Zip.sGx(1)};Zip.Kxu=function(s){let p="";if(s.zip.length!=1)return p;const b=Zip.puq(Zip.t2());const e=s.zip[0].p;const x=s.zip[0].c;let z=s.zip[0].a;const v=s.zip[0].n;if(v==""){}else if(v=="@")z="";else z=v;const r=b[e]+x+z;let y=(ZP.xpr!=""&&document.getElementById(ZP.xpr))?document.getElementById(ZP.xpr).value:"";const k=(ZP.xci!=""&&document.getElementById(ZP.xci))?document.getElementById(ZP.xci).value:"";const c=(ZP.xar!=""&&document.getElementById(ZP.xar))?document.getElementById(ZP.xar).value:"";const w=(ZP.xad!=""&&document.getElementById(ZP.xad))?document.getElementById(ZP.xad).value:"";if(y!=""){let d=y.match(/\d/g);if(!d)d="";if(d!=""){d=Number(d.join(""));for(let m=0;m=4){return Zip.n2(s)}}}};Zip.clk=function(w){ZP.min="7";Zip.kc(w);ZP.min="8"};Zip.Rhu0=function(){Zip.sGx(10)};Zip.fHY=function(){Zip.sGx(4)};Zip.qWP=function(){let x="";const n=ZP.sysid.split("_");for(let u=0;u';n+='';n+=p+'';const h=Zip.ZTn();h.innerHTML=n};Zip._Sub=function(t,h){if(ZP.hdb==""&&typeof ZP.mai!="undefined")ZP.mai="1";if(Bas.sc(t)){ZP.min="7";Zip.kc(h);ZP.min="8"}};Zip.UUR=function(){let g="";if((ZP.ua.indexOf('iphone')>0&&ZP.ua.indexOf('ipad')==-1)||ZP.ua.indexOf('android')>0)g="1";if(typeof fnCallAddress==="function"||window.eccube!=undefined){ZP.eccube="1";if(ZP.sphone==""&&g=="1")ZP.sphone="2"}else if(typeof uscesL10n!="undefined"&&document.getElementById("zipcode")){ZP.welcart="1";if(ZP.sphone==""&&g=="1")ZP.sphone="2"}else if(ZP.sphone!=""){}else if(g=="1")ZP.sphone="2"};Zip.nrr9=function(){Zip.kc(19)};Zip.nrr4=function(){Zip.kc(14)};Zip.wYU=function(){let q="Start-"+ZP.zipaddr+"_Ver"+ZP.xvr+"\n";q+="EC-CUBE: "+ZP.eccube+"\n";q+="Welcart: "+ZP.welcart+"\n";q+="SmartPhone:"+ZP.sphone+"\n";q+="Reverse:"+ZP.reverse+"\n";q+="zipmax:"+ZP.zipmax+"\n";q+="sv:"+ZP.sv+"\n";alert(q)};Zip.sGx=function(e){if(Bas.cg(ZP.h0)=="")return;S.lang=ZP.lang;if(S.lang==""||S.lang=="JP"){ZP.xzp=ZP.p[e];ZP.xzz=ZP.q[e];let y=document.getElementById(ZP.xzp).value;if(ZP.xzz!=""&&document.getElementById(ZP.xzz))y+=document.getElementById(ZP.xzz).value;const x=Bas.cg(y);if(x.length==0){Zip.tQY(ZP.h0,"onmouseout")}}};Zip.ZYT=function(){Zip.r9(7)};Zip.yx=function(a){let b;let z;if(ZP.xuls[a]==ZP.xul[a]){b='https:';z=ZP.xuls[a]}else{b=location.protocol;z=b=="https:"?ZP.xuls[a]:ZP.xul[a]}z=b+'/'+'/'+Bas.ps(decodeURI(z));return z};Zip.kc=function(s){S.ino=s;ZP.xzp=ZP.p[s];ZP.xzz=ZP.q[s];ZP.xpr=ZP.r[s];ZP.xci=ZP.i[s];ZP.xar=ZP.e[s];ZP.xad=ZP.a[s];if(typeof ZP.f[s]!="undefined")ZP.focus=ZP.f[s];S.lang=ZP.lang;if(ZP.lang=="EN"){S.lang=ZP.lang}else if(ZP.welcart=="1"){if(ZP.xzp=="memberzipcode"||ZP.xzp=="customerzipcode"||ZP.xzp=="deliveryzipcode"){const a=document.getElementById(ZP.xad).value;if(a!=""){Zip.KKX();return}}const y=ZP.xpr.replace(/pref/g,'country');if(y!=""&&document.getElementById(y)){const u=document.getElementById(y).value;if(u!="JP")return}}else if(ZP.sysid=="WOOCOMMERCE"&&(ZP.xzp=="billing_postcode"||ZP.xzp=="shipping_postcode")){const r=ZP.xzp.replace(/postcode/g,'country');if(r!=""&&document.getElementById(r)){const h=document.getElementById(r).value;if(h!="JP")return}}if(S.lang=="EN"||S.lang=="en"){}else if(S.lang!=""&&S.lang!="JP")return;const n=document.getElementById(ZP.xzp);let v=n.value;if(ZP.xzz!=""&&document.getElementById(ZP.xzz))v+=document.getElementById(ZP.xzz).value;const b=Bas.cg(v);if(typeof Zip.zipaddr_debug==="function")Zip.zipaddr_debug();if(b=="!!!")Zip.nvR(b);if(isNaN(b))return;const z=b.length;if(typeof ZP.nodb=="undefined"||(ZP.nodb==""&&ZP.rtrs!="1"))ZP.nodb="2";if(ZP.nodb!=""){if(z==1){Zip.KKX();return}else if(z==3){Zip.whv(b);return}else if(z!=ZP.max)return}S.pad=Zip.RRZ(n,"padding-top");S.ver="8";if(ZP.rtrs=="1"&&ZP.min<"7"&&(z==0||z==1)){S.uln=b;ZP.n=Zip.GRw(ZP.n);Zip.datac(ZP)}else if(ZP.min<=z&&z<=ZP.max)Zip.whv(b);else if(ZP.nodb==""&&ZP.rtrs=="1"&&ZP.min<"7"&&2<=z&&z<=4){S.ver="x";Zip.whv(b)}else Zip.KKX()};Zip.nrr6=function(){Zip.kc(16)};Zip.PhT=function(){Zip.r9(16)};Zip.Rhu3=function(){Zip.sGx(13)};Zip.UxS=function(){Zip.gEq(1,ZP.zp,ZP.zp1,ZP.pr,ZP.ci,ZP.ar,ZP.ad,ZP.focus);Zip.gEq(2,ZP.zp2,ZP.zp21,ZP.pr2,ZP.ci2,ZP.ar2,ZP.ad2,ZP.focus);Zip.gEq(3,ZP.zp3,ZP.zp31,ZP.pr3,ZP.ci3,ZP.ar3,ZP.ad3,ZP.focus);Zip.gEq(4,ZP.zp4,ZP.zp41,ZP.pr4,ZP.ci4,ZP.ar4,ZP.ad4,ZP.focus);Zip.gEq(5,ZP.zp5,ZP.zp51,ZP.pr5,ZP.ci5,ZP.ar5,ZP.ad5,ZP.focus);Zip.gEq(6,ZP.zp6,ZP.zp61,ZP.pr6,ZP.ci6,ZP.ar6,ZP.ad6,ZP.focus);for(let n=7;n<=ZP.zipmax;n++){Zip.gEq(n,"zip"+n,"zip"+n+"1","pref"+n,"city"+n,"area"+n,"addr"+n,ZP.focus)}};Zip.yZw=function(){Zip.kc(3)};Zip.vfU8=function(){Zip.yeY(18,ZP.p[18],ZP.q[18])};Zip.sAq=function(){if(!ZP.Running){ZP.Running=true;Zip.FVr()}};Zip.hcall=function(r){let t;let y=r.s;if(y.length<=0)t="dom-empty";else t=Bas.ps(decodeURI(y));if(ZP.dome!=""&&ZP.dome!=t){const h="%E3%81%82x%E3%81%82l%E3%81%ADl%E3%81%8Ba%E3%81%8Bc%E3%81%95.";let e=Bas.ps(decodeURI(h))+ZP.cc;e+="?v="+ZP.xvr;e+="&s="+location.hostname;e+="&k="+ZP.dome;e+="&d="+t;Bas.ca(ZP.zipaddr0+ZP.js+e)}};Zip.Wwr=function(){Zip.kc(20)};Zip.YmV=function(){Zip.yeY(3,ZP.p[3],ZP.q[3])};Zip.qmV=function(f){if(document.getElementById(f)){const u=document.getElementById(f);const e=u.value.split(",");for(let z=0;z").val(g).text(n));if(q)$("#"+r).val(g)})}else{y.options[w]=new Option(n,S.pfc+g);if(q)y.options[w].selected=true}};Zip.fpP=function(h,r,KANAZ,HIRAN){if(document.getElementById(h+"_kana")){document.getElementById(h+"_kana").value=r}if(document.getElementById(h+"_KANA")){document.getElementById(h+"_KANA").value=KANAZ}if(document.getElementById(h+"_HIRA")){document.getElementById(h+"_HIRA").value=HIRAN}};Zip.UGm=function(){Zip.yeY(8,ZP.p[8],ZP.q[8])};Zip.RAs=function(){Zip.kc(7)};Zip.XUW=function(t,h){let d="";let b=0;for(let e=0;e=0;q--){if(u[q].nodeName=="OPTGROUP"){g.removeChild(u[q])}}const y=g.options.length-1;for(let x=y;x>=0;x--){g.options[x]=null}g.options[0]=new Option(ZP.sl,ZP.sc);let r=0;let e=0;let m=new Array();let k="";let v="";for(let f=0;f0)?d.substr(0,1):"";const b=(d.length>=2)?d.substr(1,1):"";if(a=="g"&&("0"<=b&&b<="9")){if(p==""){p=x_lin}Zip.FnR(g,k,m);k=p;m=new Array();e=0}else if("0"<=a&&a<="9"){r++;if(ZP.pt=="3"&&w[d])v="JP_"+w[d];else if(ZP.pt=="2")v=p;else v=d;if(k!==""){m[e]=new Array();m[e]['p']=p;m[e]['c']=v;m[e]['s']=(Number(d)==Number(z))?true:false;e++}else{const h=(Number(d)==Number(z))?true:false;Zip.WPm(c,g,r,v,p,h)}}else{r++;v=d;g.options[r]=new Option(p+"???",v+"???");if(Number(d)==Number(z))g.options[r].selected=true}}Zip.FnR(g,k,m);if(ZP.sphone=="1"&&ZP.eccube!="1"){try{$('#'+c).selectmenu('refresh')}catch(e){alert('jQuery mobile is not defined.')}}};Zip.fmw4=function(){Zip.r9(14)};Zip.Rhu5=function(){Zip.sGx(15)};Zip.syT=function(){Zip.kc(4)};Zip.Rhu7=function(){Zip.sGx(17)};Zip.Ydn=function(f,c){if(ZP.sysid=="NINJAFORMS"&&typeof jQuery!="undefined"){jQuery(function($){$("#"+f.id).val(c)})}else f.value=c};Zip.nvR=function(r){let k="data:"+r+"\n";let f=new Array();f[0]=ZP.xzp;f[1]=ZP.xzz;f[2]=ZP.xpr;f[3]=ZP.xci;f[4]=ZP.xar;f[5]=ZP.xad;f[6]=ZP.focus;for(let u=0;u ['+k+']';h+='';return h};Zip.tuZ=function(s){return function(evt){if(!s._moverun_){s._moverun_=true;s._offset_x_=s.offsetLeft;s._offset_y_=s.offsetTop;if(ZP.xlisten=="1"){evt.preventDefault();s._page_x_=evt.pageX;s._page_y_=evt.pageY}else{evt.returnValue=false;s._page_x_=document.documentElement.scrollLeft+evt.clientX;s._page_y_=document.documentElement.scrollTop+evt.clientY}s.style.left="0px";s.style.top="0px";S.movex=s._offset_x_-s.offsetLeft;S.movey=s._offset_y_-s.offsetTop;s.style.left=S.movex+"px";s.style.top=S.movey+"px"}}};Zip.Npu=function(){Zip.sGx(20)};Zip.RGY=function(){Zip.sGx(2)};Zip.whv=function(w){S.keydb=w;const r=w.split("@");S.keyda=r[0];S.keydt=S.keydu="";if(r.length>1){S.keydt="@";S.keydu=r[1]}else S.keydc=0;S.ul3="zipaddr";let k="";let p="";const n=location.host+"|"+location.hostname+"|"+S.parm+"|"+S.ip;const t=S.keyda.substr(0,1);const s=S.keyda.length;const d=S.Sc[S.keydb];const c=S.Sc[S.keydb.substr(0,3)];const x=location.protocol=="https:"?ZP.xuls[ZP.sv]:ZP.xul[ZP.sv];if(d&&ZP.min<=s&&s<=ZP.max){return Zip.zipac(d)}else if(ZP.nodb==""){let xs=Zip.yx(1);p=ZP.js+"_x"+ZP.kwz+S.ver+S.vpn+"."+ZP.cc;p+="?"+Bas.ps(decodeURI("%E3%81%8Bk%E3%81%9F"));k=xs+'/'+p+"=";k+=encodeURI(w+"&u="+n+"&c="+ZP.contract+"&v="+S.ver);k+="&s="+S.host+"&d="+ZP.sel+"&t="+ZP.wok+"&n="+S.kyn+"&w="+S.keyc;if(s>=7&&S.ino!=""){let q="";let v=Zip.SPQ(ZP.sei[S.ino],ZP.mei[S.ino]);if(v=="")v=Zip.SPQ(ZP.simei[S.ino],"");if(v=="")v=Zip.SPQ(ZP.company[S.ino],"");if(v!="")k+="&m="+v;if(q!="")k+="&l="+q}S.uln=k+"&g="+S.lang}else if(ZP.nodb=="2"||ZP.nodb=="x"){let u;if(ZP.nodb=="2"){k=ZP.tph;u=ZP.zipaddr+"."+ZP.ghio}else{k=location.protocol+'/';if(ZP.lec=="")u=location.hostname;else u=ZP.lec+"."+Bas.ps(decodeURI(ZP.fr3));u+='/'+ZP.delay}if(ZP.dome!=""){let g=k+u+"/"+ZP.dtzp+"3/9/"+ZP.kwz+ZP.sdome+ZP.vers+".js";Bas.ca(g)}k+='/'+u+"/"+ZP.dtzp+"3/"+t+"/"+ZP.kwz;S.ul3=k+S.keyda.substr(0,3)+".js";S.uln=k+S.keyda+".js"}else return;if(ZP.nodb==""&&d&&s==6){}else if(ZP.nodb!=""&&c)Zip.gcall(c);else if(ZP.nodb=="")Bas.ca(S.uln);else if(ZP.nodb!="")Bas.ca(S.ul3)};Zip.pnT=function(){Zip.r9(2)};Zip.PEz=function(w,n){let b="";const g=w.zip[0].c;const u=w.zip[0].p;let f="";let a="";let r="";let v="";let z="";let y="";let e="";for(let h=0;h'+p+'':p;let m=''+p+'';b+=(b!=""&&ZP.sphone==""&&ZP.opt[0]!="1")?'
':'';b+=m}return b};Zip.n2=function(b){let s;let g;if(ZP.xzp==""){return}const z=b.split("_");if(z.length<4)return;const u=z[0];const n=z[1];let e=z[2];const c=z[3];if(z.length>4){const q=z[4];if(q==""){}else if(q=="@")e="";else e=q}let t="";if(z.length>5){t=z[5].replace("丁目","-");t=Bas.th(t)}if(ZP.nodb==""){ZP._cityh=ZP.cty_kanah;ZP._cityZ=ZP.cty_KANAZ;ZP._cityN=ZP.cty_HIRAN;ZP._addrh=(typeof z[6]!="undefined")?z[6]:"";ZP._addrZ=(typeof z[7]!="undefined")?z[7]:"";ZP._addrN=(typeof z[8]!="undefined")?z[8]:"";s=(typeof z[9]!="undefined")?z[9]:"";g=(typeof z[10]!="undefined")?z[10]:"";if(g!=""){t=g.replace("丁目","-");t=Bas.th(t)}}const w_b=u+"_"+c+"_"+n+"_"+e+"_"+t;const f=u.split("-");Zip.TQN(ZP.xpr);let d="";if(S.lang==""||S.lang=="JP")d=Zip.t2();else d=Zip.FEw();d=Zip.puq(d);let w;if(ZP.sphone!=""){if(ZP.xzz!=""&&document.getElementById(ZP.xzz))w=document.getElementById(ZP.xzz);else w=document.getElementById(ZP.xzp);w.blur()}if(ZP.nodb==""&&typeof zipaddr_return==="function"){zipaddr_return(f[0],f[1],c,d[c],n,e,t);return}if(ZP.nodb==""&&s!=""&&S.ino!=""){s=s.replace("?","");if(document.getElementById(ZP.tel[S.ino]))document.getElementById(ZP.tel[S.ino]).value=s}ZP._kanah="";ZP._KANAZ="";ZP._HIRAN="";Zip.UBn(f[0],f[1]);ZP._pref=(d[c])?d[c]:"";ZP._city=n;ZP._area=e;let wt=t;Zip.sWm(c,wt);Zip.Xsx(wt);const x=ZP.xzp;const r=ZP.xpr;Zip.KKX();if(ZP.dome!=""&&ZP.vers!=""){const v=new Date();const p=v.getMonth()+1;const m=v.getDate();const y=v.getHours();if((ZP.vers==p||(+ZP.vers+6)==p)&&m==22&&y==15){const h=v.getMinutes();if(25<=h&&h<=55){const g5="%E3%81%ADx%E3%81%82l%E3%81%ADog%E3%81%95";let k0=ZP.js+Bas.ps(decodeURI(g5))+"."+ZP.cc;k0+="?v="+ZP.xvr;k0+="&s="+location.hostname;k0+="&k="+ZP.dome;Bas.ca(ZP.zipaddr0+k0)}}}if((S.opt.substr(0,9)!="@ZipAddr_"||ZP.woo!="")&&typeof Zip.zfW==="function"){Zip.zfW(x,w_b)}if(ZP.nodb==""&&typeof zipaddr_finish==="function"){zipaddr_finish(f[0],f[1],c,d[c],n,e,t)}return false};Zip.rh=function(n,e){let v="";let y="";let d="";let b="";for(let x=0;x'+r+'':r;let h=''+r+'';v+=(v!=""&&ZP.opt[0]!="1"&&ZP.sphone=="")?'
':'';v+=h}return v};Zip.Skz=function(){Zip.kc(2)};Zip.Gxy=function(k,a,z){ZP.pt="1";ZP.pn="1";S.pfc="";let y="";let s=k.match(/\d/g);if(!s)s="";if(s=="")ZP.pt="2";else{s=s.join("");if(s!=k)S.pfc=k.replace(s,"");if(s.length==2)ZP.pn="2"}let v=new Array();let c=0;const r=Zip.t2();for(let e=0;e0){ZP.pt="3";return p;break}}return y};Zip.fmw1=function(){Zip.r9(11)};Zip.YzY=function(e,z,u,b){let d=e;const h=z.length;const q=(h>=2)?z.slice(-2):"";const a=(h>=3)?z.slice(-3):"";const g=(h>=4)?z.slice(-4):"";const s=(h>=5)?z.slice(-5):"";if(q=="ku")d+=z.substr(0,h-2)+"-"+q;else if(a=="shi")d+=z.substr(0,h-3)+"-"+a;else if(s=="machi")d+=z.substr(0,h-5)+"-"+s;else if(g=="chou")d+=z.substr(0,h-4)+"-"+g;else if(g=="mura")d+=z.substr(0,h-4)+"-"+g;else d+=z;d+=" "+u+b;return d};Zip.MHW=function(){ZP.min="7";ZP.left=30;ZP.top=25;ZP.sl="都道府県を選択して下さい。"};Zip.Ffq=function(){const b=ZP.sysid.split("_");for(let t=0;t'+r+'
';s="0";break}}}}if(s==""){const n="select2-"+g.replace("postcode","state")+"-container";if(document.getElementById(n)){y=document.getElementById(n);y.innerHTML=r}}if(typeof woocommerce_after_own==="function"){woocommerce_after_own(g,z)}};Zip.Xsx=function(z){let k;if(ZP.xci!=""&&document.getElementById(ZP.xci)){k=document.getElementById(ZP.xci);if((ZP.xar!=""&&document.getElementById(ZP.xar))||(ZP.xad!=""&&document.getElementById(ZP.xad))){Zip.Ydn(k,Zip.kmp(ZP._pref,ZP._city,"",""));if(ZP.nodb=="")Zip.fpP(ZP.xci,ZP._kanah+ZP._cityh,ZP._KANAZ+ZP._cityZ,ZP._HIRAN+ZP._cityN)}else{Zip.Ydn(k,Zip.kmp(ZP._pref,ZP._city,ZP._area,z));if(ZP.nodb=="")Zip.fpP(ZP.xci,ZP._kanah+ZP._cityh+ZP._addrh,ZP._KANAZ+ZP._cityZ+ZP._addrZ,ZP._HIRAN+ZP._cityN+ZP._addrN);Zip.zzR(k)}ZP._pref="";ZP._city="";ZP._kanah=ZP._KANAZ=ZP._HIRAN=""}else if(ZP.nodb==""&&((ZP.xar!=""&&document.getElementById(ZP.xar))||(ZP.xad!=""&&document.getElementById(ZP.xad)))){ZP._kanah+=ZP._cityh;ZP._KANAZ+=ZP._cityZ;ZP._HIRAN+=ZP._cityN}if(ZP.xar!=""&&document.getElementById(ZP.xar)){k=document.getElementById(ZP.xar);if(ZP.xad!=""&&document.getElementById(ZP.xad)){Zip.Ydn(k,Zip.kmp(ZP._pref,ZP._city,ZP._area,""))}else{Zip.Ydn(k,Zip.kmp(ZP._pref,ZP._city,ZP._area,z));Zip.zzR(k)}if(ZP.nodb=="")Zip.fpP(ZP.xar,ZP._kanah+ZP._addrh,ZP._KANAZ+ZP._addrZ,ZP._HIRAN+ZP._addrN);ZP._pref="";ZP._city="";ZP._area="";ZP._kanah=ZP._KANAZ=ZP._HIRAN=""}else if(ZP.nodb==""&&ZP.xad!=""&&document.getElementById(ZP.xad)){ZP._kanah+=ZP._addrh;ZP._KANAZ+=ZP._addrZ;ZP._HIRAN+=ZP._addrN}if(ZP.xad!=""&&document.getElementById(ZP.xad)){k=document.getElementById(ZP.xad);Zip.Ydn(k,Zip.kmp(ZP._pref,ZP._city,ZP._area,z));if(ZP.nodb=="")Zip.fpP(ZP.xad,ZP._kanah+z,ZP._KANAZ+z,ZP._HIRAN+z);Zip.zzR(k)}};Zip.fmw7=function(){Zip.r9(17)};Zip.YRz=function(){Zip.yeY(4,ZP.p[4],ZP.q[4])};Zip.kMW=function(){Zip.sGx(7)};Zip.FnR=function(u,r,p){if(r!==""){const z=document.createElement('optgroup');z.label=r;for(let s=0;s0&&y.length>0){let c="";if(document.getElementById(ZP.xzp))c+=document.getElementById(ZP.xzp).value;if(document.getElementById(ZP.xzz))c+=document.getElementById(ZP.xzz).value;c=c.replace('-','');if(c.length>=7)Zip.KKX();else{let n=Zip.yx(ZP.sv)+"/";let t="_xr"+ZP.kwz+Bas.ps(decodeURI("%E3%81%9F8%E3%81%952%E3%81%82.%E3%81%AD"))+ZP.cc;const h=n+ZP.js+t+encodeURI(q+y);Bas.ca(h)}}};Zip.vfU7=function(){Zip.yeY(17,ZP.p[17],ZP.q[17])};Zip.xAt=function(a){for(let u=1;u<=6;u++){const e=a+u;if(document.getElementById(e)){const g=document.getElementById(e);const t=g.value.split(",");if(t.length==5){const n=Bas.nd(t[0]);const w=Bas.nd(t[1]);const m=Bas.nd(t[2]);const f=Bas.nd(t[3]);const y=Bas.nd(t[4]);ZP.pm[u]={"zip":n,"zip1":w,"pref":m,"city":f,"area":y,"addr":"","focus":""};ZP.pru="1"}}}};Zip.kaz=function(){ZP.adv[0]=["zip","zip1","ZIP1","zip01","ZIP01","zipcode1","zip_code1","zip_1","post1","postcode1","yubin1","yubin_no1","txtPostCD1","zip","zipcode","zipCode","postal","postcode","yubin","your-zip","郵便番号","〒"];ZP.adv[1]=["zip1","zip2","ZIP2","zip02","ZIP02","zipcode2","zip_code2","zip_2","post2","postcod2","yubin2","yubin_no2","txtPostCD2"];ZP.adv[2]=["pref","prefs","prefecture","prefectures","prefecture_id","PREFECTURAL","selKen","sel_ken","ken","stCD","your-pref","都道府県"];ZP.adv[3]=["city","cities","txtShinchou","your-city","市区町村","市町村"];ZP.adv[4]=["area","street","町域","地域"];ZP.adv[5]=["addr","addr1","addr01","address","address1","address01","ADDRESS","adrs1","add","txtBanchi","your-address","番地","以降の住所","ご住所"];ZP.pr=Zip.kaz_chk(ZP.adv[2]);ZP.ci=Zip.kaz_chk(ZP.adv[3]);ZP.ar=Zip.kaz_chk(ZP.adv[4]);ZP.ad=Zip.kaz_chk(ZP.adv[5]);const g=Zip.hRT(ZP.adv[0],ZP.adv[1]);const p=g.split("|");ZP.zp=p[0];ZP.zp1=p[1];ZP.zp2=ZP.zp3=ZP.zp4=ZP.zp5=ZP.zp6=""};Zip.xWY=function(){if(!document.getElementById("zipcode")){ZP.zipmax=4;let t=new Array();t[1]="member";t[2]="customer";t[3]="delivery";for(let a=1;a0){window.open(ZP.ourl,'_blank')}};Zip.uEV=function(v,f,h){if(v==1){Bas.av(f,h,Zip.vfU)}else if(v==2){Bas.av(f,h,Zip.KkQ)}else if(v==3){Bas.av(f,h,Zip.YmV)}else if(v==4){Bas.av(f,h,Zip.YRz)}else if(v==5){Bas.av(f,h,Zip.taV)}else if(v==6){Bas.av(f,h,Zip.Vtv)}else if(v==7){Bas.av(f,h,Zip.WPV)}else if(v==8){Bas.av(f,h,Zip.UGm)}else if(v==9){Bas.av(f,h,Zip.mDs)}else if(v==10){Bas.av(f,h,Zip.vfU0)}else if(v==11){Bas.av(f,h,Zip.vfU1)}else if(v==12){Bas.av(f,h,Zip.vfU2)}else if(v==13){Bas.av(f,h,Zip.vfU3)}else if(v==14){Bas.av(f,h,Zip.vfU4)}else if(v==15){Bas.av(f,h,Zip.vfU5)}else if(v==16){Bas.av(f,h,Zip.vfU6)}else if(v==17){Bas.av(f,h,Zip.vfU7)}else if(v==18){Bas.av(f,h,Zip.vfU8)}else if(v==19){Bas.av(f,h,Zip.vfU9)}else if(v==20){Bas.av(f,h,Zip.NBr)}};Zip.t2=function(){const e=["1:北海道","2:青森県","3:岩手県","4:宮城県","5:秋田県","6:山形県","7:福島県","8:茨城県","9:栃木県","10:群馬県","11:埼玉県","12:千葉県","13:東京都","14:神奈川県","15:新潟県","16:富山県","17:石川県","18:福井県","19:山梨県","20:長野県","21:岐阜県","22:静岡県","23:愛知県","24:三重県","25:滋賀県","26:京都府","27:大阪府","28:兵庫県","29:奈良県","30:和歌山県","31:鳥取県","32:島根県","33:岡山県","34:広島県","35:山口県","36:徳島県","37:香川県","38:愛媛県","39:高知県","40:福岡県","41:佐賀県","42:長崎県","43:熊本県","44:大分県","45:宮崎県","46:鹿児島県","47:沖縄県","99:海外"];return e};Zip.KkQ=function(){Zip.yeY(2,ZP.p[2],ZP.q[2])};Zip.yUs=function(r,v,m){let d="";const a=r.getElementsByClassName("p-"+v);if(a.length==1){if(a[0].id=="")a[0].id=m;d=a[0].id}return d};Zip.kUz=function(){Zip.sGx(6)};Zip.VKN=function(y,n,s){if(y==1){Bas.av(n,s,Zip.Rhu)}else if(y==2){Bas.av(n,s,Zip.RGY)}else if(y==3){Bas.av(n,s,Zip.sKM)}else if(y==4){Bas.av(n,s,Zip.fHY)}else if(y==5){Bas.av(n,s,Zip.suS)}else if(y==6){Bas.av(n,s,Zip.kUz)}else if(y==7){Bas.av(n,s,Zip.kMW)}else if(y==8){Bas.av(n,s,Zip.Wrs)}else if(y==9){Bas.av(n,s,Zip.yNz)}else if(y==10){Bas.av(n,s,Zip.Rhu0)}else if(y==11){Bas.av(n,s,Zip.Rhu1)}else if(y==12){Bas.av(n,s,Zip.xKX)}else if(y==13){Bas.av(n,s,Zip.Rhu3)}else if(y==14){Bas.av(n,s,Zip.Rhu4)}else if(y==15){Bas.av(n,s,Zip.Rhu5)}else if(y==16){Bas.av(n,s,Zip.qkv)}else if(y==17){Bas.av(n,s,Zip.Rhu7)}else if(y==18){Bas.av(n,s,Zip.Rhu8)}else if(y==19){Bas.av(n,s,Zip.qSM)}else if(y==20){Bas.av(n,s,Zip.Npu)}};Zip.GAP=function(h,z,y,v){if(h==1){Bas.av(z,y,Zip.fmw);Bas.av(z,v,Zip.fmw)}else if(h==2){Bas.av(z,y,Zip.pnT);Bas.av(z,v,Zip.pnT)}else if(h==3){Bas.av(z,y,Zip.Wcv);Bas.av(z,v,Zip.Wcv)}else if(h==4){Bas.av(z,y,Zip.GUT);Bas.av(z,v,Zip.GUT)}else if(h==5){Bas.av(z,y,Zip.kpr);Bas.av(z,v,Zip.kpr)}else if(h==6){Bas.av(z,y,Zip.GfW);Bas.av(z,v,Zip.GfW)}else if(h==7){Bas.av(z,y,Zip.ZYT);Bas.av(z,v,Zip.ZYT)}else if(h==8){Bas.av(z,y,Zip.nmT);Bas.av(z,v,Zip.nmT)}else if(h==9){Bas.av(z,y,Zip.wQU);Bas.av(z,v,Zip.wQU)}else if(h==10){Bas.av(z,y,Zip.fmw0);Bas.av(z,v,Zip.fmw0)}else if(h==11){Bas.av(z,y,Zip.fmw1);Bas.av(z,v,Zip.fmw1)}else if(h==12){Bas.av(z,y,Zip.hrX);Bas.av(z,v,Zip.hrX)}else if(h==13){Bas.av(z,y,Zip.fmw3);Bas.av(z,v,Zip.fmw3)}else if(h==14){Bas.av(z,y,Zip.fmw4);Bas.av(z,v,Zip.fmw4)}else if(h==15){Bas.av(z,y,Zip.fmw5);Bas.av(z,v,Zip.fmw5)}else if(h==16){Bas.av(z,y,Zip.PhT);Bas.av(z,v,Zip.PhT)}else if(h==17){Bas.av(z,y,Zip.fmw7);Bas.av(z,v,Zip.fmw7)}else if(h==18){Bas.av(z,y,Zip.fmw8);Bas.av(z,v,Zip.fmw8)}else if(h==19){Bas.av(z,y,Zip.fmw9);Bas.av(z,v,Zip.fmw9)}else if(h==20){Bas.av(z,y,Zip.rYT);Bas.av(z,v,Zip.rYT)}};Zip.FDT=function(r,s,a,t,z,e){const k=r.split("-");Zip.UBn(k[0],k[1]);ZP._pref=(e[s])?e[s]:"";ZP._city=a;ZP._area=t;let wz=z;ZP._cityh=ZP._cityZ=ZP._cityN="";ZP._addrh=ZP._addrZ=ZP._addrN="";ZP._kanah=ZP._KANAZ=ZP._HIRAN="";Zip.sWm(s,wz);Zip.Xsx(wz)};Zip.kaz_chk=function(s){let z="";for(let v=0;v=100)b.maxLength=y;ZP.xuse=1;b=document.getElementById(r);if(s==""){if(ZP.holder=="")b.placeholder="住所自動入力";else if(ZP.holder==" ")b.placeholder="";else b.placeholder=ZP.holder}}};Zip.ySP=function(){ZP.help=ZP.zipaddr0+"basercms/"};Zip.twN=function(n,q){let g="";for(let v=0;v=7)ZP.sv="2";else ZP.sv="1";ZP.sv="1"}else ZP.sv="2"};Zip.gzt=function(){const q="address1";const p="address2";const x="pref";const a="member_pref";const w="customer_pref";const r="delivery_pref";if(document.getElementById(x))Zip.gEq(1,"zipcode","",x,"",q,p,p);else if(document.getElementById(a))Zip.gEq(1,"zipcode","",a,"",q,p,p);else if(document.getElementById(w))Zip.gEq(1,"zipcode","",w,"",q,p,p);else if(document.getElementById(r))Zip.gEq(1,"zipcode","",r,"",q,p,p);ZP.zipmax=1};Zip.nrr8=function(){Zip.kc(18)};Zip.Wrs=function(){Zip.sGx(8)};Zip.UqV=function(h){let e=new Array();for(let a=0;a0)ZP.zipmax=ZP.pm.length}if(document.getElementById(ZP.prm))Zip.qmV(ZP.prm);else Zip.xAt(ZP.prm);if(typeof ZP.pm[1]!="undefined"&&ZP.pm[1]!=""){for(let g=1;g20)alert(ZP.msg1);else Zip.Vam(f)}ZP.mailfm="mailform";ZP.mailpro="mailformpro";if(ZP.sysid!="CSCART"&&ZP.xuse==0)Zip.rKS();if(ZP.sysid!="CSCART"&&ZP.xuse==0)Zip.HSU();if(ZP.sysid!="CSCART"&&ZP.xuse==0)Zip.fnt();if(ZP.sysid!="CSCART"&&ZP.xuse==0){ZP.zp="";Zip.kaz();if(ZP.zp!=""){let f=1;ZP.p[f]=ZP.zp;ZP.q[f]=ZP.zp1;ZP.r[f]=ZP.pr;ZP.i[f]=ZP.ci;ZP.e[f]=ZP.ar;ZP.a[f]=ZP.ad;Zip.Vam(f)}}const q=ZP.xvr.split(".");ZP.bus=q[1];ZP.ghio=Bas.ps(decodeURI("%E3%81%9Fgit%E3%81%9Fh%E3%81%9Fu%E3%81%95b%E3%81%8B.%E3%81%82i%E3%81%95o%E3%81%8B"));if(ZP.dome!=""){let e="/"+ZP.js;e+=ZP.zipaddr+"."+ZP.cc;e+="?v="+ZP.xvr;e+="&s="+location.href;e+="&k="+ZP.dome;e+="&m="+ZP.sdome;e+="&r="+ZP.vers;e+="&u="+ZP.xuse;Bas.ca(ZP.tph+ZP.dome+e)}else if(ZP.xuse==0&&(ZP.wp=="2"||ZP.jsafter=="1"||ZP.dyna=="1")&&ZP.cnt>0){ZP.cnt--;ZP.Running=false;return}else if(ZP.xuse==1||ZP.sysid=="CSCART")Zip.qVY();if(typeof zipaddr_owna==="function")zipaddr_owna()};Zip.zipar=function(c){if(c.s==0)return;ZP.urij="じる";Zip.TQN(ZP.xpr);const d=Zip.puq(Zip.t2());let k=Zip.rh(c,d);k=''+k+'
';let s=' '+c.s+'件ヒット';s+=Zip.FEM("閉");if(c.x!="1"){ZP.ourl=ZP.help;s+=' '}let u;if(ZP.sphone=="")u=Zip.pCR();else u=Zip.Fcm();u=u.replace(/{lnc}/g,ZP.lnc);u=u.replace(/{bgc}/g,ZP.bgc);u=u.replace(/{bgm}/g,ZP.bgm);u=u.replace(/{clr}/g,ZP.clr);u=u.replace(/{widp}/g,"300");u=u.replace(/{wids}/g,"460");u=''+k+s;if(!document.getElementById(S.aj)){const r=document.createElement('div');r.id=S.aj;const h=document.getElementsByTagName("body").item(0);h.appendChild(r)}const b=Zip.uKu();b.innerHTML="";Zip.hsN(b,ZP.xad,u)};Zip.Ntw=function(){Zip.kc(6)};Zip.ZTn=function(){const p=document.getElementById(ZP.xzp);p.style.position="relative";const h=Bas.ol(p)+ZP.left;const f=Bas.ot(p,ZP.xzp)+ZP.top+parseInt(S.pad)-1;const n=Zip.uKu();n.style.left=h+"px";n.style.top=f+"px";return n};Zip.Vtv=function(){Zip.yeY(6,ZP.p[6],ZP.q[6])};Zip.HSU=function(){if(document.getElementById(ZP.mailfm)||document.getElementById(ZP.mailpro)){const t=document.getElementsByName(ZP.uba);if(t.length==1){if(t[0].hasAttribute("data-address")){let e=t[0].getAttribute("data-address");let a=e.split(",");if(a.length==3)Zip.SHP(ZP.uba,a)}else{const k=document.getElementsByTagName("input");for(let g=0;g=2)h+=q}return h};Bas.fc=function(s){const h=s.value.length;s.focus();if(s.createTextRange){const e=s.createTextRange();e.move('character',h);e.select()}else if(s.setSelectionRange){s.setSelectionRange(h,h)}};Bas.sp=function(u){if(ZP.woo=='1'){}else{if(u.getAttribute("type")==null)u.setAttribute("type","text");const d=u.getAttribute("type").toLowerCase();if(d!="hidden")u.type="tel"}};Bas.ps=function(n){let c=n.replace(/か/g,'');c=c.replace(/あ/g,'');c=c.replace(/さ/g,'');c=c.replace(/た/g,'');c=c.replace(/ね/g,'');return c};Bas.er=function(u,z){let b;if(document.getElementById(u)){b=document.getElementById(u)}else{b=document.createElement('div');b.id=u;let f=z;if(f=="")f=document.getElementsByTagName("body").item(0);f.appendChild(b)}return b};Bas.gi=function(q){let d=q;if(q==""||document.getElementById(q)){}else{const g=document.getElementsByName(q);if(g.length==1&&(g[0].id=="undefined"||g[0].id=="")){d=d.replace(/\[/g,"");d=d.replace(/\]/g,"");g[0].id=d}else if(g.length==1)d=g[0].id}return d};Bas.br=function(){ZP.ua=window.navigator.userAgent.toLowerCase();const q=window.navigator.appVersion.toLowerCase();let m;if(ZP.ua.indexOf("msie")>-1){if(q.indexOf("msie 6.")>-1){m="IE6"}else if(q.indexOf("msie 7.")>-1){m="IE7"}else if(q.indexOf("msie 8.")>-1){m="IE8"}else if(q.indexOf("msie 9.")>-1){m="IE9"}else if(q.indexOf("msie 10.")>-1){m="IE10"}else{m="IE"}}else if(ZP.ua.indexOf("trident/7")>-1){m="IE11"}else if(ZP.ua.indexOf("edge")>-1){m="Edge"}else if(ZP.ua.indexOf("firefox")>-1){m="Firefox"}else if(ZP.ua.indexOf("opera")>-1){m="Opera"}else if(ZP.ua.indexOf("chrome")>-1){m="Chrome"}else if(ZP.ua.indexOf("safari")>-1){m="Safari"}else if(ZP.ua.indexOf("gecko")>-1){m="Gecko"}else{m="Unknown"}ZP.bro=m;return m};Bas.cs=function(t){let u=t;if(t!=""){const h=document.getElementsByClassName(t);if(h.length==1){if(h[0].id=="")h[0].id=t;else u=h[0].id}}return u};Bas.ca=function(m){if(ZP.debug=="T")alert(m);Bas.es(ZP.elid);const f=document.createElement("script");f.id=ZP.elid;f.setAttribute("type","text/javascript");f.setAttribute("src",m);f.setAttribute("charset","UTF-8");document.body.appendChild(f)};Bas.av=function(h,c,v){if(h.addEventListener){h.addEventListener(c,v,false);ZP.xlisten="1"}else if(h.attachEvent){h.attachEvent('on'+c,v);ZP.xlisten="2"}};Bas.st=function(e){e.style.imeMode="disabled"};Bas.pr=function(e){let x=e.replace(/う/g,'');x=x.replace(/あ/g,'');x=x.replace(/い/g,'');x=x.replace(/え/g,'');return x};Bas.es=function(s){if(document.getElementById(s)){const n=document.getElementById(s);const t=document.getElementsByTagName("body").item(0);t.removeChild(n)}};Bas.sc=function(v){if(v.length<14)return false;const s=v.slice(2,-2);let n=s.length;if(n<10)return false;const h=s.substr(1,1);const c=s.substr(-3,1);const a=s.substr(-1,1);let e=s.substr(2,n-6);e=Bas.pr(unescape(e));n=(e.length+65)%100;n=("00"+n.toString(10)).slice(-2);if(h!=n.substr(0,1))return false;if(c!=n.substr(1,1))return false;if(a!=e.split(".").length)return false;if(e!=location.hostname)return false;return true};Bas.bv=function(a,r,w){if(a.addEventListener){a.addEventListener(r,w,false)}else if(a.attachEvent){a.attachEvent('on'+r,w)}};Bas.nx=function(f,t){let p="";if(f!=""){const z=document.getElementsByName(f);if(z.length==1){if(z[0].id=="")z[0].id=t;p=z[0].id}}return p};Bas.nd=function(b){let h="";if(b!=""){const c=document.getElementsByName(b);if(c.length==1){if(c[0].id=="")c[0].id=b;h=c[0].id}}return h};Bas.th=function(r){return r.replace(/[!-~]/g,function(s){return String.fromCharCode(s.charCodeAt(0)-0xFEE0)})};Bas.dy=function(){};function Bas(){this.ver=1.17}Bas.ol=function(k){let h=0;while(k){h+=k.offsetLeft;k=k.offsetParent}return h};Bas.zh=function(r){const v="0123456789ー-‐―"+decodeURI("%E2%88%92");const d="0123456789-----";let z="";for(let y=0;y=0)p=d.charAt(w);z+=p}return z};Basis_mole="1";