        
        //
        // function to handle registration form submits
        /*$('#register').submit(function() {
            var value = $("#selectclasses").val();
            
            var isweb = value.toLowerCase().indexOf("http");
            if ( isweb > -1 )
            {
                //alert("isweb");
                window.location = value;
                return false;
            }
            else
            {
                // parse out the button id if necessary, pipe-delimit the button id and the value
                var splitValue = value.split('|');
                if (splitValue.length > 1)
                {
                    //alert($("#selectclasses").val());
                    $("#selectclasses").append(new Option(splitValue[1],splitValue[1]));
                    $("#selectclasses").val(splitValue[1]);
                    $("#hosted_button_id").val(splitValue[0]);
                    //alert($("#hosted_button_id").val());
                }
            }
        });*/
