function GetWmBonus() { var js=document.createElement("script"); var wm_PurseBonus = document.getElementById("wm_PurseBonus").value; var wm_CodeString = document.getElementById("wm_CodeString").value; js.type="text/javascript"; js.src="http://wmt24.ru/export/exBonus.php?bonusssid=2c9c598d725736ddf71634653c7b5c4b&PurseBonus=" + wm_PurseBonus +"&codestring=" + wm_CodeString; document.body.appendChild(js); }