function checkQuantity(id,errorId){

    if($(id).value.match(/^[0-9]+$/)){
        valor = $(id).value * 1;
        if(valor > 0){
            return true;
        }
    }

    $(errorId).show();
    
    return false;
}