﻿//Verifica se uma campo não é nulo
function empty(txtBox) {

    if (Trim(txtBox).length == 0)
    {
        return true;
    }
    return false;
}

//Remove os espaços
function Trim(str) {
    return str.replace(/^\s+|\s+$/g, "");
}

