Cookies! Setting cookies from site A for site B

Hey Everyone!!!

Here is the problem I am having. Say you have two sites. Site A and site B. Site A needs to set a cookie via javascript of the domain of site B. The javascript that needs to do this is on site A, but will be called via a javascript include on site B.

Here is another example:

Site A=google.com
Site B =flickr.com

When a user visits google.com, a cookie needs to be given to the user that flickr.com can read.

All you javascript gurus out there! Let me know if you have any thoughts!!!
Thanks!