//利用者ログイン function GoLogin(LoginCheckPage){ document.form.action = LoginCheckPage; document.form.submit(); } //前後ページ遷移 function PageChange(PARAM){ document.form.key.value = PARAM; document.form.submit(); } //読み仮名検索 function YomiShibori(yomi){ document.form.yomi.value=yomi; document.form.action=window.location.pathname; document.form.submit(); } //検索結果一覧ページ切替 function SrchPageChange(PAGENO){ document.form.FLG.value = "PAGE"; document.form.PAGE.value = PAGENO; document.form.action=window.location.pathname; document.form.submit(); } //抽出条件切替 function SelcodeChg(){ if(eval(document.form.yomi)){document.form.yomi.value = "";} document.form.FLG.value = ""; document.form.action=window.location.pathname; document.form.submit(); } //データ更新・削除 function Commit(no){ SID=document.form.SID.value; PID=document.form.PID.value; listpid=document.form.LISTPID.value; data=GetData(); ret1=Check(SID,PID,listpid,no,data); ret1=ret1.split("^"); if(ret1[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret1[1]+"

"; return; } ret2=DataSet(SID,PID,listpid,no,data); ret2=ret2.split("^"); if(ret2[0]==1){ preurl=document.form.PREURL.value+"?FLG=BACK"; if(eval(document.form.SRCID)){ if(document.form.SRCID.value!=""){ preurl=preurl+"&SRCID="+document.form.SRCID.value; } } preurl=preurl+"&LID="+no+"#"+no; document.form.action = preurl; document.form.submit(); return; } if(ret2[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG="+ret2[1]; document.form.submit(); return; } } //一覧からの削除 function ListDel(no){ SID=document.form.SID.value; PID=document.form.PID.value; ret=Del(SID,PID,no); ret=ret.split("^"); if(ret[0]==1){ document.form.submit(); return; } if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG="+ret[1]; document.form.submit(); return; } } //確認ページへ function GoConfirm(type){ SID=document.form.SID.value; PID=document.form.PID.value; if(type=="contact"){ if(!eval(document.form.telcode1)){telcode1="";} else{telcode1=document.form.telcode1.value;} if(!eval(document.form.tel1)){tel1="";} else{tel1=document.form.tel1.value;} if(!eval(document.form.telcode2)){telcode2="";} else{telcode2=document.form.telcode2.value;} if(!eval(document.form.tel2)){tel2="";} else{tel2=document.form.tel2.value;} if(!eval(document.form.mail1)){mail1="";} else{mail1=document.form.mail1.value;} if(!eval(document.form.mail2)){mail2="";} else{mail2=document.form.mail2.value;} ret=USERCONTACT(SID,PID,"check",telcode1,tel1,telcode2,tel2,mail1,mail2); } if(type=="mlmg"){ mailno=document.form.mailno.value; ret=MLMGSET(SID,PID,"check",mailno,""); } if(type=="sdi"){ mailno=document.form.mailno.value; ret=ChkFormat(SID,PID,mailno); } if(type=="book"){ rsvvol=""; bib=""; if(!eval(document.form.rkan)){rkan="";} else{rkan=document.form.rkan.value;} if(!eval(document.form.contact)){contact="";} else{contact=document.form.contact.value;} if(!eval(document.form.waitday)){waitday="";} else{waitday=document.form.waitday.value;} if(!eval(document.form.biko)){biko="";} else{biko=document.form.biko.value;} ret=BOOK(SID,PID,"check",rsvvol,bib,rkan,contact,waitday,biko); } ret=ret.split("^"); if(ret[0]==1){ document.form.action = document.form.NEXTPAGE.value; document.form.submit(); } if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } } //OK function OK(type){ SID=document.form.SID.value; PID=document.form.PID.value; if(type=="contact"){ if(!eval(document.form.telcode1)){telcode1="";} else{telcode1=document.form.telcode1.value;} if(!eval(document.form.tel1)){tel1="";} else{tel1=document.form.tel1.value;} if(!eval(document.form.telcode2)){telcode2="";} else{telcode2=document.form.telcode2.value;} if(!eval(document.form.tel2)){tel2="";} else{tel2=document.form.tel2.value;} if(!eval(document.form.mail1)){mail1="";} else{mail1=document.form.mail1.value;} if(!eval(document.form.mail2)){mail2="";} else{mail2=document.form.mail2.value;} ret=USERCONTACT(SID,PID,"check",telcode1,tel1,telcode2,tel2,mail1,mail2); ret=ret.split("^"); if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); }else{ ret=USERCONTACT(SID,PID,"set",telcode1,tel1,telcode2,tel2,mail1,mail2); } } if(type=="mlmg"){ mlmgmst=document.form.mlmgmst.value; mailno=document.form.mailno.value; ret=MLMGSET(SID,PID,"check",mailno,mlmgmst); ret=ret.split("^"); if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); }else{ ret=MLMGSET(SID,PID,"set",mailno,mlmgmst); } } if(type=="sdi"){ mailno=document.form.mailno.value; if(!eval(document.form.ttl)){ttl="";} else{ttl=document.form.ttl.value;} if(!eval(document.form.aut)){aut="";} else{aut=document.form.aut.value;} if(!eval(document.form.pub)){pub="";} else{pub=document.form.pub.value;} if(!eval(document.form.subj)){subj="";} else{subj=document.form.subj.value;} if(!eval(document.form.genre)){genre="";} else{genre=document.form.genre.value;} if(!eval(document.form.sk51)){sk51="";} else{sk51=document.form.sk51.value;} if(!eval(document.form.sk41)){sk41="";} else{sk41=document.form.sk41.value;} if(!eval(document.form.sk43)){sk43="";} else{sk43=document.form.sk43.value;} if(!eval(document.form.sk42)){sk42="";} else{sk42=document.form.sk42.value;} if(!eval(document.form.sk45)){sk45="";} else{sk45=document.form.sk45.value;} ret=ChkFormat(SID,PID,mailno,ttl,aut,pub,subj,genre,sk51,sk41,sk43,sk42,sk45); ret=ret.split("^"); if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); }else{ mlmgid=document.form.mlmgid.value; ret=DataSet(SID,PID,mailno,mlmgid,ttl,aut,pub,subj,genre,sk51,sk41,sk43,sk42,sk45); } } if(type=="book"){ if(!eval(document.form.rsvvol)){rsvvol="";} else{rsvvol=document.form.rsvvol.value;} bib=""; if(!eval(document.form.rkan)){rkan="";} else{rkan=document.form.rkan.value;} if(!eval(document.form.contact)){contact="";} else{contact=document.form.contact.value;} if(!eval(document.form.waitday)){waitday="";} else{waitday=document.form.waitday.value;} if(!eval(document.form.biko)){biko="";} else{biko=document.form.biko.value;} ret=BOOK(SID,PID,"check",rsvvol,bib,rkan,contact,waitday,biko); ret=ret.split("^"); if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); }else{ ret=BOOK(SID,PID,"set",rsvvol,bib,rkan,contact,waitday,biko); } } ret=ret.split("^"); if(ret[0]==1){ document.form.action = document.form.NEXTPAGE.value; document.form.submit(); } if(ret[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); } } //キャンセル function CANCEL(){ document.form.FLG.value = "BACK"; document.form.action =document.form.PREURL.value; document.form.submit(); } //パスワード変更 function ChangePass(){ SID=document.form.SID.value; PID=document.form.PID.value; nowpass=document.form.nowpass.value; newpass1=document.form.newpass1.value; newpass2=document.form.newpass2.value; ret=ChkFormat(SID,PID,nowpass,newpass1,newpass2); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; document.form.nowpass.value="" document.form.newpass1.value="" document.form.newpass2.value="" return; } ret2=DataSet(SID,PID,newpass1); ret2=ret2.split("^"); if(ret2[0]==1){ document.form.action = document.form.NEXTPAGE.value; document.form.submit(); } if(ret2[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); } } //新規パスワード登録・認証 function NewPassLogin(){ SID=document.form.SID.value; PID=document.form.PID.value; ucard=document.form.ucard.value; birth=document.form.birth.value; tel=document.form.tel.value; ret=ChkFormat(SID,PID,ucard,birth,tel); ret=ret.split("^"); if(ret[0]==1){ document.form.action = document.form.NEXTPAGE.value; document.form.submit(); return; } if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } } //新規パスワード登録・登録 function NewPass(){ SID=document.form.SID.value; PID=document.form.PID.value; pass1=document.form.pass1.value; pass2=document.form.pass2.value; ret=ChkFormat(SID,PID,pass1,pass2); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } ret2=DataSet(SID,PID,pass1); ret2=ret2.split("^"); if(ret2[0]==1){ document.form.action = document.form.NEXTPAGE.value; document.form.submit(); } if(ret2[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); } } //シリーズ予約組替へ遷移 function GoRsvMChg(next){ SID=document.form.SID.value; PID=document.form.PID.value; ret=RSVMLIST(SID,PID,"change"); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } if(ret[0]==1){ document.form.action = next; document.form.submit(); } } //シリーズ予約組替・実行 function RsnMChg(){ SID=document.form.SID.value; PID=document.form.PID.value; ret=RSVMCHG(SID,PID,"check"); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } ret2=RSVMCHG(SID,PID,"change"); ret2=ret2.split("^"); if(ret2[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); } if(ret2[0]==1){ document.form.action = document.form.PREURL.value; document.form.submit(); return; } } //シリーズ予約解除へ遷移 function GoRsvMDel(next){ SID=document.form.SID.value; PID=document.form.PID.value; ret=RSVMLIST(SID,PID,"del"); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } if(ret[0]==1){ document.form.action = next; document.form.submit(); } document.form.action = next; document.form.submit(); } //シリーズ予約解除・実行 function RsnMDel(){ SID=document.form.SID.value; PID=document.form.PID.value; ret=RSVMDEL(SID,PID,"check"); ret=ret.split("^"); if(ret[0]==0){ document.getElementById("errorMsg").innerHTML ="

"+ ret[1]+"

"; return; } ret2=RSVMDEL(SID,PID,"del"); ret2=ret2.split("^"); if(ret2[0]==0){ document.form.action = "../OPS/OPSERROR.CSP?FLG=MES_Basic"; document.form.submit(); } if(ret2[0]==1){ document.form.action = document.form.PREURL.value; document.form.submit(); return; } } //予約かごへ登録 function GoCart(url,bid,lid){ document.form.bid.value=bid; document.form.LID.value=lid; document.form.action = url; document.form.submit(); } //SDI登録での分類確定 function ClassSet(key){ ret=GetParam(); ret=ret.split(","); if(ret[0]!=""){window.opener.document.form.elements["ttl"].value=ret[0];} if(ret[1]!=""){window.opener.document.form.elements["aut"].value=ret[1];} if(ret[2]!=""){window.opener.document.form.elements["pub"].value=ret[2];} if(ret[3]!=""){window.opener.document.form.elements["subj"].value=ret[3];} if(ret[4]!=""){window.opener.document.form.elements["sk51"].value=ret[4];} if(ret[5]!=""){window.opener.document.form.elements["sk41"].value=ret[5];} if(ret[6]!=""){window.opener.document.form.elements["sk43"].value=ret[6];} if(ret[7]!=""){window.opener.document.form.elements["sk42"].value=ret[7];} if(ret[8]!=""){window.opener.document.form.elements["sk45"].value=ret[8];} classmax=window.opener.document.form.CLASSMAX.value; ele="CLASSID("+classmax+")"; SID=window.opener.document.form.SID.value; ret=RemainFlgSet(SID); window.opener.document.form.elements[ele].value=key; window.opener.document.form.submit(); window.close(); } //分類検索 function SRCHMRDF(page,key,qu){ text = "text(1)"; qual = "qual(1)"; opr = "opr(1)"; document.form.action = page; document.form.elements[text].value=key; document.form.elements[qual].value=qu; document.form.elements[opr].value="AND"; document.form.submit(); } //書誌詳細 詳しい書誌事項を見る function BIBLISTMORE(){ document.form.BIBLISTMORE.value=1; document.form.submit(); } function BIBLISTCLOSE(){ document.form.BIBLISTMORE.value=""; document.form.submit(); }