<script language="javascript">
function fncSubmit()
{
if(document.formsr.choice1.checked == false && document.formsr.choice2.checked == false && document.formsr.choice3.checked == false && document.formsr.choice4.checked == false){ // ถ้าไม่เลือกเลย ซะหัวข้อ
alert('Please choose some radio.');
return false;
}
if(document.formsr.choice1.checked==true && document.formsr.rubber1_2.value.length<=0){ //1
alert('If you choose Rubber Mastication, you should enter ML(1+4)100 and Rubber mastication.');
document.formsr.rubber1_2.focus();
return false;
}
if(document.formsr.choice2.checked==true && document.formsr.rubber1_2.value.length<=0){ //2
alert('If you choose Rubber Mixing, you should enter Rubber mastication.');
document.formsr.rubber1_2.focus();
return false;
}
if(document.formsr.choice3.checked==true && document.formsr.rubber3_4a.value.length<=0){ //3
alert('you should enter Rubber Material ,Product name and Shipping Date.');
document.formsr.rubber3_4a.focus();
return false;
}
if(document.formsr.choice4.checked==true && document.formsr.rubber3_4a.value.length<=0){ //4
alert('If you choose Inspection, you should enter Rubber Material ,Product name and Shipping Date.');
document.formsr.rubber3_4a.focus();
return false;
}
document.formsr.submit();
return false;
}
</script>