function sendPromoEmail() {
    if(validateEmailAddress("#promoEmail")) {
        $.ajax({
            url: "/PromoSignup?k=" + (Math.random()*10000000000000000),
            dataType: "json",
            data: { email: $("#promoEmail").val() },
            success: function(response) {
                if(response.success) {
                    $("#promoPanel").html(
                        "<b>Thank you for signing up to Purple Parking promotional emails and discount offers</b>"
                    );
                    if(typeof(_vis_opt_top_initialize) == "function") {
                        _vis_opt_register_conversion(2, 13);
                    }
                } else {
                    alert("Unable to sign you up at this time. " + response.message);
                }
            },
            error: function(request,message,error) {
                alert("Unable to sign you up at this time. " + message);
            }
        });
    } else {
        alert("Please enter a valid email address.");
    }
};


