Populate Account billing address with existing Contact mailing address

Populate Account billing address with existing Contact mailing address

I am a new Zoho One trial user trying to learn the ropes and fully anticipating to become a subscriber at the end of my trial.

I would like to be able to take a contact record and generate an account record that looks up and populates the associated contact mailing address as the account billing address. From other forum searching, it seems like the way to make this happen is through a custom button and custom function. I have found what appears to be a Deluge script (Nik's response, about halfway down the page) that is described as fitting my need, however I'm lost as to how I can make it work. When I attempt to save the function, it gives an error that it failed to save the function (at line #5 after adding 'cid' to the Arguments table set as either an integer or string).

Any help walking me through this would be appreciated!  Thanks!