<script language="vbscript">
function aa()
if form1.as.checked=false then
alert("No selected!")
else
alert("Be selected!")
end if
end function
</script>
<form id="form1" name="form1" method="post" action="">
<input name="as" type="checkbox" id="as" onClick="aa()" value="yes"/>
</form>