your problme is in this line
if "return false" is execute then it would never submit and OnClick(which is sever side would never executed).
"return false" statement should be conditional.
change the code like this:
if (selectedItemsCount == 0)
alert("Select at least one item!");
Hope that helps,
Arindam D Tewary,