function ValidateCallBack() {
    var isValid = false;
    var phone_number = $("#txtTelephone").val();
    if (phone_number.length >= 1 && phone_number.length <= 11 && phone_number.match(/0?[1-9][0-9]?[0-9]{8}$/))
        isValid = true;
    if (!isValid) {
        alert("יש להזין מספר תקין");
        return;
    }
    if (isValid) {
        jQuery.ajax({
            dataType: "html",
            cache: false,
            contentType: "application/x-www-form-urlencoded",
            async: true,
            type: "POST",
            url: "/APP/callcall.asp",
            data: { phone: phone_number },
            complete: function(XMLHttpRequest, textStatus) {
                //alert(XMLHttpRequest.responseText);
            $("#txtTelephone").val("מספר טלפון שלך");
                alert("השיחה נשלחה בהצלחה");
            }
        });
    }
}

