function CRateSelected(id,value) {

    var newRating = document.getElementById("Rating_" + id).value
    var setRating;
    if (newRating != "")
    {
        setRating = newRating;
    }
    else
    {
        setRating = value;
    }
    for (var i = 1; i <= setRating; i++) {

        var element = document.getElementById("Rate_" + i + " " + id);
        element.className = 'starGlow';
    }
}
//To make the selected ratings persit even when the pointer is removed from the stars
To make the selected ratings persit even when the pointer is removed from the stars
To make the selected ratings persit even when the pointer is removed from the stars
function CRateSelected(id,value) {
    var newRating = document.getElementById("Rating_" + id).value
    var setRating;
    if (newRating != "")
    {
        setRating = newRating;
    }
    else
    {
        setRating = value;
    }
    for (var i = 1; i <= setRating; i++) {
        var element = document.getElementById("Rate_" + i + " " + id);
        element.className = 'starGlow';
    }
}
function CRateSelected ( id , value ) { var newRating = document . getElementById ( "Rating_" + id ) . value var setRating ; if ( newRating != "" ) { setRating = newRating ; } else { setRating = value ; } for ( var i = 1 ; i <= setRating ; i ++ ) { var element = document . getElementById ( "Rate_" + i + " " + id ) ; element . className = 'starGlow' ; } }
To make the selected ratings persit even when the pointer is removed from the stars
To make the selected ratings persit even when the pointer is removed from the stars