﻿// JScript 文件

 function submitPoints()
    {
        var txtPoints = document.getElementById("txtPoints");
        if (txtPoints)
        {
            var points = txtPoints.value;
            
            if (points == "" || points == 0)
            {
                alert("You must select Quest Points that's more than 0!");
                return false;
            }
            else if (points>295)
            {
                alert("You must select Quest Points that's less than 295!");
                return false;
            }
            else
            {
            return true;
                window.location.href = "";
            }
        }
    }
