This is the JavaScript sample code for JavaScript: Learn By Coding by Scott Hughes. You will be able to find the book on Amazon soon. Read more about the book at Scott Hughes' website: http://www.webapppath.com.