href in a formula field

href in a formula field

As I am not a "real" programmer, I could use some help with this one.  I copied the following piece of code from the Zoho CRM application that is available in the market place:

  1. (("<a   style='white-space:nowrap;background:#3A5999;border:1px solid #4165C5;color:#ffffff'  href=\"#View:Detailed_Lead_View?lead_idstr=") + ID) + "\">View Details</a>"
This code is placed within a form's formula field.  The application then places the field in a view, which allows the user to click a link to open a view.

I then adapted it for my own use as follows:

  1. (("<a   style='white-space:nowrap;background:#3A5999;border:1px solid #4165C5;color:#ffffff'  href=\"#View:Detailed_Lead_View?lead_idstr=") + ID) + "\">View Details</a>"
Rather than opening the url in the same window, I would like the link to open a popup window.  I've tried many permutations by adapting the popup window code from the zoho openURL statement, but can't seem to get it to work.  Is it possible to do the popup window using href in a formula field?

Thanks,

Leo Saumure