﻿
function CDSleeve() {

    this.Quantity = null;

    this.SizeType = function(h, w) {
        this.height = h;
        this.width = w;
        this.smalldim = Math.min(h, w);
        this.largedim = Math.max(h, w);
        this.string = this.smalldim + 'x' + this.largedim;
    }

    this.PrintFees = function(Quantity) {
        var p;
        switch (Quantity) {
            case 100: p = 279; break;
            case 200: p = 329; break;
            case 300: p = 379; break;
            case 400: p = 429; break;
            case 500: p = 509; break;
            case 1000: p = 929; break;
            default: alert('Quantity "' + Quantity + '" is not valid'); return;
        }
        return p;
    }
} // function CDSleeve