﻿// JScript 文件
function showAlert(isShow, imgPic, labBlessCount){
if(isShow == 'true'){
    var pic = document.getElementById(imgPic).src.split("_");
    if(pic.length ==4){ //pic_1_10000_l.gif              
        var gradeCount =pic[2];
        var currCount = document.getElementById(labBlessCount).innerHTML;
        var nexCount = (gradeCount - currCount);
        if(gradeCount == 0) nexCount="0";
        
         var grade =pic[1];
        document.getElementById("sGrade").innerHTML = grade;
        document.getElementById("SNextChangeNum").innerHTML = nexCount;
        for (var i=1; i<=grade; i++){
            var imgSrc = document.getElementById("img" + i).src;
            if(imgSrc.indexOf("_l")<0){
                document.getElementById("img" + i).src = imgSrc.substring(0,imgSrc.indexOf(".gif")) + "_l.gif";
            }
        }
    }
    document.getElementById("imgGradeList").style.display = "block";
}else{
    document.getElementById("imgGradeList").style.display = "none";
}
}