Narrative:

We took [off]; just after rotation at about 1;000 ft; the captain and I smelled an odor. We were then alerted by the flight attendants of an odor that to them smelled like burning plastic. We leveled off at 2;000 ft; advised ATC and declared an emergency. Diverted to [nearby suitable airport]. Taxied to the gate without incident; no one reported any adverse affect from the flight.

Google
 

Original NASA ASRS Text

Title: B737-800 First Officer reported flight and cabin crew smelled an unusual odor after takeoff; the crew declared an emergency and diverted to a suitable nearby airport.

Narrative: We took [off]; just after rotation at about 1;000 FT; the Captain and I smelled an odor. We were then alerted by the flight attendants of an odor that to them smelled like burning plastic. We leveled off at 2;000 FT; advised ATC and declared an emergency. Diverted to [nearby suitable airport]. Taxied to the gate without incident; no one reported any adverse affect from the flight.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.