         vpntype = $('#vpntype').val(),
                name = $('#name').val() || 'Autoconnect VPN',
                hostname = $('#hostname').val(),
                identifier = $('#identifier').val() || 'com.vpn.vpn1',
                autoconnect = $('#autoconnect').val(),
                override = $('#override').is(":checked"),
                localidentifier = $('#localidentifier').val()


                if (!hostname) return alert('Hostname required');
                switch (vpntype) {

           