function hungaryMap(size, selected)
{
	if(typeof size != 'string')
	{
		document.write('Param Error!');
		return false;
	}
	
	switch(size.toUpperCase())
	{
		case 'LARGE':
			var w = 419;
			var h = 262;
			var url = './flash/hungary-map-large';
		break;
		
		case 'SMALL':
			var w = 310;
			var h = 194;
			var url = './flash/hungary-map-small';
		break;
	}
	
	if(selected)
	{
		url += '?selected='+selected;
	}
	
	/*document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+w+'" height="'+h+'" id="hungary-map" align="center">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="'+url+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="#E8EFFA" />');
	document.write('<embed src="'+url+'" quality="high" wmode="transparent" bgcolor="#E8EFFA" width="'+w+'" height="'+h+'" name="hungary-map" align="center" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');*/
	
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'width', w,
		'height', h,
		'src', url,
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'transparent',
		'devicefont', 'false',
		'id', 'map',
		'bgcolor', '#08A8DE',
		'name', 'map',
		'menu', 'false',
		'allowFullScreen', 'false',
		'allowScriptAccess','always',					
		'salign', 'top'
	);	   
}

function listStoreByCounty(shire)
{
	window.location = 'index.php?page=stores&id_shire='+shireByName[shire];
	window.location = BASE_URL+'uzleteink/'+shire
}

function setFilter(page, filter, val, pos)
{
	//window.location = 'index.php?page='+page+'&f_'+filter+'='+val;
	window.location = BASE_URL+page+'/'+val+'/filter/'+filter+(pos ? pos : '');
}

function orderList(page, orderWay, orderDir, pos)
{
	//window.location = 'index.php?page='+page+'&od='+orderDir+'&ow='+orderWay;
	window.location = BASE_URL+page+'/rendezes/'+orderWay+'/'+orderDir+(pos ? pos : '');
}

function checkLength(form, field, num)
{
	if(form)
		if(field)
			if(num)
			{
				if(form[field].value.trim().length >= num) return true;
			}
	alert('Kérem adjon meg minimum '+num+' karakter hosszú szöveget.');
	return false;
}

function searchResultManufacturer(value, group, text, pidx)
{
	if(value == '-1')
	{
		window.location = BASE_URL+'talalatok/'+group+'/'+text+'/'+pidx;
	}
	else
	{
		window.location = BASE_URL+'talalatok/'+group+'/'+text+'/'+value+'/'+pidx;
	}
}