var stemmen = true;

function stem_mouse_over( stem , max , img_dir ){ 
    	
	if( stemmen ) {

		for( i = 1 ; i <= stem ; i++) {
 
			document.getElementById( 'stem_score_'+ i ).src = img_dir +'/score_'+ i +'.png'; 

		}

		for( j = i ; j <= max ; j++ ) {
 
			document.getElementById( 'stem_score_'+ j ).src = img_dir +'/score_0.png'; 

		}

	}

} 

function stem( score , id , module , ajax ) {

	if( stemmen ) {

		ajaxpack.getAjaxRequest( "ajax.php" , "m="+ module +"&a="+ ajax +"&id="+ id +"&score="+ score , gem_stemmen, "txt")

		stemmen = false;

	}

}

function gem_stemmen( ) {
	
	var myajax=ajaxpack.ajaxobj

	if ( myajax.readyState == 4 && myajax.status == 200 ) { 

		document.getElementById( 'stemmen_gem_score' ).innerHTML = myajax.responseText;

  	}

}

