A book I refer to time and again. This book even gives you tips on how to market your script to get it on screen. Wolff and Cox also put together a number of interviews with successful screenwriters, producers and creators of movies and television.
Not the best guide out there -- it's pretty hidebound and more than a tad formulaic. Still, it's widely considered the essential text, and has tons of practical value.