
 function editqty(quantity,desc) {
       
	var numericExpression = /^[0-9]+$/;	 
        if (quantity == "")
	{
	    alert("Please enter a valid quantity");
	    return false;
	}
 	// remove leading and trailing spaces
	quantity = trimString(quantity);

	// If the element's string matches the numeric expression it is all numbers
	if (quantity.match(numericExpression))
	{
	    return true;
	}else{
	    alert("Please enter a valid quantity");
	    return false;
	}
   }  // end of editqty



