ok so i got an iphone 3g and went to my friends house right after i got it so i could jailbreak it because he jailbroke his the day before. when we hooked up the iphone to his computer it was the first time itunes had been run with this iphone.

the jailbreak went fine and all that but when i got home and wanted some movies from my imac to my iphone itunes told me baiscally that since it was synced off a different computer if i want to sync it i have to erase and flash it

normally i would but i DO NOT want to lose my contacts

Is there a way to get my contacts off my iphone so i can flash it and rejailbreak it and then just put the contacts back on my iphone?