	Ext.BLANK_IMAGE_URL = '/bin/framework/s.gif';
	
	//var jetzt = new Date();
	//var Jahresmonat = jetzt.getMonth();

	//var end_date = new Date().format('m');
	//_end_date = parseInt(end_date)+3;
	//alert(mktime(0, 0, 0, new Date().format('m'),new Date().format('d'), new Date().format('Y')) + '---' + mktime(0, 0, 0, new Date().format('m')+3,new Date().format('d'), new Date().format('Y')));
//	var new_end_date = parseInt(mktime(0, 0, 0, new Date().format('m')+3,new Date().format('d'), new Date().format('Y')));
//	var myNewDate = new Date(new_end_date);
//	var dt = new Date('10/29/2006').add(Date.DAY, 5);
//	document.write(dt); //returns 'Fri Oct 06 2006 00:00:00'
	function makeMyDate(plusM, formatter){
		var myDate = new Date().add(Date.MONTH,plusM).format(formatter);
		return myDate;
	}
	//alert(new Date().add(Date.MONTH,-10).format('d.m.Y'));
	//var end_date_l = strlen(_end_date);
	//if(end_date_l == 2){
	//	_vor_d = "";
	//}else{
	//	_vor_d = 0;
	//}
	//Ext.lib.Ajax.encoder = escape;
	function getTranslation(toTranslate){
		 alert(_lang['\' + toTranslate + \'']);
		var translated = _lang['\' + toTranslate + \''];// + toTranslate);
		return translated;
	}
	
	function GetValues(obj)
	{
		var res = '';
		res += 'Objekt: '+obj+'\n\n';
		for(temp in obj)
		{
			res += temp +': '+obj[temp]+'\n';
		}
		alert(res);
	}
	
	function handleActivate(tab){
		tab.render();
		tab.doLayout();
	}
	
	function changeStat(btn, statusBar, stat){
        btn = Ext.getCmp(btn);
        statusBar = Ext.getCmp(statusBar);
        
        btn.disable();
        statusBar.showBusy();
        
        if(stat == "1"){
	        statusBar.clearStatus({useDefaults:true});
	        btn.enable();
        }
    };
	
	var params = Ext.urlDecode(window.location.search.substring(1));
	//alert(params.lang);
	if(params.lang == "deutsch"){
		_lang =_lang_de;
	}else if(params.lang == "english"){
		_lang =_lang_en;
	}else{
		_lang =_lang_de;
	}
	
	var CombosTpl = new Ext.XTemplate(
			'<tpl for="."><div class="x-combo-list-item">{sname}</div></tpl>'
	);
	
	var profileTpl = new Ext.XTemplate(
		'<tpl for="."><div class="x-combo-list-item" ext:qtip="{selection_name}">',
	        '<b>{selection_name}</b><br>Angelegt von: {owner}',
	    '</div></tpl>'
	
		//'<tpl for="."><div ext:qtip="{selection_name} " class="x-combo-list-item">{selection_name}</div></tpl>'
	);
	
	var paramTpl = new Ext.XTemplate(
		'<tpl for="."><div ext:qtip="{param_name}" class="x-combo-list-item">{param_name}</div></tpl>'
	);
	var connectorComboTpl = new Ext.XTemplate(
		'<tpl for="."><div ext:qtip="{conn_name} " class="x-combo-list-item">{conn_name}</div></tpl>'
	);
	var operatorComboTpl = new Ext.XTemplate(
		'<tpl for="."><div ext:qtip="{operator_name} " class="x-combo-list-item">{operator_name}</div></tpl>'
	);
	var profileMakerCombos = new Ext.XTemplate(
		'<tpl for="."><div ext:qtip="{value} " class="x-combo-list-item">{value}</div></tpl>'
	); 
	var tpl_adminGetAllGroups = new Ext.XTemplate(
		'<tpl for="."><div ext:qtip="{group_name} " class="x-combo-list-item">{group_name}</div></tpl>'
	); 
	
	Templates = {
		timeField: new Ext.XTemplate(
			'<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'
		),
	
		gridHeader : new Ext.Template(
	        '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',
	        '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',
	        '<tbody><tr class="new-task-row">',
	            '<td><div id="new-task-icon"></div></td>',
	            '<td><div class="x-small-editor" id="new-task-title"></div></td>',
	            '<td><div class="x-small-editor" id="new-task-cat"></div></td>',
	            '<td><div class="x-small-editor" id="new-task-due"></div></td>',
	        '</tr></tbody>',
	        '</table>'
	    )
	};
	
	Ext.namespace('Ext.cbData');
	Ext.cbData.login_langs = [
		['deutsch','Deutsch']
		//,['english','English']
	];
	
	ProgConfig.conf();
