function AjaxShowForm(a, v) {
var data = $("#" + v).serialize();
var el = $("#" + a);
$.ajax({
type: "POST",
url: "",
data: data,
beforeSend: function (html) { // this happens before actual call
el.html("درحال ارسال..").show();
},
success: function (html) { // this happens after we get results
el.html("").show();
if (html === "Ok") {
el.append("ارسال شد");
} else {
el.append(html);
}
}
});
return false;
}