function submit_email() {
    var email = $('#email').val();
    if (email == "") {
        $("#successmsg").html("<div style='padding: 0px 0px 10px 0px;'><span style='color: red;'>Please enter you email address</div></span>");
        $("#email").focus();
        return false;
    }
    $("#successmsg").html("<span style='color: red;'>You have been added to our mailing list</span>");
    $("#email").val("");
    urlsegment = "../../../mailinglist/sendemailaddress.php";
    $.ajax({
        url     : urlsegment,
        type    : "post",
        timeout : 20000,
        data    : ({email : email}),
        dataType: "json",
        error   : function(XMLHttpRequest, textStatus, errorThrown) {
                    
                  },
        success : function(response) {
                    
                }
    });
    return true;
}
