I have an interesting question, although this might not be the best forum for an answer. I'm developing a web page-based intranet order entry system and have been hired as a freelance developer. If the site/business owner wants to market my work (consisting of the intranet pages) and sell it to other companies or lease the package to other companies, who actually owns my work? The company is paying me for the development and I am working as a freelancer. Should I get royalties if the package is sold or leased to other companies?