function show(obj) {
	no = obj.options[obj.selectedIndex].value;
	count = obj.options.length;
	for(i=1;i<=count;i++)
		document.getElementById('searchType'+i).style.display = 'none';
	if(no>0)
		document.getElementById('searchType'+no).style.display = 'block';
	}
	
function showActivites(obj) 
{
	var selected = obj.options[obj.selectedIndex].value;
	var count = obj.options.length;
	var optionValue;
	var option;
	
	for(i=0;i<=count-1;i++)
	{
	    optionValue = obj.options[i].value;
		option = document.getElementById('activity_type'+optionValue);
		if (option != null){
		    //alert('hide ' + optionValue);
		    option.style.display = 'none';
		}
    }
		
	if(selected>0)
	{
		document.getElementById('activity_type'+selected).style.display = 'block';
    }
}

