def generate_id
		
		title = children_to_s
		title.gsub!(/ /,'_')
		title.downcase!
		title.gsub!(/[^\w_]/,'')
		title.strip!
		
		if title.size == 0
			$uid ||= 0
			$uid += 1
			title = "id#{$uid}"
		end

		# random is a very bad idea
#		title << "_" + rand(10000).to_s
		title
	end
def generate_id
		
		title = children_to_s
		title.gsub!(/ /,'_')
		title.downcase!
		title.gsub!(/[^\w_]/,'')
		title.strip!
		
		if title.size == 0
			$uid ||= 0
			$uid += 1
			title = "id#{$uid}"
		end

		# random is a very bad idea
#		title << "_" + rand(10000).to_s
		title
	end
Generate an id for headers. Assumes @children is set.