Split errors and warnings to red and green divs.