We need to modify this code so that it will use both the icon and the label for the link can anyone please chage this so this is accomplished thanks

Code:
function generateDocEntry(icon, docDescription, link)
{
var retString =""
 
// Change bak to target=folderFrame
if (icon==0)
  retString = "<a href='"+link+"' target=folderFrame><img src='doc.gif' alt='Opens in right frame'"
 else
  retString = "<a href='http://"+link+"' target=_new><img src='link.gif' alt='Opens in new window'"
 retString = retString + " border=0></a><td nowrap><font size=-1 face='Verdana, Arial, Helvetica'>" + docDescription + "</font></a>"
 
 return retString
 
}

see this bit of code
Code:
if (icon==0)
  retString = "<a href='"+link+"' target=folderFrame><img src='doc.gif' alt='Opens in right frame'"
 else
  retString = "<a href='http://"+link+"' target=_new><img src='link.gif' alt='Opens in new window'"
 retString = retString + " border=0></a>
we need to modify this so that the

Code:
<td nowrap><font size=-1 face='Verdana, Arial, Helvetica'>" + docDescription + "</font></a>
also has the <a href=......> link code in it also (their are two rows i need what ever code is printed in the top table row to also print around the label of the following row)


Please can someone help me