For the email a friend link, you have probably used this:
Code:
<a href="javascript:void(0);" onclick="MM_openBrWindow('{$smarty.const.URL}/friendmail.php?vehicle={$listingid}','contact','width=350,height=400')">{$smarty.const.LANG_EMAIL_FRIEND}</a>
To make it pick up the ID, change {$listingid} to {$entry.id}
That works.
You mentioned 'showlisting.temp' - that's a new one on me. Where is that?