"CripO" looks like a string to mea -- which means it should probably be surrounded by quotes :
<script type="text/javascript">
OpenVote(10, 'CripO');
</script>
Else, it might be a variable -- in which case you should ensure it is initialized before executing that portion of code.
Also, in your OpenVote function, you are assigning an URL to the postThis variable ; but this will not do anything else.
Especially, it will not send any kind of Ajax request : you need more code, if you want to send an Ajax request to that URL, and get a result.