"window.open(link)" tells JavaScript to open a window and go to "link", 
which is not a valid JavaScript variable.

-- 
Posted via http://www.ruby-forum.com/.