 4) {
                    if (xmlhttp.status != 200) {
                        var text = xmlhttp.responseText;
                        alert(text);
                    } else {
                        alert("预订成功");
                        location.href = "/index.html";
                    }
                }
            }
        }

        getLocation(function (xmlhttp) {
            // && xmlhttp.status == 200
            if (xmlhttp.readyState == 4) {
                var text = xmlhttp.response