function openTab(call, tabID, tab){			
	loading(tabID);			
	jax.call("apnoti", call, tabID,  tab);			
	display(tab, tabID);		
}
function loading(element){
	jQuery('#' + element + '_loader').show();
}
function display(i, tabID){
	hideAllBut(i, tabID);
			
	jQuery('#' + tabID + ' #panel' + i).removeClass('closed');
	jQuery('#' + tabID + ' #panel' + i).addClass('open');
}
function hideAllBut(but, tabID){
		
	for (var i = 0, l = 100; i < l; i++){
		if (i != but) {
			jQuery('#' + tabID + ' #panel' + i).removeClass('open');
			jQuery('#' + tabID + ' #panel' + i).addClass('closed');
		}
	}
	
}
function hideLoading() {
	jQuery( '.loading' ).hide();
}