Let us assume your checkboxes are named as 'mycheck1,mycheck2,mycheck3,mycheck4' and select boxes as 'myselect1,myselect2,myselect3,myselect4'.
<input type="checkbox" id="mycheck1" name="mycheck1" onclick="javascript:sel(this);"/>
<select size="1" id="myselect1" name="myselect1" onclick="javascript:checkme(this);"><option value=""></option><option value="5">5</option></select>
<script type="text/javascript">
var checkBoxCount = 4,tempSum=0,globalValidationFlag=false;
function sel(ele){
alert('Please choose an amount');
}
function checkme(ele){
var emptyBox = false;
globalValidationFlag=false;
for(var i=1;i<=checkBoxCount;i++){
if(document.getElementById('mycheck'+i).checked){
if(!isNaN(document.getElementById('myselect'+i).value)){
tempSum+=eval(document.getElementById('mycheck'+i).value);
}else{
emptyBox = true;
alert('Choose an value in select box'+i); //Checks if select box is chosen no value
break;
}
}//End If
}//End for
if(tempSum>10){alert('Amount exceeded 10');}else if(!emptyBox){globalValidationFlag=true;}
}
Based on 'globalValidationFlag' value you may (if true) submit your form or discard it.
</script>