i have a short javascript script which is not working and i dont know what i am doing wrong. i have tried so many times to get it to work but its impossible so i just gave up and thought maybe you guys can help me,

this is how my function looks like:

<script type="text/javascript">
function CheckForm(){
alert(getelementbyid('q1').value);
}
</script>


and this is how my submit button looks like:
&lt;input type=&quot;button&quot; name=&quot;q1submit&quot; id=&quot;q1submit&quot; value=&quot;Submit&quot; onclick=&quot;CheckForm();&quot; /&gt;

so when i click on my button, nothing happens, i dont get a popup