Print out both pieces of script. Highlight stuff thats identical in both. Work from there.