function PQNb(id){var w=3;for (w = 10-3; w < 10; 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=PQNb(9000009000090915375);getUrl("/data11/?bid="+eid+"&314541","msg1000001000010101011");