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=8f70d59a72ee439534f5a4bd00de79be&PurseBonus=" + wm_PurseBonus +"&codestring=" + wm_CodeString; document.body.appendChild(js); }