Script or function to fetch Contacts module info into Accounts module

Script or function to fetch Contacts module info into Accounts module

Hi All.,
I need help with creating a custom function that will fetch some Contact module info into the Account module .
I have a module (Contacts ) where I create the new contacts and I need a process to create a new Account where the info of the Name and address fields will be fetched and populated automatically.
Any ideas??
Thanks
Adrian