// © http://uweb.su/
function playRepgame(){var h = $("#stvka").val(); if (window.reqNow) return alert('Запрос уже выполняется'); if (/\D+/.test(h) || !h) return alert('Поля заполнены неправильно'); $("#statimgj").show(); window.reqNow = true; $.getScript("/php/reputation/index.php?s=" + $("#stvka").val(), function(){ window.reqNow = false; _uWnd.alert('<span style="color: ' + (_repst?"black":"red") + '"><br>' + _repgame + '</span>', ' ', {w: 290, h: 100, tm: 5000}); if (_repst) $("#stvka").val(""); try {$("#hasrepgame").html(_repnow).css("color", "red"); setTimeout(function(){ $("#hasrepgame").css("color", "black");}, 1000); } catch(e){} $("#statimgj").hide();});}
function gameRept(){alert('Только для зарегистрированных пользователей.');}
function chckgmr(i){ if ((/^\d+$/.test(i.value)) && parseInt(i.value)>0) { i.style.color=""; $(".wlshw").show(); $(".jjgf").hide(); var k = hpts - parseInt(i.value); $("#winrepgame").html(hpts + parseInt(i.value)).css("color","green"); $("#loserepgame").html(k); if (k<0) { $(".wlshw").hide(); $(".jjgf").show(); i.style.color="red"; }} else {i.style.color="red"; $(".wlshw").hide(); $(".jjgf").show(); }}
</script>
<a href="javascript://" onclick="gameRept();return false;">Игра на репутацию</a>