You declared
btnone
in an anonymous function, which means it is not available in the scope of your event handler. Try moving the declaration out of the jQuery ready function:
<script type="text/javascript">
// global variable
var btnone = true;
$(document).ready(function(){
// jQuery ready function - do DOM stuff here
});
</script>