function showTabAJAXMyAccount(tab) {
	$('sectionContainer').innerHTML="";
	$('sectionLoadingMessage').show();
	new Ajax.Updater('sectionContainer', '/main.taf?erube_fh=tessitura&tessitura.submit.' + tab + '=1&live=live', 
    { 	evalScripts: false, 
        method: 'get', 
        parameters: {},
		onSuccess: function(response){
			$('sectionLoadingMessage').hide();
		}, 
		onComplete: function() {
		}
	});
}

function toggleTab(prefix, id) {
	$$('.' + prefix + '_layer').each(function(item){item.hide();});
	if ($(prefix + 'l_' + id)) {
		$(prefix + 'l_' + id).show();
	}

	if ($('sectionContainer') !== null) {
		$('sectionContainer').innerHTML = '';
	}
	
	$$('.' + prefix).each(function(item){item.removeClassName('thisTabOn');});
	$$('.mb').each(function(item){item.removeClassName('thisTabOn');});
	$(prefix + 't_' + id).addClassName('thisTabOn');
	
	if (prefix != 'mb') {
	$$('.subSectionNav').each(function(item){item.hide();});
		
		if ($(id + 'SubNav')) {
			$(id + 'SubNav').show();
		}
	}
}

function addslashes(str) {
	str=str.replace(/\\/g,'\\\\');
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	str=str.replace(/\0/g,'\\0');
	return str;
}

function stripslashes(str) {
	str=str.replace(/\\'/g,'\'');
	str=str.replace(/\\"/g,'"');
	str=str.replace(/\\0/g,'\0');
	str=str.replace(/\\\\/g,'\\');
	return str;
}

