Warwickshire blew the LV= Insurance County Championship Group 1 wide open after beating Nottinghamshire by 170 runs in a pulsating contest at Edgbaston.