    <!--
    var isIE = false;
    var isNS = false;
    var oneMinute = 60 * 1000;
    var oneHour = oneMinute * 60;
    var oneDay = oneHour * 24;
    var oneWeek = oneDay * 7;
    
    if ( navigator.appName.indexOf('Netscape') >= 0 )
    {
        isNS = true;
    }
    else
    {
        isIE = true;
    }

    function check_delete2()
    {
        return window.confirm('Are you sure you want to delete this record?');
    }
	function check_delete3()
	{
		return window.confirm('This user profile will be deleted. If this user profile has multiple locations, access to all locations will be lost. To remove access to a single locaiton, go to "assign permissions" and inactivate the user at a specific location.');
	}

    function goto_site(site_obj)
    {
        var selected = site_obj.selectedIndex;
        
        if ( selected == 0 )
            return;
        else
            window.open(site_obj[selected].value);
            
        site_obj.selectedIndex = 0;
    }

    function date_convert(convert_dt, from_format, to_format)
    {
        // convert date from one format to another
        var newDate='0';
        
        if ( from_format == 'mm/dd/ccyy' || from_format == 'mm/dd/yyyy' )
        {
            var dateArray = convert_dt.split('/');
            if ( dateArray[0].length == 1 ) dateArray[0] = '0' + dateArray[0];
            if ( dateArray[1].length == 1 ) dateArray[1] = '0' + dateArray[1];
            if ( dateArray[2] >= 0 && dateArray[2] <= 9 ) dateArray[2] = '200' + dateArray[2];
            if ( dateArray[2] >= 10 && dateArray[2] <= 39 ) dateArray[2] = '20' + dateArray[2];
            if ( dateArray[2] >= 40 && dateArray[2] <= 99 ) dateArray[2] = '19' + dateArray[2];
            if ( dateArray[2] >= 100 && dateArray[2] <= 999 ) dateArray[2] = '2' + dateArray[2];
            
            // convert from mm/dd/ccyy to ccyymmdd
            if ( to_format == 'ccyymmdd' || to_format == 'yyyymmdd' )
                newDate = dateArray[2] + dateArray[0] + dateArray[1];
            // convert from mm/dd/ccyy to cyymmdd, c: 1=2000, 0=1999
            if ( to_format == 'cyymmdd' )
            {
                var yearStr = new String( dateArray[2] );
                
                if ( yearStr.substr(0,1) == '1' )
                    var centuryInd = '0';
                else
                    var centuryInd = '1';
                    
                newDate = centuryInd + yearStr.substr(2,2) + dateArray[0] + dateArray[1];
            }
            // convert from mm/dd/ccyy to mm-dd-ccyy
            if ( to_format == 'mm-dd-ccyy' || to_format == 'mm-dd-yyyy' )
                newDate = dateArray[0] + '-' + dateArray[1] + '-' + dateArray[2];
            // convert from mm/dd/ccyy to ccyy-mm-dd
            if ( to_format == 'ccyy-mm-dd' || to_format == 'yyyy-mm-dd' )
                newDate = dateArray[2] + '-' + dateArray[0] + '-' + dateArray[1];
        }
        if ( from_format == 'mm-dd-ccyy' || from_format == 'mm-dd-yyyy' )
        {
            var dateArray = convert_dt.split('-');
            if ( dateArray[0].length == 1 ) dateArray[0] = '0' + dateArray[0];
            if ( dateArray[1].length == 1 ) dateArray[1] = '0' + dateArray[1];
            if ( dateArray[2] >= 0 && dateArray[2] <= 9 ) dateArray[2] = '200' + dateArray[2];
            if ( dateArray[2] >= 10 && dateArray[2] <= 39 ) dateArray[2] = '20' + dateArray[2];
            if ( dateArray[2] >= 40 && dateArray[2] <= 99 ) dateArray[2] = '19' + dateArray[2];
            if ( dateArray[2] >= 100 && dateArray[2] <= 999 ) dateArray[2] = '2' + dateArray[2];
            
            // convert from mm-dd-ccyy to ccyymmdd
            if ( to_format == 'ccyymmdd' || to_format == 'yyyymmdd' )
                newDate = dateArray[2] + dateArray[0] + dateArray[1];
            // convert from mm-dd-ccyy to mm/dd/ccyy
            if ( to_format == 'mm/dd/ccyy' || to_format == 'mm/dd/yyyy' )
                newDate = dateArray[0] + '/' + dateArray[1] + '/' + dateArray[2];
            // convert from mm-dd-ccyy to ccyy/mm/dd
            if ( to_format == 'ccyy/mm/dd' || to_format == 'yyyy/mm/dd' )
                newDate = dateArray[2] + '/' + dateArray[0] + '/' + dateArray[1];
        }
        if ( from_format == 'ccyy-mm-dd' || from_format == 'yyyy-mm-dd' )
        {
            var dateArray = convert_dt.split('-');
            if ( dateArray[2].length == 1 ) dateArray[2] = '0' + dateArray[2];
            if ( dateArray[1].length == 1 ) dateArray[1] = '0' + dateArray[1];
            if ( dateArray[0] >= 0 && dateArray[0] <= 9 ) dateArray[0] = '200' + dateArray[0];
            if ( dateArray[0] >= 10 && dateArray[0] <= 39 ) dateArray[0] = '20' + dateArray[0];
            if ( dateArray[0] >= 40 && dateArray[0] <= 99 ) dateArray[0] = '19' + dateArray[0];
            if ( dateArray[0] >= 100 && dateArray[0] <= 999 ) dateArray[0] = '2' + dateArray[0];
            
            // convert from ccyy-mm-dd to ccyymmdd
            if ( to_format == 'ccyymmdd' || to_format == 'yyyymmdd' )
                newDate = dateArray[0] + dateArray[1] + dateArray[2];
            // convert from ccyy-mm-dd to mm/dd/ccyy
            if ( to_format == 'mm/dd/ccyy' || to_format == 'mm/dd/yyyy' )
                newDate = dateArray[1] + '/' + dateArray[2] + '/' + dateArray[0];
            // convert from ccyy-mm-dd to ccyy/mm/dd
            if ( to_format == 'ccyy/mm/dd' || to_format == 'yyyy/mm/dd' )
                newDate = dateArray[0] + '/' + dateArray[1] + '/' + dateArray[2];
        }
        if ( from_format == 'ccyymmdd' || from_format == 'yyyymmdd' )
        {
            // convert from ccyymmdd to mm-dd-ccyy
            if ( to_format == 'mm-dd-ccyy' || to_format == 'mm-dd-yyyy' )
                newDate = convert_dt.substr(4,2) + '-' + convert_dt.substr(6,2) + '-' + convert_dt.substr(0,4);
            // convert from ccyymmdd to ccyy-mm-dd
            if ( to_format == 'ccyy-mm-dd' || to_format == 'yyyy-mm-dd' )
                newDate = convert_dt.substr(0,4) + '-' + convert_dt.substr(4,2) + '-' + convert_dt.substr(6,2);
            // convert from ccyymmdd to mm/dd/ccyy
            if ( to_format == 'mm/dd/ccyy' || to_format == 'mm/dd/yyyy' )
                newDate = convert_dt.substr(4,2) + '/' + convert_dt.substr(6,2) + '/' + convert_dt.substr(0,4);
            // convert from ccyymmdd to ccyy/mm/dd
            if ( to_format == 'ccyy/mm/dd' || to_format == 'yyyy/mm/dd' )
                newDate = convert_dt.substr(0,4) + '/' + convert_dt.substr(4,2) + '/' + convert_dt.substr(6,2);
        }
        
        return newDate;
    }

    function align_right(obj, obj_len)
    {
        // used to align input text control
        if ( navigator.appName.indexOf('Netscape') >= 0 )
        {
            var str_val = new String(obj.value);
            var str_pad = new String('');

            if (str_val.length < obj_len)
            {
                for ( i = 0; i < obj_len - str_val.length; i++ )
                {
                    str_pad += ' ';
                }
            }
            
            obj.value = str_pad + str_val;
        }
    }

    function eventHandler()
    {
        // enables event handling of keypress and mousemovements
        if ( isNS )
        {
            document.captureEvents(Event.MOUSEMOVE);
        }
        else
        {
            // document.body.onmousedown = handleIEClick;
        }
        
        document.onmousemove = mouseTracker;
    }
        
    function handleIEClick()
    {
        if ( !top.rightClick )
        {
            if ( ( window.event.button == 2 || window.event.button == 3 || window.event.button == 4 )
                && window.event.srcElement.type != 'text' && window.event.srcElement.type != 'textarea'
                && window.event.srcElement.type != 'select-one' && window.event.srcElement.type != 'radio'
                && window.event.srcElement.type != 'checkbox' )
            {
                alert('The right mouse button has been disabled');
                window.event.cancelBubble = true;
            }
        }
        window.screenX = window.event.screenX;
        window.screenY = window.event.screenY;
    }
            
    function mouseTracker(e)
    {
        e = e || window.Event || window.event;
        window.pageX = e.pageX || e.clientX;
        window.pageY = e.pageY || e.clientY;
    }
    
    function hidePopUp(popUpName)
    {
        if ( isNS )
        {
            popUp = eval('document.layers.' + popUpName)
            popUp.visibility='hide';
        }
        else
        {
            popUp = eval('document.all.' + popUpName)
            popUp.style.visibility = 'hidden';
        }
    }
    
    function hidePopUpStd(popUpName)
    {
        if ( isNS )
        {
            popUp = eval('document.' + popUpName)
            popUp.visibility = 'hidden';
        }
        else
        {
            popUp = eval('document.all.' + popUpName)
            popUp.style.visibility = 'hidden';
        }
    }
    
    function showPopUpStd(popUpName)
    {
        if ( isNS )
        {
            popUp = eval('document.' + popUpName)
            popUp.visibility = 'visible';
        }
        else
        {
            popUp = eval('document.all.' + popUpName)
            popUp.style.visibility = 'visible';
        }
    }
    
    function showPopUp(popUpName,popUpLocation)
    {
        if ( popUpLocation )
        {
            if ( popUpLocation == 'UP' )
                Y = -40;
            else
                Y = 20;
        }
        else
            Y = 20;
        
        if ( isNS )
        {
            popUp = eval('document.layers.' + popUpName);
            popUp.left=window.pageX;
            popUp.top=window.pageY + Y;
            popUp.visibility='show';
        }
        else
        {
            popUp = eval('document.all.' + popUpName);
            popUp.style.pixelLeft=window.pageX + document.body.scrollLeft;
            popUp.style.pixelTop=window.pageY + document.body.scrollTop + Y;
            popUp.style.visibility='visible';
        }
        return false;
    }

    function showPopUp2(popUpName)
    {
        if ( isNS )
        {
            popUp = eval('document.layers.' + popUpName)
            popUp.visibility='show';
        }
        else
        {
            popUp = eval('document.all.' + popUpName)
            popUp.style.visibility = 'visible';
        }
    }
    
    function image_action( layer_obj, image_nm, action )
    {
        var image_ref;
        var image_obj;
        
        if ( isNS && layer_obj != "" && layer_obj != "arrow" )
            image_ref = "document." + layer_obj + ".document." + image_nm;
        else
            image_ref = "document." + image_nm;
        
        if ( image_nm != nav_active )
        {
            image_obj = eval( image_ref );
            if ( layer_obj == "arrow" )
                image_nm = layer_obj;

            if ( image_obj.src.indexOf("_act") == -1 )
                image_obj.src = eval( image_nm + "_" + action + ".src" );
        }
    }
    //-->


