<?php /* Smarty version Smarty-3.1.11, created on 2025-02-08 13:04:07
         compiled from "../views/obgy/_main/js.html" */ ?>
<?php /*%%SmartyHeaderCode:151500613967a73a2776f244-13931925%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6ebbcd1e50d254dbd953f1cca37244e811ac56c5' => 
    array (
      0 => '../views/obgy/_main/js.html',
      1 => 1644306862,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '151500613967a73a2776f244-13931925',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67a73a277e6b25_70563395',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67a73a277e6b25_70563395')) {function content_67a73a277e6b25_70563395($_smarty_tpl) {?><!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/respond.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"
type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js"
type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-validation/js/jquery.validate.min.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-validation/js/additional-methods.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/jquery.vmap.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.russia.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.world.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.europe.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.germany.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.usa.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jqvmap/jqvmap/data/jquery.vmap.sampledata.js"
type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.resize.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.categories.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery.pulsate.min.js" type="text/javascript"></script>
<!--script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-daterangepicker/moment.min.js" type="text/javascript"></script-->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-daterangepicker/daterangepicker.js"
type="text/javascript"></script>
<!-- IMPORTANT! fullcalendar depends on jquery-ui-1.10.3.custom.min.js for drag & drop support -->
<!--script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script-->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-easypiechart/jquery.easypiechart.min.js"
type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-validation/js/jquery.validate.min.js"
type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/select2/select2.min.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-multi-select/js/jquery.multi-select.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-nestable/jquery.nestable.js"></script>

<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/datatables/media/js/jquery.dataTables.min.js"></script>
<!--<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/datatables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>-->
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.min.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/datatables/extensions/Scroller/js/dataTables.scroller.min.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"></script>


<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-toastr/toastr.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
<!--<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>-->
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/printpart/jQuery.print.min.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>

<!-- islamic -->
<link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/redmond.calendars.picker.css">
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars.picker.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars.plus.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars.islamic.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars-ar.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/calislamic/jquery.calendars.islamic-ar.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/ckeditor/ckeditor.js"></script>


<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-timepicker/js/moment.min.js"></script>

<!--<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>-->
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/clockface/js/clockface.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
<script type="text/javascript"
src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/bootstrap-select/bootstrap-select.min.js"></script>


<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<!--<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/scripts/drug.js" type="text/javascript"></script>-->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/scripts/table-editable.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/layout/scripts/layout.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/layout/scripts/quick-sidebar.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/layout/scripts/demo.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/index.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/tasks.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/login.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/components-dropdowns.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/layout/scripts/custom.js"></script><!-- custom js at end of files -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/patientcustom.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/inputmask.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/table-editable.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/jquery.maskedinput-1.3.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/jquery.inputmask.bundle.min.js" type="text/javascript"></script>

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/table-managed.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/pages/scripts/components-pickers.js"></script>


<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/table-editable.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/antenatal_gyna.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/simple_view.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->


<!-- Multi upload section -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/angular.min.js"></script>
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/vendor/jquery.ui.widget.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/canvas-to-blob.min.js"></script>
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
<!-- blueimp Gallery script -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.blueimp-gallery.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload Angular JS module -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/jquery.fileupload-angular.js"></script>
<!-- The main application script -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/multiupload/js/app.js"></script>
<!-- end Multi upload section -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.min.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.axislabels.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/global/plugins/flot/jquery.flot.crosshair.min.js" type="text/javascript"></script>

<!-- DEVELOPERS SCRIPTS -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/gyna.js"></script><!-- custom js at end of files -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/antenalvisit.js"></script><!-- custom js at end of files -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/investigation.js"></script><!-- investigation js -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/report.js"></script><!-- report js -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/ultrasound.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/ultrasoundobst.js"></script><!-- ultrasoundobst js -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/ultrasoundgyna.js"></script><!-- ultrasoundgyna js -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/sonar.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/operativedetails.js"></script>

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/growth.js" type="text/javascript"></script>
<!-- END DEVELOPERS SCRIPTS -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/core_cu.js" type="text/javascript"></script>

<!--- nora ---->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/patienthistory.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/examination.js" type="text/javascript"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/patienthistoryData.js" type="text/javascript"></script>

<!--
<link  href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/theme-default.min.css" rel="stylesheet" type="text/css"/>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/jquery.form-validator.min.js"></script>-->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/jquery-validation/js/jquery.validate.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/jquery-validation/js/additional-methods.min.js"></script>


<!--             * Amr *               -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/custom.js" type="text/javascript"></script> <!--Amr in 16-11-2015 -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/elemam.js" type="text/javascript"></script> 
<script>

    jQuery(document).ready(function () {

        Metronic.init(); // init metronic core componets
        Layout.init(); // init layout
        QuickSidebar.init(); // init quick sidebar
        Demo.init(); // init demo features
        Index.init();
        TableManaged.init();
        gyna.init();
        antenalvisit.init();
        Login.init();
        //TableEditableH.init();

        //ComponentsDropdowns.init();

        ant_gyna.init();
        simple_view.init();


        awcustomjs.init();//at the end of all files


        ogy_drugs.init();
        patientcustom.init();

        core_cu.init(); // Amr   #added   25-10-2015
        patienthistory.init();
        examination.init();

        operativedetails.init();

        patienthistoryData.init();

    });
    //$('.mask_date_new').inputmask('y-m-d');


</script>
<script>
    $(function () {
        $("#sortable").sortable({
            items: "li:not(.unsortable)",
            //$("#sortable").sortable("destroy");
        });


        $("#sortable").disableSelection();
    });


    $(document).ready(function () {


        //  var oldurl = $("#oldurl").val();
        var currenturl = window.location.href;
        var tabpatientid = $('#patientid').val();

        var send = currenturl.indexOf("#t");

        function rememberTabSelection(tabPaneSelector, useHash, tabpatientid) {
            var key = 'selectedTabFor' + tabPaneSelector + tabpatientid;

            if (get(key)) {
                $(tabPaneSelector).find('a[href=' + get(key) + ']').tab('show');
            }

            $(tabPaneSelector).on("click", 'a[data-toggle]', function (event) {
                set(key, this.getAttribute('href'));

            });

            function get(key) {
                return useHash ? location.hash : localStorage.getItem(key);

            }

            function set(key, value) {
                if (useHash)
                    location.hash = value;
                else
                    localStorage.setItem(key, value);
            }
        }

        if (send.toString() == "-1") {

            rememberTabSelection('#rowTab', !localStorage, tabpatientid);
            rememberTabSelection('#rowTab2', !localStorage, tabpatientid);
            rememberTabSelection('#growth_tab', !localStorage, tabpatientid);
        }

        // Do Work...
    });

    window.onload = function () {
        $('#loaderbefore').hide();
    }

    if ($('#ifsend').length > 0) {
        $chedit = $('#ifsend').val();
        $hosturl = $('#hosturl').val();
        if ($chedit == 0) {
            $.post($hosturl + "/controllers/index.php?ac=sendmail", function () {
                console.log(5555555555555555);
            });
        }
    }


</script>


<!-- END JAVASCRIPTS -->
</body>

<!-- END BODY -->

</html>
<?php }} ?>