// JavaScript Document
var curle=1
var cacheobje=document.frmkwsearch.LocationPref2

function popu(x){
	for (m=cacheobje.options.length-1;m>0;m--)
		cacheobje.options[m]=null
	
	selectedarray=eval(x)
	
	for (i=0;i<selectedarray.length;i++)
		cacheobje.options[i]=new Option(selectedarray[i].text,selectedarray[i].value)
	
	cacheobje.options[0].selected=true
}

function localkwsrh(){
		if (curle==1){
		popu(cacheobje.options[cacheobje.selectedIndex].value)
		curle=2
		}
		else
		goth()
}

function goth(){
	if (curle==2){
		if (cacheobje.selectedIndex==cacheobje.options.length-1){
		curle=1
		popu(country)
		}
		else
		cacheobje.options[cacheobje.selectedIndex].value
	}
}

//SHOW categories by default
popu(country)
//-->
