        function googlecartOnCheckoutClick() {
            var orderweight = 0;

            //get the subtotal of cart
            //before taxes and shipping
            var subtot = googlecart.getSubtotal();

            //get the shipping element, identified by id
            var ship = document.getElementById("us-ground");

            //calculate according to the following rules
            //if order subtotal is 250 or less, charge $5 for shipping
            if (subtot <= 250) {
                ship.value = 5;
            }
            //anything else is charged 0
            else {
                ship.value = 0;
            }

            //get the shipping element, identified by id
            var ship = document.getElementById("us-2day");

            //calculate according to the following rules
            //if order subtotal is 550 or less, charge $25 for shipping
            if (subtot <= 550) {
                ship.value = 25;
            }
            //anything else is charged 30
            else {
                ship.value = 30;
            }

            //get the shipping element, identified by id
            var ship = document.getElementById("us-overnight");

            //calculate according to the following rules
            //if order subtotal is 550 or less, charge $40 for shipping
            if (subtot <= 550) {
                ship.value = 40;
            }
            //anything else is charged 45
            else {
                ship.value = 45;
            }

            //get the shipping element, identified by id
            var ship = document.getElementById("canada-express");

            //calculate according to the following rules
	    //if order subtotal is greater than $50 but less than or equal to $550, charge $40 for shipping
            if (subtot <= 550 && subtot > 50 ) {
                ship.value = 40;
            }

	    //else if order is $50 or less, then charge $20	
	    else if (subtot <= 50) {
		ship.value = 20;
	    }
	
            //anything else is charged 50
            else {
                ship.value = 50;
            }

            //get the shipping element, identified by id
            var ship = document.getElementById("international-express");

            //calculate according to the following rules
            //if order subtotal is greater than $50 but less than or equal to $550, charge $65 for shipping
            if (subtot <= 550 && subtot > 50 ) {
                ship.value = 65;
            }
	    //else if order is $50 or less, then charge $20	
	    else if (subtot <= 50) {
		ship.value = 20;
	    }

            //anything else is charged 85
            else {
                ship.value = 85;
            }

            //after testing, change this to 'return true;' so that
            //the cart will submit to GC
            //it's currently set to false so you can test functionality without going to the GC web site
            return true;
        }

