Selecting multiple address from address book

I am working on lotus notes R5. I have downloaded the code of Web Address book from Sandox. But that code only facilitates to select one email id at a time. How do I select multiple email ids. I have also found code for this but it is not working. Here is below the code :

  1. Add the following code to the form “HTML Head Content” section:

_tDb := “names.nsf”;

_is6 := @TextToNumber(@Version) > 171;

"

" +

@If(_is6;

"

";

“”

)

  1. Create a field (preferably of Names type) on your form to receive the entries selected by the user in the dialog.

  2. Add computed text (be sure to pass thru HTML) to the right of the field created in step 2 with the following value:

REM { Use Web Address dialog from names.nsf };

@If(@ClientType = “Notes” | !@IsDocBeingEdited; @Return(“”); “”);

_tLabelOneItem := “name”;

REM {DNT};

_tFieldName := “CostCentreMgr”;

_tDb := “names.nsf”;

“<a onclick=”

initTools();

var hDlg = window.hDlgAddrMulti;

hDlg.sMsgOneEntry = ‘“+ _tLabelOneItem +”’;

hDlg.hDestField = document.forms[0]." + _tFieldName + ";

hDlg.dlOpen();

return false;

" href=“”><img src=“/” + _tDb + “/btnPicker.gif?OpenImageResource”

width=“15” height=“11” border=“0” alt=“”>"

  1. Change the “_tFieldName” variable in the code above to the name of the field you created in step 2. This field will receive entries selected in the Web dialog.

Error occured at point 3. Please help me to solve it.