//===Mobile=== function fCheckInputm() { var temp; var temp2; var mystr; temp=""; mystr=document.form1m.sAccount.value if(mystr=="") { temp=temp + "\n *帳 號!" } mystr=document.form1m.sPassword.value if(mystr=="") { temp=temp + "\n *密 碼!" } mystr=document.form1m.sCode.value; if(mystr=="") { document.form1m.sCode.focus(); temp=temp + "\n *驗證碼(共五碼,請注意勿輸入空格!)" } if(temp!="") { temp2="您沒有填妥:\n" + temp + "\n\n請填妥後再登入" fCodeChangem(); window.alert(temp2); return false; } else { var fFlag=fDetectIE(); if(fFlag!=false) { document.form1m.action=sServerPath+'Member/LoginAction.aspx'; document.form1m.sFlagIE.value='Y'; } else{ document.form1m.action=sServerPath+'Member/LoginAction.aspx#notice';} return true; } } //首頁右側login.aspx登入區塊 function fCodeChangem() { //ID和function不可重複,但web與手機呼叫的RandomCode.ashx要用同一支 document.getElementById("sRandomCodem").src = "../include/RandomCode.ashx?" +Math.random(); } //===PC=== function fCheckInput() { var temp; var temp2; var mystr; temp=""; mystr=document.formLogin.sAccount.value if(mystr=="") { temp=temp + "\n *帳 號!" } mystr=document.formLogin.sPassword.value if(mystr=="") { temp=temp + "\n *密 碼!" } mystr=document.formLogin.sCode.value; if(mystr=="") { document.formLogin.sCode.focus(); temp=temp + "\n *驗證碼(共五碼,請注意勿輸入空格!)" } if(temp!="") { temp2="您沒有填妥:\n" + temp + "\n\n請填妥後再登入" fCodeChange(); window.alert(temp2); return false; } else { var fFlag=fDetectIE(); if(fFlag!=false) { document.formLogin.action=sServerPath+'Member/LoginAction.aspx'; document.formLogin.sFlagIE.value='Y'; } else{ document.formLogin.action=sServerPath+'Member/LoginAction.aspx#notice';} return true; } } //首頁右側login.aspx登入區塊 function fCodeChange() { //ID和function不可重複,但web與手機呼叫的RandomCode.ashx要用同一支 document.getElementById("sRandomCode").src=sServerPath + "/include/RandomCode.ashx?"+Math.random(); //alert( document.getElementById("sRandomCode").src); }