﻿function StarClick1(atrrID)
{
    //clientCommentStarModule.StarClick(atrrID,'1');
    shopSite.Comment.StarClick(atrrID,'1');
    document.getElementById("img" + atrrID + "_1").className = "red1";
    document.getElementById("img" + atrrID + "_2").className = "grey2";
    document.getElementById("img" + atrrID + "_3").className = "grey3";
    document.getElementById("img" + atrrID + "_4").className = "grey4";
    document.getElementById("img" + atrrID + "_5").className = "grey5"; 
}

function StarClick2(atrrID)
{
    //clientCommentStarModule.StarClick(atrrID,'2');
    shopSite.Comment.StarClick(atrrID,'2');
    document.getElementById("img" + atrrID + "_1").className = "red1";
    document.getElementById("img" + atrrID + "_2").className = "red2";
    document.getElementById("img" + atrrID + "_3").className = "grey3";
    document.getElementById("img" + atrrID + "_4").className = "grey4";
    document.getElementById("img" + atrrID + "_5").className = "grey5"; 
}

function StarClick3(atrrID)
{
    //clientCommentStarModule.StarClick(atrrID,'3');
    shopSite.Comment.StarClick(atrrID,'3');
    document.getElementById("img" + atrrID + "_1").className = "red1";
    document.getElementById("img" + atrrID + "_2").className = "red2";
    document.getElementById("img" + atrrID + "_3").className = "red3";
    document.getElementById("img" + atrrID + "_4").className = "grey4";
    document.getElementById("img" + atrrID + "_5").className = "grey5"; 
}

function StarClick4(atrrID)
{
    shopSite.Comment.StarClick(atrrID,'4');
    document.getElementById("img" + atrrID + "_1").className = "red1";
    document.getElementById("img" + atrrID + "_2").className = "red2";
    document.getElementById("img" + atrrID + "_3").className = "red3";
    document.getElementById("img" + atrrID + "_4").className = "red4";
    document.getElementById("img" + atrrID + "_5").className = "grey5"; 
}

function StarClick5(atrrID)
{
    shopSite.Comment.StarClick(atrrID,'5');
    document.getElementById("img" + atrrID + "_1").className = "red1";
    document.getElementById("img" + atrrID + "_2").className = "red2";
    document.getElementById("img" + atrrID + "_3").className = "red3";
    document.getElementById("img" + atrrID + "_4").className = "red4";
    document.getElementById("img" + atrrID + "_5").className = "red5"; 
}
//function StarClick1(atrrID)
//{
//    Modules_clientCommentStarModule.StarClick(atrrID,'1');
//    document.getElementById("img" + atrrID + "_1").src="red1";
//    document.getElementById("img" + atrrID + "_2").src="grey2";
//    document.getElementById("img" + atrrID + "_3").src="grey3";
//    document.getElementById("img" + atrrID + "_4").src="grey4";
//    document.getElementById("img" + atrrID + "_5").src="grey5"; 
// }

//function StarClick2(atrrID)
//{
//    clientCommentStarModule.StarClick(atrrID,'2');
//    document.getElementById("img" + atrrID + "_1").src="red1";
//    document.getElementById("img" + atrrID + "_2").src="red2";
//    document.getElementById("img" + atrrID + "_3").src="grey3";
//    document.getElementById("img" + atrrID + "_4").src="grey4";
//    document.getElementById("img" + atrrID + "_5").src="grey5"; 
//}

//function StarClick3(atrrID)
//{
//    Modules_clientCommentStarModule.StarClick(atrrID,'3');
//    document.getElementById("img" + atrrID + "_1").src="red1";
//    document.getElementById("img" + atrrID + "_2").src="red2";
//    document.getElementById("img" + atrrID + "_3").src="red3";
//    document.getElementById("img" + atrrID + "_4").src="grey4";
//    document.getElementById("img" + atrrID + "_5").src="grey5"; 
//}

//function StarClick4(atrrID)
//{
//    Modules_clientCommentStarModule.StarClick(atrrID,'4');
//    document.getElementById("img" + atrrID + "_1").src="red1";
//    document.getElementById("img" + atrrID + "_2").src="red2";
//    document.getElementById("img" + atrrID + "_3").src="red3";
//    document.getElementById("img" + atrrID + "_4").src="red4";
//    document.getElementById("img" + atrrID + "_5").src="grey5"; 
//}

//function StarClick5(atrrID)
//{
//    Modules_clientCommentStarModule.StarClick(atrrID,'5');
//    document.getElementById("img" + atrrID + "_1").src="red1";
//    document.getElementById("img" + atrrID + "_2").src="red2";
//    document.getElementById("img" + atrrID + "_3").src="red3";
//    document.getElementById("img" + atrrID + "_4").src="red4";
//    document.getElementById("img" + atrrID + "_5").src="red5"; 
//}
