//==================== for Mem Error 20060925 ART  =========================

function frmOrder_Validator(theForm)
{
  if (theForm.EMail.value == "")
  {
    alert("請確實填寫「E-mail帳號」。");
    theForm.EMail.focus();
    return (false);
  }
  
  if (theForm.Password.value == "")
  {
    alert("請設定個人「帳號密碼」。");
    theForm.Password.focus();
    return (false);
  }

  if (theForm.Password_Confirm.value == "")
  {
    alert("請確實填寫「密碼確認」。");
    theForm.Password_Confirm.focus();
    return (false);
  }
  
   if (theForm.User_Id.value == "")
  {
    alert("請設定個人「暱稱」。");
    theForm.User_Id.focus();
    return (false);
  }
  
   
  if (theForm.First_name.value == "")
  {
    alert("請務必輸入「姓名」。");
    theForm.First_name.focus();
    return (false);
  }

   if (theForm.Zip.value == "")
  {
    alert("請正確填寫「郵遞區號」。");
    theForm.Zip.focus();
    return (false);
  }
  
  if (theForm.Address1.value == "")
  {
    alert("請正確填寫「連絡地址」。");
    theForm.Address1.focus();
    return (false);
  }
  
  
  if (theForm.CellPhone.value == "")
  {
    alert("請務必輸入「行動電話」。");
    theForm.CellPhone.focus();
    return (false);
  }

  
  if (theForm.Phone.value == "")
  {
    alert("請務必輸入「連絡電話」，公司或住家電話皆可。");
    theForm.Phone.focus();
    return (false);
  }

 if (theForm.Phone.value <7)
  {
    alert("請務必輸入正確的「連絡電話」，公司或住家電話皆可。");
    theForm.Phone.focus();
    return (false);
  }

  return (true);
}

