Javascript Uncaught ReferenceError: parameter is not defined
<p>I have some Javascript code:</p>

<pre><code>function addRow(tableID, rowId) {
var table = document.getElementById(tableID);
var rowPosition = document.getElementById(rowID).rowIndex;
//etc.
}
</code></pre>

<p>But this throws a Javascript error </p>

<blockquote>
  <p>"Uncaught ReferenceError: rowID is not
  defined"</p>
</blockquote>

<p>Though looking on Firebug, I can see that the functions receives a correct row identifier, but once the code reaches the second line inside the function the parameter <code>rowID</code> seems unknown.</p>

<p>Can anyone help?</p>
