		function doHashString(type, id, type2, id2) {
			if(type == 'assortmentProductId') {
				if(type2 == 'deviceId' || type2 == 'shopGroupId') {
					doProductId(id, id2);
				} else {
					doProductId(id);
				}
			} else if(type == 'deviceId' || type == 'shopGroupId') {
				if(type2 == 'assortmentProductId') {
					doProductId(id2, id);
				} else {
					doShopGroupId(id);
				}			
			} else if(type == 'searchphrase' && type2 == 'searchType') {
				doAjaxShopBrowserSearch(id, id2);
				if(document.searchForm) {
					document.searchForm.searchphrase.value = decodeURIComponent(id);	
					setRadioValueChecked(document.searchForm.searchType, id2);
				}
			}
		}
		
		function doShopGroupId(id) {
			if(document.deviceForm) {
				document.deviceForm.shopGroupId.value = id;
				document.deviceForm.assortmentProductId.value = '';
				doAjaxShopBrowserUpdate();
				addHistoryEntry('shopGroupId', id);
				return false;
			} else {
				return true;
			}
		}

		function doProductId(id, shopGroupId) {
			if(document.deviceForm) {
				document.deviceForm.assortmentProductId.value = id;
				document.deviceForm.shopGroupId.value = shopGroupId;
				addHistoryEntry('assortmentProductId', id, 'shopGroupId', shopGroupId);
				doAjaxShopBrowserUpdate();
				return false;
			} else {
				return true;
			}
		}
		
		function doAjaxShopBrowserUpdate(disableTopScroll) {
			if(!disableTopScroll){
				scroll(0,350);
			}
			ajax_do('shopBrowserContent', 'doShopBrowserContent', convertFormValuesIntoString('deviceForm'), '', 'shopBrowserWaiting', true);
		}
		
		function doAjaxShopBrowserSearch(searchphrase, searchType){
			scroll(0,290);
			addHistoryEntry('searchphrase', searchphrase, 'searchType', searchType);
			ajax_do('shopBrowserContent', 'doShopBrowserSearch', 'searchphrase='+searchphrase+'&searchType='+searchType , '', 'shopBrowserWaiting', true);
		}
		
		function doShopGroupSelect(id, name, startLevel, updateElement) {
			document.shopGroupForm.shopGroupId.value 	= id;
			document.shopGroupForm.selectName.value 	= name;
			document.shopGroupForm.startLevel.value 	= startLevel;
			
			if(updateElement){
				ajax_do_ssl(updateElement, 'getshopGroupSelects', convertFormValuesIntoString('shopGroupForm'));
			} else {
				ajax_do_ssl(name, 'getshopGroupSelects', convertFormValuesIntoString('shopGroupForm'));			
			}	
		}		