I have a question i deleted safari by accident and i want to return it how can i do that and if i put the cd that came with the laptop will that erase everthing
Yes, you can reinstall it from your disc. See this support article for more details. This thread also gives a good overview of some smart steps to take before you attempt to reinstall it.