var flash = {};
function selecturl_partnerzy_handlowi(s) {
	//flash=document.bayermapa;
	flash = getObject('bayermapa');
	formularz = document.forms["doflasha"];
	var lista = getObject('list_partners');
	lista.style.display = 'block';
	var gourl = s.options[s.selectedIndex].value;
	//salony.window.self.location.href = gourl;
	window.salony.location.href = gourl;
	var str = formularz.kategoria.value;
	var wojmia = getmiastowoj(gourl);
	var mia =  wojmia[0];
	var woj = wojmia[1];
	flash.SetVariable("woj_baza", woj);
	flash.SetVariable("mia_baza", mia);
	//alert(flash.GetVariable('mia_baza'));
	window.location.hash="info"; 
	reset_select_form();
	
}

function reset_select_form(){
    document.doflasha.kategoria.selectedIndex = 0;
}

function getmiastowoj(url)
{
	url=url.replace(/\+/g,' ');
	var red = new Array();
	re=/miasto=(.*)\&woj=(.*)/;
	reg=new RegExp(re);
	var arr = reg.exec(url);
	red[red.length] = RegExp.$1;
	red[red.length] = RegExp.$2;
	return red;
}
