For example :

If check1.value=vb checked then
myvalue="yes"
else
myvalue="no"
endif