<!-- http://www.fyneworks.com/jquery/star-rating-->

	$(function(){
     $('#results form').submit(function(){
      $('.displayresults',this).html('');
      $('input',this).each(function(){
       if(this.checked) $('.displayresults',this.form).append(''+this.name+': '+this.value+'<br/>');
            });
      return false;
     });
    });

/*
$(function(){
 $('.hover-star-beoordeling').rating({
  callback: function(value, link){
   // 'this' is the hidden form element holding the current value
   // 'value' is the value selected
   // 'element' points to the link element that received the click.
   alert("The value selected was '" + value + "'\n\nWith this callback function I can automatically submit the form with this code:\nthis.form.submit();");
   
   // To submit the form automatically:
   this.form.submit();
   
   // To submit the form via ajax:
   //$(this.form).ajaxSubmit();
  }
 });
});*/


<!--review-group-->
	$(function(){
     $('.review-group-beoordeling').rating();
    });
	$(function(){
     $('.review-group-kwaliteit').rating();
    });
	$(function(){
     $('.review-group-verwachtingen').rating();
    });


	

<!--	de drie functies voor de drie soorten ratings-->
    $(function(){
     $('.hover-star-beoordeling').rating({
      focus: function(value, link){
        // 'this' is the hidden form element holding the current value
        // 'value' is the value selected
        // 'element' points to the link element that received the click.
        var tip1 = $('#AlgemenebeoordelingOutput');
        tip1[0].data = tip1[0].data || tip1.html();
        tip1.html(link.title || 'value: '+value);
      },
      blur: function(value, link){
        var tip1 = $('#AlgemenebeoordelingOutput');
        $('#AlgemenebeoordelingOutput').html(tip1[0].data || '');
      }
     });
    });
    
    $(function(){
     $('.hover-star-kwaliteit').rating({
      focus: function(value, link){
        // 'this' is the hidden form element holding the current value
        // 'value' is the value selected
        // 'element' points to the link element that received the click.
        var tip2 = $('#PrijskwaliteitOutput');
        tip2[0].data = tip2[0].data || tip2.html();
        tip2.html(link.title || 'value: '+value);
      },
      blur: function(value, link){
        var tip2 = $('#PrijskwaliteitOutput');
        $('#PrijskwaliteitOutput').html(tip2[0].data || '');
      }
     });
    });
    
    $(function(){
     $('.hover-star-verwachtingen').rating({
      focus: function(value, link){
        // 'this' is the hidden form element holding the current value
        // 'value' is the value selected
        // 'element' points to the link element that received the click.
        var tip3 = $('#Verwachting');
        tip3[0].data = tip3[0].data || tip3.html();
        tip3.html(link.title || 'value: '+value);
      },
      blur: function(value, link){
        var tip3 = $('#Verwachting');
        $('#Verwachting').html(tip3[0].data || '');
      }
     });
    });

