
function mod(obj_type, id, value) {
    jQuery('table#doc_table').load(document.URL + "doc_rating/", 
				   { obj_type : obj_type,
					   id : id,
					   value : value,
					   doc_count : doc_count });
    
}



function preview_description(method){
    response = {};
    response.method = method;
    response.content = $('#id_content').val();
    $('#description').load(document.URL + 'description/', response);
}

/* update of description and textarea with the apropriate version
 * could be more efficient with json...
 */
function update_version(version){
    url = document.URL + 'description/' + version + '/'
    jQuery('#description').load(url);
    jQuery.get(url + 'raw/',
	       function(data){
		   jQuery('#id_content')[0].value=data;
	       }
	       );
}