function hide_all_tabs(){
var i=0;
    for (i=1;i<= 6;i++)
    {

        if (document.getElementById('tab_header'+i))
            document.getElementById('tab_header'+i).className='inactive_tab';
        if (document.getElementById('tab'+i))
            document.getElementById('tab'+i).className='tabcontent_noshow';
    }

}
function show_tab (id)
{
    if(document.getElementById('tab_header'+id)==null){return;}
    hide_all_tabs();
    document.getElementById('tab_header'+id).className='active_tab';
    document.getElementById('tab'+id).className='tabcontent_show';
}
$(function(){
        $('.btncolor2').click(function(){
            var res = true;
            $('.ff_required').each(function(){
                if($(this).val() == '')
                {
                $(this).attr('style','border:#f00 2px solid;');
                res = false;
                }
                });
            if(res == false) {
            $('#ff_warning').show(200);
            } else {
            $('#ff_warning').hide(200);
            }
            return res;
            });
        });
show_tab(tabvar);

