skip a special caracter '-' on a Javascrpt function call
<p>This is the code I'm using:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;header&gt;
&lt;script language="JavaScript" type="text/javascript"&gt;  
&lt;!--  
function pass(InputValue){  

    if(document.getElementById('storevalues').value == false ) {document.getElementById('storevalues').innerHTML = InputValue;}

            else {
                document.getElementById('storevalues').innerHTML += " ,"+InputValue;    
            } 
}     
//--&gt;  
&lt;/script&gt;

&lt;/header&gt;

&lt;body&gt;

&lt;form name="first"&gt;  
&lt;textarea rows="4" cols="50" id="storevalues"&gt;&lt;/textarea&gt;

&lt;input type="checkbox" id="DAVIDHU" value="DAVIDHU" onclick="pass(document.first.DAVIDHU.value)"&gt;

&lt;input type="checkbox"  id="CHARLES-STEVEN" value="CHARLES-STEVEN" onclick="pass(document.first.CHARLES-STEVEN.value)"&gt;
&lt;/form&gt; 

&lt;/form&gt;

&lt;/section&gt;

&lt;/body&gt;
</code></pre>

<p>When you check the first checkbox the value of that checkbox goes to the textarea this case is DAVIDHU,<br>
but when you check the second checkbox, this case is CHARLES-STEVEN the value doesn't go to the textarea, I believe it has something to go with the special carater '-' I tried escap using back slash exp : CHARLES-STEVEN but it didn't work, the thing is that I have so many user with a combined first and last name with "-" </p>

<p>any help or suggestion will be highly appreciated.</p>

<p>Thanks!</p>
