function ChangeQuantity(option) {
    // Reset the quantity selections
    var QuantSelect = document.getElementById('qty');
    QuantSelect.options.length = 0;

    var Options = [""];

    if (option == "Auto Trigger Leads") {
        Options = ["500", "750", "1,000", "1,250", "1,500", "2,000+"];
    }
    else if (option == "Auto Warranty Leads") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Bankruptcy Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Bankruptcy Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Bankruptcy Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    else if (option == "US Debt Settlement Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Canada Debt Settlement Leads") {
            Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "UK Debt Settlement Leads") {
            Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Debt Settlement Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    else if (option == "Health Insurance Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Health Insurance Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Health Insurance Live Transfers") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Health Insurance Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    else if (option == "Business Sales Leads") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Consumer Sales Leads") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Email Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Foreclosure Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "New Business Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "New Homeowner Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "New Mover Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Telemarketing Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Mailing Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Loan Mod Live Transfers") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Loan Modification Live Transfers") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Loan Modification Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Loan Modification Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    else if (option == "Fannie Mae Mortgage Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "FHA Mortgage Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Live Transfer Mortgage Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Mortgage Internet Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Mortgage Lead Generation") {
        Options = ["-"];
    }
    else if (option == "Mortgage Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Mortgage Lists") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Mortgage Live Transfers") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Mortgage Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    else if (option == "Mortgage Trigger Leads") {
        Options = ["500", "750", "1,000", "1,250", "1,500", "2,000+"];
    }
    else if (option == "Real Estate Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Reverse Mortgage Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Credit Bureau Leads") {
        Options = ["0-100", "101-500", "501-1,000", "1,000-2,500", "2,501-5,000", "5,001-10,000", "10,000+"];
    }
    else if (option == "Tax Settlement Leads") {
        Options = ["0-50", "50-100", "100-200", "200+"];
    }
    else if (option == "Tax Settlement Mailers") {
        Options = ["2,501-5,000", "5,001-10,000", "10,001-25,000", "25,000+"];
    }
    AddOption(Options);
}

function AddOption(Options) {
    //alert("works");

    for (var i = 0; i < Options.length; i++) {

        var value = Options[i];
        var QuantSelect = document.getElementById('qty');
        var NewOption = document.createElement('option');

        NewOption.text = value;

        var ValueArray = new Array();
        ValueArray = value.split("-");
        //alert(ValueArray.length);

        if (ValueArray.length > 1) {
            //alert(ValueArray[1]);
            NewOption.value = ValueArray[1];
        }
        else {
            //alert(value);
            NewOption.value = value.replace("0+", "1");
        }

        QuantSelect.add(NewOption, null);
    }
}

