function SubmitRating(AllRatings, TotalSkillsRated, TotalRating)
   {

    var RatingList = new Array();
    for (var i = 0; i < TotalSkillsRated; i++) {
        var ratingSCore = document.getElementById("Rating_"+AllRatings.RatedSkills[i].SkillId).value
        var SkillID = AllRatings.RatedSkills[i].SkillId
        var Notes = document.getElementById("TxtAra_"+AllRatings.RatedSkills[i].SkillId).value

       
        {
            var RatingObject = {};

            RatingObject.SkillId = SkillID;
            RatingObject.RatingScore = ratingSCore;
            RatingObject.Note = Notes;
            RatingList.push(RatingObject);
        }}
      for (var i = 0; i < TotalRating; i++)
      {
            var ratingSCore = document.getElementById("Rating_"+AllRatings.SkillRatings[i].skillId).value
            var SkillID = AllRatings.SkillRatings[i].skillId
            var Notes = document.getElementById("TxtAra_"+AllRatings.SkillRatings[i].skillId).value

            if (ratingSCore != "") 
            {
                var RatingObject = {};

                RatingObject.SkillId = SkillID;
                RatingObject.RatingScore = ratingSCore;
                RatingObject.Note = Notes;
                RatingList.push(RatingObject);
            }
        }
    
      
   
        CompleteRating(RatingList);


    }
//Function to validate and collect all the rating values.arguments passed are list of rated skills and total count of skills 
Function to validate and collect all the rating values.arguments passed are list of rated skills and total count of skills
Function to validate and collect all the rating values . arguments passed are list of rated skills and total count of skills
function SubmitRating(AllRatings, TotalSkillsRated, TotalRating)
   {
    var RatingList = new Array();
    for (var i = 0; i < TotalSkillsRated; i++) {
        var ratingSCore = document.getElementById("Rating_"+AllRatings.RatedSkills[i].SkillId).value
        var SkillID = AllRatings.RatedSkills[i].SkillId
        var Notes = document.getElementById("TxtAra_"+AllRatings.RatedSkills[i].SkillId).value
        {
            var RatingObject = {};
            RatingObject.SkillId = SkillID;
            RatingObject.RatingScore = ratingSCore;
            RatingObject.Note = Notes;
            RatingList.push(RatingObject);
        }}
      for (var i = 0; i < TotalRating; i++)
      {
            var ratingSCore = document.getElementById("Rating_"+AllRatings.SkillRatings[i].skillId).value
            var SkillID = AllRatings.SkillRatings[i].skillId
            var Notes = document.getElementById("TxtAra_"+AllRatings.SkillRatings[i].skillId).value
            if (ratingSCore != "") 
            {
                var RatingObject = {};
                RatingObject.SkillId = SkillID;
                RatingObject.RatingScore = ratingSCore;
                RatingObject.Note = Notes;
                RatingList.push(RatingObject);
            }
        }
        CompleteRating(RatingList);
    }
function SubmitRating ( AllRatings , TotalSkillsRated , TotalRating ) { var RatingList = new Array ( ) ; for ( var i = 0 ; i < TotalSkillsRated ; i ++ ) { var ratingSCore = document . getElementById ( "Rating_" + AllRatings . RatedSkills [ i ] . SkillId ) . value var SkillID = AllRatings . RatedSkills [ i ] . SkillId var Notes = document . getElementById ( "TxtAra_" + AllRatings . RatedSkills [ i ] . SkillId ) . value { var RatingObject = { } ; RatingObject . SkillId = SkillID ; RatingObject . RatingScore = ratingSCore ; RatingObject . Note = Notes ; RatingList . push ( RatingObject ) ; } } for ( var i = 0 ; i < TotalRating ; i ++ ) { var ratingSCore = document . getElementById ( "Rating_" + AllRatings . SkillRatings [ i ] . skillId ) . value var SkillID = AllRatings . SkillRatings [ i ] . skillId var Notes = document . getElementById ( "TxtAra_" + AllRatings . SkillRatings [ i ] . skillId ) . value if ( ratingSCore != "" ) { var RatingObject = { } ; RatingObject . SkillId = SkillID ; RatingObject . RatingScore = ratingSCore ; RatingObject . Note = Notes ; RatingList . push ( RatingObject ) ; } } CompleteRating ( RatingList ) ; }
Function to validate and collect all the rating values.arguments passed are list of rated skills and total count of skills
Function to validate and collect all the rating values . arguments passed are list of rated skills and total count of skills