Joe, i am not trying to be rude here, but you must first know at least the basics of JPL before you start coding. Try SUN's tutorial here it is pretty simple and easy. And for the answer to your question:
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!