function openDeliveryAdresBlock(obj, lang){
	
	var fields = new Array();
	fields['de'] = new Array();
	fields['en'] = new Array();
	fields['de'][0] = 'Familienname';
	fields['en'][0] = 'Last Name';
	fields['de'][1] = 'Vorname';
	fields['en'][1] = 'First Name';
	fields['de'][2] = 'Strasse';
	fields['en'][2] = 'Street';
	fields['de'][3] = 'Land';
	fields['en'][3] = 'Country';
	fields['de'][4] = 'PLZ';
	fields['en'][4] = 'Zip Code';
	fields['de'][5] = 'Ort';
	fields['en'][5] = 'City';
	fields['de'][6] = 'Telefon';
	fields['en'][6] = 'Telephone';
	fields['en'][7] = 'State';
	
	
	var delivery_adres = document.getElementById('delivery_adres_block');

	var country_obj = document.getElementById('countryFirstField');

	
	if(delivery_adres.style.display == 'block'){
		delivery_adres.style.display = 'none';
		
		country_obj.readOnly = true;

		obj.checked=false;
		
		//Удаляем скрипт проверки полей
		check_form.removeCheckField('surname2', fields[lang][0], '[empty]');
		check_form.removeCheckField('name2', fields[lang][1], '[empty]');
		check_form.removeCheckField('adres2', fields[lang][2], '[empty]');
		check_form.removeCheckField('coutry2', fields[lang][3], '[empty]');
		check_form.removeCheckField('plz2', fields[lang][4], '[empty]');
		check_form.removeCheckField('ort2', fields[lang][5], '[empty]');
		if(lang == 'en')
		check_form.removeCheckField('state2', fields[lang][7], '[empty]');
		check_form.removeCheckField('phon2', fields[lang][6], '[empty]');
	}
	else {
		delivery_adres.style.display = 'block';
		
		obj.checked=true;
		
		country_obj.readOnly = false;

		//Добавляем скрипт проверки полей
		check_form.addCheckField('surname2', fields[lang][0], '[empty]');
		check_form.addCheckField('name2', fields[lang][1], '[empty]');
		check_form.addCheckField('adres2', fields[lang][2], '[empty]');
		check_form.addCheckField('coutry2', fields[lang][3], '[empty]');
		check_form.addCheckField('plz2', fields[lang][4], '[empty]');
		check_form.addCheckField('ort2', fields[lang][5], '[empty]');
		if(lang == 'en')
		check_form.addCheckField('state2', fields[lang][7], '[empty]');
		check_form.addCheckField('phon2', fields[lang][6], '[empty]');
	}
	return true;
}

function openWindow(name, href, width, height, scrollbar){
	FLS=window.open(href, name, "width="+width+", height="+height+",scrollbars="+scrollbar+", resizable=no,left=100,top=100");
	FLS.focus();
return false;
}

//берем select подгрупп для поиска
function getSubGroups(obj, locale){
	var group = obj.options[obj.selectedIndex].value;
	gsb = new ajaxLoader('gsb', '_get_subgroup.php?parent='+group, 'subGroupBox', 'search_load');
	gsb.loadModule('lang='+locale);
}