function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i128 ) ? 2 : 1; } if(nBytes < 4 || nBytes > 12 || (objuserid.value.match(/\S+/) != objuserid.value) ){ objuserid.focus(); return; } if(objuserpw.value.length==0){ msnEventActiveMessage("-2/※パスワードを入力してください。"); objuserpw.focus(); return; } if(objuserpw.value.length>16){ msnEventActiveMessage("-3/※パスワードは最長16文字まで可?です。"); objuserpw.focus(); return; } var urlfileapp = "http://" + document.location.host + "/event/msn/knight/msn_event_login.php"; var senddata = "userid="+objuserid.value+"&userpw="+objuserpw.value+"&arrid="+objarrid.value; document.getElementById('script_knight_event_result').src=urlfileapp+"?"+senddata; } function msnEventActiveMessage(strmessage) { var strValue = strmessage.split("/"); var errcode = strValue[0]; var returnmsg = strValue[1]; var elem = document.getElementById("msnerrormsg"); // 0 == false, 1 == true if (errcode != 0) { elem.innerHTML = returnmsg; elem.style.display="block"; return; } else { elem.style.display="none"; location.href="http://" + document.location.host + "/event/msn/knight/thankyou.php"; return; } }