>>129 var mdi = new ActiveXObject("MDIBrowser.API");
var TabNo = mdi.GetActiveTabIndex();
var document = mdi.GetDocumentObject(TabNo);
for(i=document.links.length ; i>=0 ; i--)
{
var j = document.links[i] + "";
if(j.match(/http.*(\.gif|\.jpg|\.jpeg|\.gif|\.png|\.bmp)$/i))
document.links[i].outerHTML = '<a href="' + j + 'target="_brank"><img src="' + j + '" style="zoom:0.2;" alt=\"1\" onerror=\"this.onabort()\" onabort=\"this.alt=eval(this.alt)+1;this.outerHTML=this.outerHTML\"></a>';
}