I'm using the following code but it is not concatenating the "show" and X although X is defined as var X=1.
echo" <li class=\"\" id=\"frame\"
onClick=\"ballFunctions[\"show\"+X]();\"><a href=\"#\"> <b> $value</b>
</a> </li> <script type=\"text/javascript\"> X++; </script> ";
Is there any syntax problem?