function showLoad()
{
    document.getElementById('indicator').style.display = 'block';
}
function hideLoad()
{
    document.getElementById('indicator').style.display = 'none';
}

function loadPart(element,url)
{
    $('.loading').show();
    $.ajax({
        type: 'GET',
        url: url,
        success: function(html){
            $(element).html(html);
            $('.loading').hide();
        }
    });
    return false;
}
var acct = new Array;

function actionAjax(dest,url){$('.loading').show();$.ajax({type:'GET',dataType:'html',success:function(data,textStatus){$('#'+dest).html(data);$('.loading').hide();},url:url});return false;}
function pagerAjax(dest,url){$('.loading').show();$.ajax({type:'GET',dataType:'html',success:function(data,textStatus){$('#'+dest).html(data);$('.loading').hide();},url:url});return false;}
function formAjax(dest,form,url){$('#'+form).submit(function(){$('.loading').show();$.ajax({type:'POST',url:url,data:$('#'+form).serialize(),success: function(html){$('#'+dest).html(html);$('.loading').hide();}});return false;});return false;}
function formAjaxLink(dest,form,url){$('.loading').show();$.ajax({type:'POST',url:url,data:$('#'+form).serialize(),success: function(html){$(dest).html(html);$('.loading').hide();}});return false;}
function formAjaxCascade(dest,form1,url1,form2,url2){
    $('#'+form2).submit(function(){
        $('.loading').show();
        $.ajax({type:'POST',url:url1,data:$('#'+form1).serialize(),success:function(){
            $.ajax({type:'POST',url:url2,data:$('#'+form2).serialize(),success:function(html){
                $('#'+dest).html(html);
                $('.loading').hide();
            }});
        }});
        return false;
    });
    return false;
}
function actionAjaxCascade(dest,form1,url1,url2){
    $('.loading').show();
    $.ajax({type:'POST',url:url1,data:$('#'+form1).serialize(),success:function(){
        $.ajax({type:'GET',url:url2,dataType:'html',success:function(html){
            $('#'+dest).html(html);
            $('.loading').hide();
        }});
    }});
    return false;
}
$(document).ready(function(){$('#cb_form_a').colorbox({close:false,overlayClose:false,width:750,initialHeight:550});});
$(document).bind('cbox_closed', function(){$('div.formError').remove();$('#Atw_cb_date').remove();$('#Atw_cb_time_s').remove();$('#Atw_cb_time_e').remove()});




