Hi Learner, in response to your Pm:
You can see the code working on my test site:
http://trainingpen.com/product.php?productid=17513&cat=0&page=&featured=Y
Click the Xcart logo in the description.
Here is the complete code from the template:
<a name="mypopuplink" id="mypopuplink" href="javascript
:void(0);" onclick="javascript
: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=17513'); return false;">
<img src="{ImagesDir}/admin_xlogo.gif" />
</a>
Okay I think I see why this isn't working for you. It all has to do with the right productid not being assigned. See how I included the productid hard coded? Try:
<a name="mypopuplink" id="mypopuplink" href="javascript
:void(0);" onclick="javascript
: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid={$product.productid}'); return false;">
<img src="{$ImagesDir}/admin_xlogo.gif" />
</a>
That should do it. Sorry this was so difficult.