home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 January / PCWorld_2001-01_cd.bin / Software / Topware / sambar / _SETUP.1 / addrs.stm < prev    next >
Text File  |  2000-11-15  |  995b  |  54 lines

  1. <HTML>
  2. <HEAD>
  3. <TITLE>Address Book</TITLE>
  4.  
  5. <SCRIPT LANGUAGE="JavaScript">
  6. <!--
  7.  
  8. function setAddr() {
  9.     this.addrField   = opener.addrField;
  10. }
  11.  
  12.  
  13. // SET FORM FIELD VALUE TO THE EMAIL ADDRESS SELECTED
  14. function returnAddr(opt)
  15. {
  16.     var list  = "";
  17.  
  18.     for (var i=0; i < opt.length; i++)
  19.     {
  20.         if (opt[i].selected)
  21.         {
  22.             if (list.length > 0)
  23.                 list = list + ", ";
  24.  
  25.             list = list + opt[i].value;
  26.         }
  27.     }
  28.  
  29.     if (list.length > 0)
  30.         addrField.value = list;
  31.     window.close()
  32. }
  33.  
  34.  
  35. // -->
  36. </SCRIPT>
  37. </HEAD>
  38.  
  39. <BODY BGCOLOR="#FFFFFF" ONLOAD="setAddr()">
  40.  
  41. <CENTER>
  42. <FORM NAME="addrControl" onSubmit="return false;">
  43. <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
  44. <SELECT MULTIPLE NAME="email" SIZE=12>
  45. <RCXaddrlist home=RCShome type=popup>
  46. </SELECT>
  47. <INPUT TYPE="submit" VALUE="Choose" onClick="returnAddr(document.addrControl.email)">
  48. </TD></TR>
  49. </TABLE>
  50. </FORM>
  51. </CENTER>
  52. </BODY>
  53. </HTML>
  54.