Both "My Name Is Earl" and "The Office" will return for 22 episodes in the 2006-07 season, ensuring that the network will have a couple of half-hour building blocks as it tries to regain the ratings it's lost over the past couple years. The pickups come on the heels of the two series' move from Tuesday to Thursday without suffering any appreciable drop in ratings.
Source
Source