       function RatingSet(obj) {
               obj = this;
               objectId = false;
               rating = false;

			   //alert("we have "+obj.id);
				
               if (obj.id.substr(0,1) == 'm') {
                       objectId = obj.id.substr(4);
                       rating = obj.id.substr(1,1);
               //        alert("this is called rating is "+rating+" objectid is "+objectId);
               } 

               if (objectId) {
                       var response = $.get('/system/php/service.php', { f: 'addRating', objectId: objectId, rating: rating}, function(data) {
                               if (data) {
                                       $('#rating' + objectId).html(data);
                               }
                       });
               }
       }



       $(document).ready(
               function() {
                       $('.butt_raiting').click(RatingSet);
               }
       );
