<?php /* Smarty version Smarty-3.1.8, created on 2019-12-24 13:48:04
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/CommonJavaScript.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9001685225da6e7043d0194-46036701%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fcd06cc090514766682a6d847349a204292318a0' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/CommonJavaScript.tpl',
      1 => 1577180533,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9001685225da6e7043d0194-46036701',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da6e7043fc6f3_43112500',
  'variables' => 
  array (
    'language' => 0,
    'datePickerDateFormat' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
    'view_common_languages' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da6e7043fc6f3_43112500')) {function content_5da6e7043fc6f3_43112500($_smarty_tpl) {?><script>
var lblAlertOk='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertOk'];?>
';
var lblAlertCancel='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertCancel'];?>
';
var lblAlertYes='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertYes'];?>
';
var lblAlertNo='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertNo'];?>
';
var lblAlert='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlert'];?>
';
var lblSelectCity='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectCities'];?>
';
var lblCheckAll='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCheckall'];?>
';
var lblUnCheckAll='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblUncheckall'];?>
';
var lblHashselected='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblHashselected'];?>
';
var datePickerDateFormat="<?php echo $_smarty_tpl->tpl_vars['datePickerDateFormat']->value;?>
";
var lblSelectBusiness = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectBusiness'];?>
";
var lblselected 	= "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblselected'];?>
";
var lblSelectCitys = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectCitys'];?>
";
var lblSelectCategory='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectCategory'];?>
';
var lblCurrentMonth="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCurrentMonth'];?>
";
var lblCurrentMonth="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCurrentMonth'];?>
";
var lblNow="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblNow'];?>
";
var lblCheckall='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCheckall'];?>
';
var lblUncheckall='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblUncheckall'];?>
';
var lblSelect='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelect'];?>
';
</script>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery-3.3.1.min.js"></script>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery-migrate-3.0.0.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/chosen.jquery.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/common.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/common.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/cookie.plugin.js"></script>
<?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
  <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/toplanguage.plugin.js"></script>
<?php }?>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/toggle.editor.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/message.plugin.js"></script>

<script type="text/javascript">
var editImageTitle = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lbleditImageTitle'];?>
";
String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, '');
}

function convertDate(date, inputFormat) { 
    var dateElement = new Array();
    var subElement = new Array();
    var m, y, d, h = 00,
        i = 00,
        s = 00;
    if (!date)
        return "";
    else { 
        if (inputFormat.indexOf('mm/dd/yy') != -1)
            var newdate = new Date(date);
        else { 
            if (inputFormat.indexOf('yy-mm-dd') != -1) {  
                dateElement = date.split('-');
                y = dateElement[0];
                m = dateElement[1];
                d = dateElement[2].substr(0, 2); 	
                if (dateElement[2].indexOf(':') != -1) {
                    dateElement[2] = dateElement[2].substring(3);
                    subElement = dateElement[2].split(':');
                    if (subElement[0]) h = subElement[0].trim();
                    if (subElement[1]) i = subElement[1].trim();
                }
            } else if (inputFormat.indexOf('dd-mm-yy') != -1) {
                dateElement = date.split('-');
                d = dateElement[0];
                m = dateElement[1];
                y = dateElement[2].substr(0, 4);
                if (dateElement[2].indexOf(':') != -1) {
                    dateElement[2] = dateElement[2].substring(5);
                    subElement = dateElement[2].split(':');
                    if (subElement[0]) h = subElement[0].trim();
                    if (subElement[1]) i = subElement[1].trim();
                }
            }
            var newdate = m + "/" + d + "/" + y + " " + h + ":" + i + ":" + s;
            var newdate = new Date(newdate);
        }
        return newdate;
    }
}

function setSideMenu() {
    $(".side_menu_a.selected").parent("li").prev("li").children("a").addClass("removeborder");

}
//Issue with  loading login page on  ajax request page while clearing cookies or session logout
$(document).ajaxSuccess(function (evt, request, settings) {
    if (request.responseText.indexOf('AJAX_OORJIT_MANAGE_TIMEOUT') !=-1)
        location.href = GLOBAL_BASE_PATH + "/login/";
});

</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript">

    jQuery.browser = {};
    (function () {
        jQuery.browser.msie = false;
        jQuery.browser.version = 0;
        if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
            jQuery.browser.msie = true;
            jQuery.browser.version = RegExp.$1;
        }
    })();
 
</script>
<?php }} ?>