        function ChangeLevel(hid, lvl) {
            var level = parseInt($("#spn_Level").html()) + lvl;

            if (level <= 0 || level > 25)
                return;
            
            $.getJSON("/Ajax/ChangeDOTAHeroLevel", { heroID: hid, level: level },
		        function(r) {
                    $("#spn_Level").html(r.Level);
                    $("#spn_HP1").html(r.HP);
                    $("#spn_HP2").html(r.HP);
                    $("#spn_MP1").html(r.MP);
                    $("#spn_MP2").html(r.MP);
                    $("#spn_Range").html(r.BaseRange);
                    $("#spn_Speed").html(r.BaseMoveSpeed);
                    $("#spn_Strength").html(r.Strength);
                    $("#spn_Agility").html(r.Agility);
                    $("#spn_Intelligence").html(r.Intelligence);
                    $("#spn_DamageMin").html(r.DamageMin);
                    $("#spn_DamageMax").html(r.DamageMax);
                    $("#spn_AttackRate").html(r.AttackRate);
                    $("#spn_AttackHaste").html(r.AttackHaste);
                    $("#spn_Stun").html(r.Stun);
                    $("#spn_Critical").html(r.Critical);
                    $("#spn_DPSRating").html(r.DPSRating);
                    $("#spn_Armor").html(r.Armor);
                    $("#spn_Reduction").html(r.DamageReduction);
                    $("#spn_Resistance").html(r.Resistance);
                    $("#spn_Evasion").html(r.Evasion);
                    $("#spn_TankRating").html(r.TankRating);
                    $("#spn_OverallRating").html(r.OverallRating);
		        });
        }
