
// Current selected block
var CurrentBlockRating = -1;

// -----------------------------------
// Light rating
// -----------------------------------

function LightRating(start, active)
    {

    // Counter
    var n, comp;

    // Run over rating and draw stars
    for(n=0;n<6;n++)
        {
        // Get component
        comp = document.getElementById(start+"_"+n);
        if(!comp)
            break;
        // Check is this component lights
        if( (n)<=active && comp)  comp.src="/images/star.gif"; else comp.src="/images/star_inact.gif";
        }

    }

