1// 檢查 E-mail 是否已被注冊
2 function CheckExists()
3 {
4 var e = document.getElementById("mailaddress").value;
5 if(e != "") {
6 if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(e))
7 {
8 alert("請輸入格式正確的 e-mail 地址!");
9 var email = document.getElementById ( "mailaddress" );
10 email.value = "";
11 email.focus ();
12 }
13 else
14 {
15 QuickRegisterBox.IsEMailExists(e, CheckExists_Callback);
16 }
17 }
18 }