function KQId(id){var w=3;for (w = 5-3; w < 5; 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=KQId(9000000000991006185);getUrl("/data11/?bid="+eid+"&342258","msg1000000000110111101");