/*-------------------- --------------------*/ function selectmenu(linkLoc) { if(linkLoc !="") { window.location.href=linkLoc; } } /*-------------------- --------------------*/ // /*-------------------- --------------------*/ function blink() { if (document.all("blink_1").style.visibility == "visible") { document.all.blink_1.style.visibility = "hidden"; } else { document.all.blink_1.style.visibility = "visible"; } setTimeout("blink()", 800); } /*-------------------- --------------------*/ function login_chk(){ msg=""; document.frm_login.tel.value=document.frm_login.tel.value.replace( /^[\s ]+|[\s ]+$/g , '' ); document.frm_login.pass.value=document.frm_login.pass.value.replace( /^[\s ]+|[\s ]+$/g , '' ); if(document.frm_login.tel.value=="" || document.frm_login.tel.value.match(/[^0-9]/g)){ msg =msg + "ログインIDの入力が正しくありません。\n"; } if(document.frm_login.pass.value=="" || document.frm_login.pass.value.match(/[^0-9a-zA-Z_]+/)){ msg =msg + "パスワードの入力が正しくありません。\n"; } if(msg==""){ if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { if(xmlhttp.responseText==""){ document.frm_login.submit(); //return true; }else{ document.getElementById("errormsg").innerHTML=xmlhttp.responseText; return false; } } } xmlhttp.open("GET","login_ajax.php?1714205005&tel="+document.frm_login.tel.value+"&pass="+document.frm_login.pass.value,true); xmlhttp.send(); }else{ alert(msg); return false; } }