<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Trying to create a function with arguments</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Verdana">I'm trying to create a function in Xerte that will display HTML entities. The function takes the normal HTML entity name, and should return the unicode equivalent, so I need to pass it an argument.</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">From the Help, I see that Xerte does not recognize the keyword 'function' so I'm confused on how to pass it an argument. Here is the function (found it through Google, then added some missing entities that I think I might use someday):</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">// create the entity mapping array&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Courier New">// which allows decoding html entities into their unicode equivalents&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">function GetEntityArray(entity) {</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities = Array();</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;nbsp;&quot;]&nbsp;&nbsp; = &quot;\u00A0&quot;; // non-breaking space</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;iexcl;&quot;]&nbsp; = &quot;\u00A1&quot;; // inverted exclamation mark</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;cent;&quot;]&nbsp;&nbsp; = &quot;\u00A2&quot;; // cent sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;pound;&quot;]&nbsp; = &quot;\u00A3&quot;; // pound sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;curren;&quot;] = &quot;\u00A4&quot;; // currency sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;yen;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00A5&quot;; // yen sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;euro;&quot;]&nbsp;&nbsp; = &quot;\u20AC&quot;; // Euro sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;brvbar;&quot;] = &quot;\u00A6&quot;; // broken vertical bar (|)</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;sect;&quot;]&nbsp;&nbsp; = &quot;\u00A7&quot;; // section sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;uml;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00A8&quot;; // diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;copy;&quot;]&nbsp;&nbsp; = &quot;\u00A9&quot;; // copyright sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;reg;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00AE&quot;; // registered sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;trade;&quot;]&nbsp; = &quot;\u2122&quot;; // trademark sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;deg;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00B0&quot;; // degree sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;plusmn;&quot;] = &quot;\u00B1&quot;; // plus-minus sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;sup1;&quot;]&nbsp;&nbsp; = &quot;\u00B9&quot;; // superscript one</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;sup2;&quot;]&nbsp;&nbsp; = &quot;\u00B2&quot;; // superscript two</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;sup3;&quot;]&nbsp;&nbsp; = &quot;\u00B3&quot;; // superscript three</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;acute;&quot;]&nbsp; = &quot;\u00B4&quot;; // acute accent</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;micro;&quot;]&nbsp; = &quot;\u00B5&quot;; // micro sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;frac14;&quot;] = &quot;\u00BC&quot;; // vulgar fraction one quarter</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;frac12;&quot;] = &quot;\u00BD&quot;; // vulgar fraction one half</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;frac34;&quot;] = &quot;\u00BE&quot;; // vulgar fraction three quarters</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;iquest;&quot;] = &quot;\u00BF&quot;; // inverted question mark</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Agrave;&quot;] = &quot;\u00C0&quot;; // Latin capital letter A with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Aacute;&quot;] = &quot;\u00C1&quot;; // Latin capital letter A with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Acirc;&quot;]&nbsp; = &quot;\u00C2&quot;; // Latin capital letter A with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Atilde;&quot;] = &quot;\u00C3&quot;; // Latin capital letter A with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Auml;&quot;]&nbsp;&nbsp; = &quot;\u00C4&quot;; // Latin capital letter A with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Aring;&quot;]&nbsp; = &quot;\u00C5&quot;; // Latin capital letter A with ring above</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;AElig;&quot;]&nbsp; = &quot;\u00C6&quot;; // Latin capital letter AE</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ccedil;&quot;] = &quot;\u00C7&quot;; // Latin capital letter C with cedilla</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Egrave;&quot;] = &quot;\u00C8&quot;; // Latin capital letter E with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Eacute;&quot;] = &quot;\u00C9&quot;; // Latin capital letter E with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ecirc;&quot;]&nbsp; = &quot;\u00CA&quot;; // Latin capital letter E with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Euml;&quot;]&nbsp;&nbsp; = &quot;\u00CB&quot;; // Latin capital letter E with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Igrave;&quot;] = &quot;\u00CC&quot;; // Latin capital letter I with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Iacute;&quot;] = &quot;\u00CD&quot;; // Latin capital letter I with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Icirc;&quot;]&nbsp; = &quot;\u00CE&quot;; // Latin capital letter I with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Iuml;&quot;]&nbsp;&nbsp; = &quot;\u00CF&quot;; // Latin capital letter I with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ETH;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00D0&quot;; // Latin capital letter ETH</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ntilde;&quot;] = &quot;\u00D1&quot;; // Latin capital letter N with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ograve;&quot;] = &quot;\u00D2&quot;; // Latin capital letter O with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Oacute;&quot;] = &quot;\u00D3&quot;; // Latin capital letter O with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ocirc;&quot;]&nbsp; = &quot;\u00D4&quot;; // Latin capital letter O with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Otilde;&quot;] = &quot;\u00D5&quot;; // Latin capital letter O with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ouml;&quot;]&nbsp;&nbsp; = &quot;\u00D6&quot;; // Latin capital letter O with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Oslash;&quot;] = &quot;\u00D8&quot;; // Latin capital letter O with stroke</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ugrave;&quot;] = &quot;\u00D9&quot;; // Latin capital letter U with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Uacute;&quot;] = &quot;\u00DA&quot;; // Latin capital letter U with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Ucirc;&quot;]&nbsp; = &quot;\u00DB&quot;; // Latin capital letter U with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Uuml;&quot;]&nbsp;&nbsp; = &quot;\u00DC&quot;; // Latin capital letter U with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;Yacute;&quot;] = &quot;\u00DD&quot;; // Latin capital letter Y with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;THORN;&quot;]&nbsp; = &quot;\u00DE&quot;; // Latin capital letter THORN</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;szlig;&quot;]&nbsp; = &quot;\u00DF&quot;; // Latin small letter sharp s = ess-zed</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;agrave;&quot;] = &quot;\u00E0&quot;; // Latin small letter a with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;aacute;&quot;] = &quot;\u00E1&quot;; // Latin small letter a with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;acirc;&quot;]&nbsp; = &quot;\u00E2&quot;; // Latin small letter a with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;atilde;&quot;] = &quot;\u00E3&quot;; // Latin small letter a with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;auml;&quot;]&nbsp;&nbsp; = &quot;\u00E4&quot;; // Latin small letter a with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;aring;&quot;]&nbsp; = &quot;\u00E5&quot;; // Latin small letter a with ring above</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;aelig;&quot;]&nbsp; = &quot;\u00E6&quot;; // Latin small letter ae</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ccedil;&quot;] = &quot;\u00E7&quot;; // Latin small letter c with cedilla</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;egrave;&quot;] = &quot;\u00E8&quot;; // Latin small letter e with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;eacute;&quot;] = &quot;\u00E9&quot;; // Latin small letter e with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ecirc;&quot;]&nbsp; = &quot;\u00EA&quot;; // Latin small letter e with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;euml;&quot;]&nbsp;&nbsp; = &quot;\u00EB&quot;; // Latin small letter e with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;igrave;&quot;] = &quot;\u00EC&quot;; // Latin small letter i with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;iacute;&quot;] = &quot;\u00ED&quot;; // Latin small letter i with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;icirc;&quot;]&nbsp; = &quot;\u00EE&quot;; // Latin small letter i with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;iuml;&quot;]&nbsp;&nbsp; = &quot;\u00EF&quot;; // Latin small letter i with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;eth;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00F0&quot;; // Latin small letter eth</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ntilde;&quot;] = &quot;\u00F1&quot;; // Latin small letter n with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ograve;&quot;] = &quot;\u00F2&quot;; // Latin small letter o with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;oacute;&quot;] = &quot;\u00F3&quot;; // Latin small letter o with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ocirc;&quot;]&nbsp; = &quot;\u00F4&quot;; // Latin small letter o with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;otilde;&quot;] = &quot;\u00F5&quot;; // Latin small letter o with tilde</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ouml;&quot;]&nbsp;&nbsp; = &quot;\u00F6&quot;; // Latin small letter o with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;oslash;&quot;] = &quot;\u00F8&quot;; // Latin small letter o with stroke</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ugrave;&quot;] = &quot;\u00F9&quot;; // Latin small letter u with grave</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;uacute;&quot;] = &quot;\u00FA&quot;; // Latin small letter u with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ucirc;&quot;]&nbsp; = &quot;\u00FB&quot;; // Latin small letter u with circumflex</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;uuml;&quot;]&nbsp;&nbsp; = &quot;\u00FC&quot;; // Latin small letter u with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;yacute;&quot;] = &quot;\u00FD&quot;; // Latin small letter y with acute</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;thorn;&quot;]&nbsp; = &quot;\u00FE&quot;; // Latin small letter thorn</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;yuml;&quot;]&nbsp;&nbsp; = &quot;\u00FF&quot;; // Latin small letter y with diaeresis</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;ndash;&quot;]&nbsp; = &quot;\u2013&quot;; // N-dash</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;mdash;&quot;]&nbsp; = &quot;\u2014&quot;; // M-dash</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;quot;&quot;]&nbsp;&nbsp; = &quot;\u0022&quot;; // Quotation mark</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;amp;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u0026&quot;; // Ampersand</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;lt;&quot;]&nbsp;&nbsp;&nbsp;&nbsp; = &quot;\u003C&quot;; // Less-than sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;gt;&quot;]&nbsp;&nbsp;&nbsp;&nbsp; = &quot;\u003E&quot;; // Greater-than sign</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;radic;&quot;]&nbsp; = &quot;\u221A&quot;; // Square root symbol</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;infin;&quot;]&nbsp; = &quot;\u221E&quot;; // Infinity symbol</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;loz;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u25CA&quot;; // Lozenge shape</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;spades;&quot;] = &quot;\u2660&quot;; // Spade suit</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;clubs;&quot;]&nbsp; = &quot;\u2663&quot;; // Club suit / shamrock</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;hearts;&quot;] = &quot;\u2665&quot;; // Heart suit / valentine</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; aryEntities[&quot;&amp;diams;&quot;]&nbsp; = &quot;\u2666&quot;; // Diamond suit</FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; return aryEntities[entity];&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Courier New">}</FONT>
</P>

<P><FONT SIZE=2 FACE="Verdana">When I try to use the function to set a variable, I get 'undefined.' Any pointers? Incidentally, I think this would be a really useful addition to the core Xerte.</FONT></P>

<P><FONT COLOR="#808080" SIZE=2 FACE="Courier New">_____________________________</FONT>
</P>

<P><FONT COLOR="#808080" SIZE=2 FACE="Courier New">&nbsp;Paul Swanson</FONT>

<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">&nbsp;Instructional Designer</FONT>

<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">&nbsp;Harland Financial Solutions</FONT>

<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">&nbsp;800.274.7280 Ext. 2462</FONT>

<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">&nbsp;Paul.Swanson@harlandfs.com</FONT>

<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">_____________________________</FONT>
</P>

</BODY>
</HTML>