
function close_this_window() {
        
    var browser_name=navigator.appName;
    if (browser_name !="Microsoft Internet Explorer") {
        window.open('','_parent','');
    } else {
        window.opener = self;
    }
    window.close();
}

function ntee_hideDetail() {
        var i = 0;
        while(document.getElementById('detail' + i)) {
            var ele = document.getElementById('detail' + i++);
            if(ele.style.display == "block") {
                ele.style.display = "none";
            }else {
                ele.style.display = "block";
            }
        }
        if (document.getElementById('hider').innerHTML == 'Hide Details'){
            document.getElementById('hider').innerHTML = "Show Details";
        } else {
            document.getElementById('hider').innerHTML = "Hide Details";
        }
}




function flash_notice(message,timeout) {

    notice = $('<div></div>').attr('id', 'flash_notice').html(message);
    notice.css('position', 'absolute');
    notice.css('z-index', 1050);
    $('body').append(notice.hide());
    notice.css('left', ($('body').width() / 2) - (notice.width() / 2)) + 'px';
    notice.css('top', $(window).scrollTop() + 'px');
    notice.fadeIn('fast');
    function remove_notice() { notice.fadeOut(function() { notice.remove() }); }
    setTimeout(remove_notice, timeout);
}


$(function() {      
        $('input:first').not(':hidden').each(function(){
            this.focus();
          });
});

