// JavaScript Function
function AllowOnlyNumeric(evt)
{	
	 var charCode = (evt.which) ? evt.which : event.keyCode
	 if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	 return true;
      

}

function chknull()
{
	max_votes = document.getElementById('max_votes');
	errMsg = '';
	if (!max_votes.value) {
		errMsg = "Votes value can not be blank";
	} else if (max_votes.value > 1000) {
		errMsg = "Votes value can not be greater than 1000";
	} else if (max_votes.value < document.getElementById('max_posted').value) {
		errMsg = "'Vote Limit' cannot be less than already posted votes (Max Posted Votes)";
	} else {
		return true;
	}
	alert(errMsg);
	max_votes.focus();
	max_votes.select();
	return false;
}
