function checkLogin(account){ if(account == ""){ alert("請先登入會員"); window.location.href = "login01.php"; }else{ window.location.href = "cart.php"; } }