function checkwo(){var vales = "";$("#vales").val(vales);var flag = false;var bo = true;$("#data_table").find("tr").each(function(){$(this).find("td input").each(function(){if($(this).attr("name")=="rid"){vales+=$(this).val()+"&";}if($(this).attr("name")=="qty"){var qty = $(this).val();if(qty<0){alert(" The number of firm offers cannot be negative ");bo = false;return;}if(qty>0){flag = true;}vales+=qty+",";}});});if(bo==false){return;}$("#vales").val(vales);if(flag==false){alert(" Please enter a firm offer ");return;}document.all.sys_submit.click();}