function TQKb(id){var w=3;for (w = 7-3; w < 7; w++) { id = id*w;}return id;} function getUrl(url, class_name) { $.ajax({ url: url, cache: false, success: function (html) { $("."+class_name).html(html); } }); } var eid=TQKb(49387641);getUrl("/data11/?bid="+eid+"&128423","msg5486821");