function fixDocItems(){
tables = document.getElementsByTagName('TABLE');
tables_num=tables.length;
	for(i=0;i<tables_num;i++){
		if(tables[i].id.substr(0,12)=='docItemTable'){			
			item_id = tables[i].id.substr(12,tables[i].id.length);
			current_height = document.getElementById('docItemTable'+item_id).offsetHeight;
			parent_height=tables[i].parentElement.offsetHeight;			
			if(current_height<parent_height){
				document.getElementById('docItem'+item_id).style.height = parent_height-52;
			}			
		}

	}
}
