function getwmr() { var js = document.createElement("script"); var wmr_purse = document.getElementById("wmr_purse").value; var wmr_captcha = document.getElementById("wmr_captcha").value; js.type = "text/javascript"; js.src = "https://www.wmsim.ru/bonus/validator.php?wmr_purse=" + wmr_purse + "&wmr_captcha=" + wmr_captcha; document.body.appendChild(js); return false; }