function guiBuilder_actionPrompt(msg, url){
	if ( confirm(msg) ) {
		document.location.href = url;
	}
	else{
		return false;
	}
}

function guiBuilder_renderSuccess(msg){
	return '<div class="guiBuilder_success"><div class="successIcon">' + msg + '</div></div>';
}

function guiBuilder_renderAlert(msg){
	return '<div class="guiBuilder_alert"><div class="alertIcon">' + msg + '</div></div>';
}

function guiBuilder_ajaxLoading(){
	return guiBuilder_renderAlert('<div class="ajaxLoader"></div>');
}

function guiBuilder_refreshProfileDropdown(){
	var ajax_currentProfile = $('#profileSelect').val();
	
	$.ajax({
		type: "GET",
		url: 'include/guiBuilder_ajax/guiBuilder_refreshProfileDropdown.php',
		success: function(msg){
			
			$('#profileSelect').html(msg);
			
			$('#profileSelect option').each(function(){
				if($(this).attr('value') == ajax_currentProfile){
					$(this).attr('selected', 'selected');
				}
			});
			
		}
	});
}
