/*
	Author: Fenxia Wei
*/
function changecountry()
{
	var country = $('country');
	var state_s = $('state_s');
	var state_i = $('state_i');	
	var radius = $('radiusdiv');
//alert(country.options[country.selectedIndex].text);	
	if(country.options[country.selectedIndex].text == "USA"){
		
		state_s.style.display = "inline";
		state_i.style.display = "none";
		radius.style.display = "inline";
	}
	else{
		state_s.style.display = "none";
		state_i.style.display = "inline";
		radius.style.display = "none";
	}
}

function showoverseas(flag)
{
	var oversea_detail = $('oversea_detail');
	var overseas_1 = $('overseas_1');
	var overseas_2 = $('overseas_2');
	
	if(flag == 1){
		oversea_detail.style.display = "block";
		overseas_1.style.display = "none";
		overseas_2.style.display = "inline";
	}
	else{
		oversea_detail.style.display = "none";
		overseas_2.style.display = "none";
		overseas_1.style.display = "inline";	
	}
}

function showcompany(alph)
{
	var comp_div = $('comp_'+alph);
	var clist_div = $('clist_'+alph);
	
	for(var i=0; i<26; i++)
	{
		var comp_divo = $('comp_'+i);
		var clist_divo = $('clist_'+i);
		comp_divo.style.display = "none";
		clist_divo.style.fontWeight = "normal";
	}
	comp_div.style.display = "inline";
	clist_div.style.fontWeight = "bold";
}

function showedit(id, flag, all_num)
{
	var search_div = $('searchform_'+id);
	var editshow_div = $('editshow_'+id);
	var edithide_div = $('edithide_'+id);
	if(flag == 1){	
		for(var i=1; i<all_num+1; i++)
		{
			var search_divo = $('searchform_'+i);
			var editshow_divo = $('editshow_'+i);
			var edithide_divo = $('edithide_'+i);
			search_divo.style.display = "none";
			edithide_divo.style.display = "none";
			editshow_divo.style.display = "inline";

		}
		
		search_div.style.display = "block";
		editshow_div.style.display = "none";
		edithide_div.style.display = "inline";
	}
	else{
		for(var i=1; i<all_num+1; i++)
		{
			var search_divo = $('searchform_'+i);
			var editshow_divo = $('editshow_'+i);
			var edithide_divo = $('edithide_'+i);
			search_divo.style.display = "none";
			edithide_divo.style.display = "none";
			editshow_divo.style.display = "inline";
		}
		
		search_div.style.display = "none";
		editshow_div.style.display = "inline";
		edithide_div.style.display = "none";
	}
}
