function SB_Reg() {

    this.discount_global = 0.1;
    this.discount_Orginalglobal = 0;

    this.discount_CustomWebDesign = 0;
    this.discount_EmailMarketing = 0;
    this.discount_SocailMedia = 0;
    this.discount_GeoTarget = 0;
  
    
    this.feature_cost = 300;

    this.dropItem = function(el_drag, el_drop) {

        // init
   
        var details = el_drag.data('details');
        var detail_options = details['options'];
        var i, d_options;

        var detail_clone = $('#detail_service_model').clone();
        var detail_list = detail_clone.find('.service_detail_list').eq(0);
        var detail_item_model = detail_list.children('li').eq(0);
        var list_item, itemtotal, total, input_el, slider_el, step, input_slide, input_slide_Sem;
        var subtotal = 0;
        var discount = 0;
        // hide
        el_drag.css('display', 'none');

        // drop into droppable



        var dragged = $('<div>',
         {
             'class': 'draggable_dragged',
             'title': details['title']
         }).appendTo('#droppable_target');
        // store data
        dragged.data('details', details);
        dragged.addClass('draggable_' + details['key']);
        // make draggable
        dragged.draggable({
            revert: "invalid"
        });
        // add double click
        dragged.click(function() {
            var el_drop = '#draggable_container';
            var el_drag = $(this);
            sbr.undoItem(el_drag, el_drop);
        });

        // create a clone of model




        // update title, id
        if ($(el_drag).parent().attr('id') != "droppable_target") {
            detail_clone.find('.service_detail_title').text(details['title']);
            detail_clone.attr('id', 'service_detail_' + details['key']);
            detail_clone.data('details', details);

            // iterate through options and add list items
            for (i = 0; i < detail_options.length; i++) {
                d_options = detail_options[i];
                list_item = detail_item_model.clone();
                // plug in details
                list_item.children('.service_title').text(d_options['title']);
                list_item.children('.service_title').addClass(d_options['class']);
                input_el = list_item.find('.service_quantity').eq(0);
                input_el.attr('value', d_options['quantity']);
                // add slider, 'iteration': 1

                slider_el = list_item.find('.slider').eq(0);

                if (d_options['class'] == "sem_Budget") {
                    slider_el.slider({
                        value: d_options['quantity'],
                        min: d_options['min'],
                        max: d_options['max'],
                        step: d_options['iteration'],
                        slide: function(event, ui) {

                            input_slide = $(this).closest('li').find('.service_quantity').eq(0);
                            input_slide.attr('value', ui.value);
                            input_slide_Sem = input_slide

                            var count = 1;
                            var Selected = 1;

                            sbr.updateTotal(input_slide);
                        }
                    });

                    $('#sel').change(function() {

                        subtotal = sbr.getSubtotal(details);
                        inputs = $('#service_detail_sem').find('.service_quantity');
                        slider_el = $('#service_detail_sem').find('.slider').eq(0);
                        $('#service_subtotal_value').text(subtotal.toFixed(2));
                        detail_clone.find('.service_detail_subtotal span').text(subtotal.toFixed(2));
                        sbr.updateTotals();

                    });
                }

                else {

                    if (d_options['class'] == "email_marketing feature_logo_em3" || d_options['class'] == "email_marketing feature_logo_em4") {
                        slider_el.slider({
                            value: d_options['quantity'],
                            min: d_options['min'],
                            max: d_options['max'],
                            step: d_options['iteration'],
                            slide: function(event, ui) {

                                input_slide = $(this).closest('li').find('.service_quantity').eq(0);
                                input_slide.attr('value', ui.value);
                                sbr.updateTotal(input_slide);
                            }
                        });
                    }
                    else {
                        slider_el.slider({
                            value: d_options['quantity'],
                            min: d_options['min'],
                            max: d_options['max'],
                            step: d_options['iteration'],
                            slide: function(event, ui) {

                                input_slide = $(this).closest('li').find('.service_quantity').eq(0);
                                input_slide.attr('value', ui.value);
                                sbr.updateTotal(input_slide);
                            }
                        });
                        if (d_options['class'] == "service") {

                            $('#selectPacakge').change(function() {
                                subtotal = $('#selectPacakge').val();

                                $('.spn_SocailMediaSetupFee').text(subtotal);
                                $('.spn_SocailMediaSetupFee1').text(subtotal);

                                $('#service_subtotal_value').text(subtotal);
                                detail_clone.find('.service_detail_subtotal span').text(subtotal);
                                sbr.discount_SocailMedia = subtotal * 0.1;
                                var value = $('#selectPacakge').text() + ":" + $('#selectPacakge').val() + ";";
                                $('#hidsocial').val(value);
                                sbr.updateTotals();

                                if ($("#selectPacakge option:selected").text() == "Basic") {
                                    $(".socail_Content_basic").css("display", "block");
                                    $(".socail_Content_inetrmediate").css("display", "none");
                                    $(".socail_Content_advance").css("display", "none");
                                }
                                if ($("#selectPacakge option:selected").text() == "Intermediate") {
                                    $(".socail_Content_inetrmediate").css("display", "block");
                                    $(".socail_Content_basic").css("display", "none");
                                    $(".socail_Content_advance").css("display", "none");
                                }
                                if ($("#selectPacakge option:selected").text() == "Advanced") {
                                    $(".socail_Content_advance").css("display", "block");
                                    $(".socail_Content_inetrmediate").css("display", "none");
                                    $(".socail_Content_basic").css("display", "none");
                                }

                            });

                        }
                        else {
                            $('#selCRM').change(function() {
                                subtotal = sbr.getSubtotal(details);
                                $('#service_subtotal_value').text(subtotal.toFixed(2));
                                detail_clone.find('.service_detail_subtotal span').text(subtotal.toFixed(2));
                                sbr.updateTotals();


                            });
                        }

                    }
                }
                // add to list



                list_item.appendTo(detail_list);
            }
        }
        // remove item model
        detail_item_model.remove();

        // add clone and slide down

        var DragedID = detail_clone.attr('id');


        switch (DragedID) {
            case 'service_detail_web_design':
                $("#li_content_web_design").css("display", "list-item");
                $("#tab_wrapper").tabs("select", 0);
                $("#content_web_design").css("display", "block");
                $(".service_subtotals.CustomWebDesign").css("display", "block");
                detail_clone.appendTo('#service_detail_target').slideDown();
                break;
            case 'service_detail_sem': // For GEO
                $("#licontent_geotarget_tools").css("display", "list-item");
                $("#content_smart_tools").css("display", "block");
                $("#tab_wrapper").tabs("select", 1);
                $(".service_subtotals.Geo").css("display", "block");
                detail_clone.appendTo('#service_detail_target_sm').slideDown();
                break;
            case 'service_detail_email':
                $("#licontent_email_Marketing").css("display", "list-item");
                $("#tab_wrapper").tabs("select", 2);
                $("#content_email_Marketing").css("display", "block");
                $(".service_subtotals.Email").css("display", "block");
                detail_clone.appendTo('#service_detail_target_email').slideDown();

                break;
            case 'service_detail_social':
                $("#licontent_social_media_setup").css("display", "list-item");
                $("#social_media_setup").css("display", "block");
                $(".service_subtotals.SocailMedia").css("display", "block");
                $("#tab_wrapper").tabs("select", 3);
                detail_clone.appendTo('#service_detail_target_social').slideDown();
                $("#service_detail_target_social").css("display", "none");

                if ($("#selectPacakge option:selected").text() == "Basic") {
                    $(".socail_Content_basic").css("display", "block");
                    $(".socail_Content_inetrmediate").css("display", "none");
                    $(".socail_Content_advance").css("display", "none");
                }
                if ($("#selectPacakge option:selected").text() == "Intermediate") {
                    $(".socail_Content_inetrmediate").css("display", "block");
                    $(".socail_Content_basic").css("display", "none");
                    $(".socail_Content_advance").css("display", "none");
                }
                if ($("#selectPacakge option:selected").text() == "Advanced") {
                    $(".socail_Content_advance").css("display", "block");
                    $(".socail_Content_inetrmediate").css("display", "none");
                    $(".socail_Content_basic").css("display", "none");
                }
                break;

        }


        // update item subtotal
        subtotal = this.getSubtotal(details);

        // update discount/total






        detail_clone.find('.service_detail_subtotal span').text(subtotal.toFixed(2));

        $('#reg_detail_wrapper').slideDown();
        $("#tot_down").css("display", "block");


        this.updateTotals();


    }

    this.undoItem = function(el_drag, el_drop) {

        // init
        var details = el_drag.data('details');

        // hide
        el_drag.css('display', 'none');

        // drop into droppable
        var dragged = $('<div>',
		 {
		     'class': 'draggable',
		     'title': details['title']
		 }).appendTo('#draggable_container');
        // store data
        dragged.data('details', details);
        dragged.addClass('draggable_' + details['key']);
        // make draggable
        dragged.draggable({
            revert: "invalid"
        });
        // add double click
        dragged.click(function() {
            var el_drop = '#droppable_target';
            var el_drag = $(this);
            sbr.dropItem(el_drag, el_drop);
        });

        // remove details
        var detail_el = $('#service_detail_' + details['key']);
        var item_total = 0;
        var quantity, value;
        detail_el.remove();

        // update total		


        // remove tab content Sekki Remiber
        //$('#reg_detail_wrapper').slideUp();



        var DragedID = detail_el.attr('id');

        
        switch (DragedID) {


            case 'service_detail_web_design':
                $("#li_content_web_design").css("display", "none");
                $(".service_subtotals.CustomWebDesign").css("display", "none");
                //   $("#content_web_design").css("display", "none");


                $(".service_subtotals.CustomWebDesign").css("display", "none");
                $(".spn_CustomDesignSetupFee").text("0.00");
                $(".spn_CustomDesignMonthltFee").text("0.00");
                $(".spn_CustomDesignMonthltFee1").text("0.00");


                this.discount_CustomWebDesign = 0;

                break;
            case 'service_detail_email':
                $("#licontent_email_Marketing").css("display", "none");
                $(".service_subtotals.Email").css("display", "none");

                $(".spn_EmailMarketingMonthltFee").text("0.00");
                $(".spn_EmailMarketingMonthltFee1").text("0.00");
                $(".spn_EmailMarketingSetupFee").text("0.00");
                $("#spn_EmailMarketingSetupFee").val("0.00");
                $("#spn_EmailMarketingMonthltFee").val("0.00");

                $(".spn_EmailMarketingSetupFee1").text("0.00");

                // $("#content_email_Marketing").css("display", "none");


                this.discount_EmailMarketing = 0;


                break;
            case 'service_detail_sem': // For GEO
                $("#licontent_geotarget_tools").css("display", "none");
                $(".service_subtotals.Geo").css("display", "none");

                this.discount_GeoTarget = 0;
                this.discount_Orginalglobal = 0;
                // $("#content_smart_tools").css("display", "none");
                $(".spnGeoGeoManagement").text("0.00");
                $(".spnGeoSetUp").text("0.00")
                break;

            case 'service_detail_social':
                $("#licontent_social_media_setup").css("display", "none");
                //  $("#social_media_setup").css("display", "none");

                $(".service_subtotals.SocailMedia").css("display", "none");
                $(".spn_SocailMediaSetupFee").text("0.00");
                $('#spn_SocailMediaSetupFee').text("0.00");

                this.discount_SocailMedia = 0;

                break;

        }
        this.updateTotals();
       
        if ($("#li_content_web_design").css("display") == "list-item") 
        {
            $("#tab_wrapper").tabs("select", 0);
        }

        if ($("#licontent_geotarget_tools").css("display") == "list-item") 
        {
            $("#tab_wrapper").tabs("select", 1);
        }
        if ($("#licontent_email_Marketing").css("display") == "list-item") {
            $("#tab_wrapper").tabs("select", 2);
        }
        if ($("#licontent_social_media_setup").css("display") == "list-item") {
            $("#tab_wrapper").tabs("select", 3);
        }
        
        if ($("#social_media_setup").css("display") == "none" && $("#content_smart_tools").css("display") == "none" && $("#content_email_Marketing").css("display") == "none" && $("#content_web_design").css("display") == "none") {

            $("#reg_detail_wrapper").css("display", "none");
            $("#tot_down").css("display", "none");


        }


    }

    this.updateTotal = function(el_input) {

        // retrieve values

        var input = $(el_input);
        var input_parent = input.closest('.service_detail_wrapper');
        var details = input_parent.data('details');
        var old_subtotal = parseFloat(input_parent.find('.service_detail_subtotal span').eq(0).text());
        var new_subtotal = this.getSubtotal(details);
        var difference = new_subtotal - old_subtotal;

        // update subtotal
        input_parent.find('.service_detail_subtotal span').eq(0).text(new_subtotal.toFixed(2))

        // update total
        this.updateTotals();

    }



    this.updateTotals = function() {

        var subtotals = $('#service_detail_target').find('.service_detail_subtotal span');
        var subtotals_sm = $('#service_detail_target_sm').find('.service_detail_subtotal span');
        var subtotals_email = $('#service_detail_target_email').find('.service_detail_subtotal span');
        var subtotals_social = $('#service_detail_target_social').find('.service_detail_subtotal span');


        var subtotal = 0;
        var discount = 0;
        var hosting = 0;

        // add up subtotals
        subtotals.each(function(index) 
{
            subtotal += parseFloat($(this).text());
        });

        subtotals_sm.each(function(index) {
            subtotal += parseFloat($(this).text());
        });

        subtotals_email.each(function(index) {
            subtotal += parseFloat($(this).text());
        });

        subtotals_social.each(function(index) {
            subtotal += parseFloat($(this).text());
        });
        // calculate discount/total


        var Feature = 0.00;
        var DisCountFeatue = 0.00;
        // add features



        discount = DisCountFeatue + this.discount_CustomWebDesign + this.discount_EmailMarketing + this.discount_SocailMedia + this.discount_GeoTarget;

        total = subtotal - discount;
        hosting = this.getHosting(total);




        // update discount/total
        $('#service_subtotal_value').text(subtotal.toFixed(2));
        $('#service_subtotal_value1').text(subtotal.toFixed(2));
        
        if ($('#hid_issbzone').val() == "1") {
            $('#service_discount_value').text(discount.toFixed(2));
            $('#service_discount_value1').text(discount.toFixed(2));
            $('#hidservice_discount_value').val(discount.toFixed(2));
        }
        else {
            $('#service_discount_value').text("0.00");
            $('#service_discount_value1').text("0.00");
            $('#hidservice_discount_value').val("0.00");
        }

       

        $('#hidPartnerDiscountMonthlyTotal').val(discount.toFixed(2));

        $('# hidPartnerDiscountSetupTotal').val(discount.toFixed(2));
        $('.service_hosting_value').text(hosting.toFixed(2));
        $('#hidservice_subtotal_value').val(subtotal.toFixed(2));
        

        $('#hidservice_total_value').val(total.toFixed(2));
        $('#hidservice_hosting_value').val(hosting.toFixed(2));

        var MonthlyFeeSubTotal = 0;
        var SetuPFeeSubTotal = 0;



        MonthlyFeeSubTotal = parseFloat($(".spn_EmailMarketingMonthltFee").text());
	
        SetuPFeeSubTotal = parseFloat($(".spn_EmailMarketingSetupFee").text());

        SetuPFeeSubTotal = parseFloat(SetuPFeeSubTotal) + parseFloat($(".spn_CustomDesignSetupFee").text());
        MonthlyFeeSubTotal = parseFloat(MonthlyFeeSubTotal) + parseFloat($(".spn_CustomDesignMonthltFee").text());

        MonthlyFeeSubTotal = parseFloat(MonthlyFeeSubTotal) + parseFloat($(".spnGeoGeoManagement").text());

        SetuPFeeSubTotal = parseFloat(SetuPFeeSubTotal) + parseFloat($(".spnGeoSetUp").text());
        SetuPFeeSubTotal = parseFloat(SetuPFeeSubTotal) + parseFloat($(".spn_SocailMediaSetupFee").text());
        SetuPFeeSubTotal = parseFloat(SetuPFeeSubTotal) + parseFloat(Feature);
        var val1 = parseFloat($(".spn_CustomDesignSetupFee").text());



        $(".spn_MonthlyFeeSubTotal").text(SetuPFeeSubTotal.toFixed(2));
        $(".spn_MonthlyFeeSubTotal1").text(SetuPFeeSubTotal.toFixed(2));

        $(".spn_SetupFeeSubTotal").text(MonthlyFeeSubTotal.toFixed(2));
        $(".spn_SetupFeeSubTotal1").text(MonthlyFeeSubTotal.toFixed(2));

        $("#hidMonthlyFeeSubTotal").val(SetuPFeeSubTotal.toFixed(2));
        $("#hidSetupFeeSubTotal").val(MonthlyFeeSubTotal.toFixed(2));

        var TotalAfterDiscount = SetuPFeeSubTotal.toFixed(2) - $('#service_discount_value').text();
        $('.service_total_value1').text(TotalAfterDiscount.toFixed(2));
        $('#hidSetupFeeTotal').val(SetuPFeeSubTotal.toFixed(2));

        $('.service_total_monthly_value').text(MonthlyFeeSubTotal.toFixed(2));
        $('.service_total_monthly_value1').text(MonthlyFeeSubTotal.toFixed(2));

        $('#hidMonthlyFeeTotal').val(MonthlyFeeSubTotal.toFixed(2));



        if (TotalAfterDiscount.toFixed(2) == "0.00" && MonthlyFeeSubTotal.toFixed(2) == "0.00") {
            $("#content_web_design").css("display", "none");
            $("#content_email_Marketing").css("display", "none");
            $("#content_smart_tools").css("display", "none");
            $("#social_media_setup").css("display", "none");
        }

    }

    this.toggleService = function(name, el) {

        el = $('#' + el);

        if (el.hasClass('feature_toggle_on')) {
            el.removeClass('feature_toggle_on');
        }
        else {
            el.addClass('feature_toggle_on');
        }
        this.updateTotals();
    
        

    }

    this.toggleServiceNoTotal = function(name, el, parent) {
        $('.' + parent).find('.feature_toggle').removeClass('feature_toggle_on');


        el = $('#' + el);
        if (el.hasClass('feature_toggle_on')) {
            el.removeClass('feature_toggle_on');
        } else {
            el.addClass('feature_toggle_on');
        }



    }



    this.getSubtotal = function(service) {

        // init
        var key, subtotal, A, B, C, D, discount, inputs;
        subtotal = 0;
        key = service['key'];
        title = service['title'];

        // choose algorithm
        switch (key) {

            // custom web design algorithm                                                               
            case 'web_design':
                inputs = $('#service_detail_' + key).find('.service_quantity');
                A = parseInt(inputs.eq(0).attr('value'));
                B = parseInt(inputs.eq(1).attr('value'));
                C = parseInt(inputs.eq(2).attr('value'));
                D = parseInt(inputs.eq(3).attr('value'));
		
                if (isNaN(A) || A < 0) A = 0;
                if (isNaN(B) || B < 0) B = 0;
                if (isNaN(C) || C < 0) C = 0;
                if (isNaN(D) || D < 0) D = 0;
		
                // amount is calculated over here
                //subtotal = ((((((A * 10) + (B * 5) + (C * 5)) * 7) + (((A * 3) + (B * 4) + (C * 3)) * 17) + (10 * 7)) + 300) * 1.83)
                //	+ (((((A * 10) + (B * 5) + (C * 5)) * 7) + (((A * 3) + (B * 4) + (C * 3)) * 17) + (10 * 7)) + 300) + (D * 60);
		// 30 % added
               subtotal = (((A * 342.43)+102.72) + ((291.49 * B)+87.44) + ((243.38 * C)+73.01) + ((60 * D)+18)) + (1600.45+480.135)
			
                var value = "Design Concepts:" + A + ";Revisions on Chosen Concept:" + B + ";Unique Subpage Layouts:" + C + ";Total Pages:" + D;
                $('#hidweb_design').val(value);

                // For Sepertae Total Display

                $('.CustomWebDesignTitle').text(title);


                $('.spn_CustomDesignMonthltFee').text($('#selCRM').val());
                $('.spn_CustomDesignMonthltFee1').text($('#selCRM').val());

                $('.spn_CustomDesignSetupFee').text(subtotal.toFixed(2));
                $('#hidspn_CustomDesignSetupFee').val(subtotal.toFixed(2));

                $('#hidspn_CustomDesignMonthltFee').val($('#selCRM').val());


                this.discount_CustomWebDesign = (subtotal * 0.1);

                subtotal = subtotal + parseFloat($('.spn_CustomDesignMonthltFee').text());
		
                break;
            case 'sem':
                inputs = $('#service_detail_' + key).find('.service_quantity');
                A = parseInt(inputs.eq(0).attr('value'));

                if (isNaN(A) || A < 0) A = 0;
                var ManagementFee = 0.00;
                if (A <= 5200) 
		{
                    this.discount_global = 0;
                    this.discount_Orginalglobal = (0.1 * (parseInt($('#sel').val()) * 220));
                    subtotal = (parseInt($('#sel').val()) * 220) + (A * 0.3);
                    ManagementFee = (A * 0.3);

                }
                else {
                    this.discount_global = 0;
                    this.discount_Orginalglobal = (0.1 * (parseInt($('#sel').val()) * 220));
                    subtotal = (parseInt($('#sel').val()) * 220) + (A * 0.25);
                    ManagementFee = (A * 0.25);
                }

                var setupFee = parseInt($('#sel').val()) * 220;

                $('.GeoTitle').text(title);
                $('.spnGeoGeoManagement').text(ManagementFee.toFixed(2));
                $('.spnGeoGeoManagement1').text(ManagementFee.toFixed(2));

                $('#spnGeoGeoManagement').val(ManagementFee.toFixed(2));


                $('.spnGeoSetUp').text(setupFee.toFixed(2));
                $('#spnGeoSetUp').val(setupFee.toFixed(2));

                $('.spnGeoSetUp1').text(setupFee.toFixed(2));

                var value = "Budget:" + A + ";No Of PRoduct Of SerVices:" + $('#sel').attr('value');
                $('#hidsem').val(value);
                this.discount_GeoTarget = this.discount_Orginalglobal;

                break;

            case 'email':

                inputs = $('#service_detail_' + key).find('.service_quantity');
                A = parseInt(inputs.eq(0).attr('value'));
                B = parseInt(inputs.eq(1).attr('value'));

                if (isNaN(A) || A < 0) A = 0;
                if (isNaN(B) || B < 0) B = 0;
                B = B *(199.00+59.7);
                var ETot = A / 500;
                

                if (A < 3000) 
		{
                    ETot = ETot - 1;
                    ETot = ETot * 3.75;
                    subtotal = (13.00)+(13.00*.3) + ETot;

                    $('.spn_EmailMarketingMonthltFee').text(subtotal.toFixed(2));
                    $('.spn_EmailMarketingMonthltFee1').text(subtotal.toFixed(2));
                    $('#spn_EmailMarketingMonthltFee').val(subtotal.toFixed(2));

                }
                if (A >= 3000 && A <= 5000) 
		{
                    ETot = ETot - 5;
                    ETot = ETot * 4.00;
                    subtotal = 28.00+(28.00*.3) + ETot;

                    $('.spn_EmailMarketingMonthltFee').text(subtotal.toFixed(2));
                    $('.spn_EmailMarketingMonthltFee1').text(subtotal.toFixed(2));
                    $('#spn_EmailMarketingMonthltFee').val(subtotal.toFixed(2));
                }
                if (A > 5000) {
                    ETot = ETot - 10;
                    ETot = ETot * 2.50;
                    subtotal = 48.00 +(48.00 *.3)+ ETot;
                    $('.spn_EmailMarketingMonthltFee').text(subtotal.toFixed(2));
                    $('.spn_EmailMarketingMonthltFee1').text(subtotal.toFixed(2));
                    $('#spn_EmailMarketingMonthltFee').val(subtotal.toFixed(2));
                }




                $('.spn_EmailMarketingSetupFee').text(B.toFixed(2));
                $('.spn_EmailMarketingSetupFee1').text(B.toFixed(2));
                $('#spn_EmailMarketingSetupFee').val(B.toFixed(2));

                this.discount_EmailMarketing = 0;
                var value = "How many contacts to deliver emails to each month:" + A + ";" + "How many layouts do you need:" + B;
                $('#hidemail').val(value);


                break;
            case 'social':
                inputs = $('#service_detail_' + key).find('.service_quantity');
                A = parseInt(inputs.eq(0).attr('value'));

                if (isNaN(A) || A < 0) A = 0;

                // amount is calculated over here

                this.discount_SocailMedia = (0.1 * 1235);

                subtotal = 1235;

                $('.spn_SocailMediaSetupFee').text('1235.00');
                $('#spn_SocailMediaSetupFee').val(parseFloat(subtotal));
                $('.spn_SocailMediaSetupFee1').text(parseFloat(subtotal));
                var value = "Basic:1235;";
                $('#hidsocial').val(value);


                break;

            default: break;

        }

        return subtotal;

    }

    this.getHosting = function(total) {
        if (total == 0) return 0.00;
        else if (total <= 1500) return 14.95;
        else if (total <= 2000) return 19.95;
        else if (total <= 3000) return 29.95;
        else return 39.95;

    }

}

function SB_Util() {

    this.showTab = function(index) {



    }



}



var sbr = new SB_Reg();
var sbu = new SB_Util();
