function Transpackselector() {

    this.startDate = null;
    this.endDate = null;
    this.cat = null;
    this.bankAccount = null;

    this.setStart = function (startDate) {
        this.startDate = startDate;
    };

    this.setEnd = function (endDate) {
        this.endDate = endDate;
    };
    
    this.setBankAccount = function (bankAccount) {
        this.bankAccount = bankAccount;
    };

    this.setCat = function (cat) {
        this.cat = cat;
    };
    
    this.getStart = function () {
           return this.startDate;
    };
    
    this.getEnd = function () {
           return this.endDate;
    };

    this.getPostData = function () {

        var data = "";

        if (this.startDate !== null) {
            data += "start=" + this.startDate.getUTCFullYear() + "-" + this.startDate.getUTCFullMonth() + "-" + this.startDate.getUTCFullDate();
        }
        else {
            data += "start=" + "2000-01-01";
        }


        return data;
    };

    this.getSelector = function () {
        return {
            startDate: this.startDate,
            endDate: this.endDate,
            cat: this.cat,
            bankAccount: this.bankAccount
        };

    };
}
