Macbook problem


I accendently erase my macbook partition which was running mac os x 10.5, I dont have the original disk that came with the machine, so I purchase an MAC OS X 10.5 INSTALL DVD on eBay, and now I cannot or I dont know how to install the MAC OS X 10.5 on my mac can any one help please