<script language="javascript">
<!---
function sumValue(){
var textSum=0;
var i;
var k=document.getElementById('NumSize').value;
for(i=1;i<=k;++i)
{
var j=document.getElementById('num_'+i).value
textSum+=parseInt(j);
}
if(textSum<500){
alert("**** The lowest quantity is 500 pairs per order ****\nYou order product "+textSum+" pairs");
return (false);
}
return (true);
}
-->
</script>