check this code out.. you probably need to use 'parseInt' on your variable because javascript thinks it is a string.
HTML Code:
<Script language="Javascript">
var a = "1";
document.write(a+9);
document.write("<br>");
var c = parseInt(a);
document.write(c+9);
</script>