how can i use the full script you provide ?
If you are asking about how to install the project locally to try it out please see this answer: http://forums.daypilot.org/Topic.aspx/3413/demo
If you are asking about licensing - you'll need a DayPilot Pro for JavaScript license to run this project in production (see also http://javascript.daypilot.org/buy/ for pricing).