	var sw = (screen.availWidth - 10) * 0.9;
	var sh = (screen.availHeight - 28) * 0.9;
				
	function NameSearch(name){
		try{
			switch(name){
				case "city" : 
					document.NameSearchCityForm.CityCode.value = document.NameSearchCityForm.NameSearchCityCode.value;
					document.NameSearchCityForm.GuCode.value = "";
					document.NameSearchCityForm.submit();
				break;
					
				case "search" : 
					document.NameSearchGuForm.GuCode.value = document.NameSearchGuForm.NameSearchGuCode.value;
					document.NameSearchGuForm.submit();				
				break;
						
				case "prev" :
					NameSearchResultIframe.predata();
				break;
				
				case "next" : 
					NameSearchResultIframe.nextdata();
				break;
			}
		}catch(e){ return; }
	}
	function RegionSearch(name) {
		try{
			switch(name){
				case "set" :
					document.CongnamulMap.InitRegion(5000);
					document.CongnamulMap.ReDraw();		
					document.CongnamulMap.CmdType = 12;	
				break;
				
				case "clear" :
					document.CongnamulMap.RemoveRegion();		
					document.CongnamulMap.ReDraw();
					document.CongnamulMap.CmdType = 0;		
				break;
				
				case "up" :
					RegionSearchResultIframe.change_up();
				break;
			}
		}catch(e){ return; }		
	}

	function AddressSearch(name){
		try{
			switch(name){		
				case "city" : 
					document.AddressSearchCityForm.CityCode.value = document.AddressSearchCityForm.AddressSearchCityCode.value;
					document.AddressSearchCityForm.GuCode.value = "";			
					document.AddressSearchCityForm.DongCode.value = "";
					document.AddressSearchCityForm.submit();				
				break;
					
				case "gu" :				
					document.AddressSearchGuForm.CityCode.value = document.AddressSearchCityForm.AddressSearchCityCode.value;
					document.AddressSearchGuForm.GuCode.value = document.AddressSearchGuForm.AddressSearchGuCode.value;
					document.AddressSearchGuForm.DongCode.value = "";
					document.AddressSearchGuForm.submit();
				break;
				
				case "search" :
					AddressSearchSubmit();
				break;
			}
		}catch(e){ return; }		
	}
		
	function QuickSearchFlashMap(idx){ 
		var state = 0;
		try{
			state = document.FlashMap.GetVariable("state");
		}catch(e){ state = 1; }
		
		try{
			if(state != idx){			
				document.FlashMap.TCallFrame("_root",0);
				document.FlashMap.SetVariable("isRemoveMovie","true");				
				document.FlashMap.SetVariable("state",idx);
			}
			document.FlashMap.TCallFrame("_root."+idx,2);
			document.FlashMap.TGotoFrame("main",idx - 1);
			for(var i=1;i<=16;i++){		
				if(i == idx){										
					document.FlashMap.TPlay("_root."+i);					
					document.all["QuickSearchFlashMapDiv"+i].style.display = "";					
					document.all["TextLineSpan"+i].style.textDecoration = "underline";
					
				} else {										
					document.FlashMap.TStopPlay("_root."+i);									
					document.all["QuickSearchFlashMapDiv"+i].style.display = "none";									
					document.all["TextLineSpan"+i].style.textDecoration = "none";
				}
			}
			document.FlashMap.SetVariable("isRemoveMovie","false");
		}catch(e){ return; }
	}
	
	function init(){
		try{
			document.all["TextLineSpan1"].style.textDecoration = "underline";
		}catch(e){ }
	}
	function FlashMapIndexNumber(idx) {
		parent.QuickSearchFlashMap(idx);
	}

