
function activity_go( tab_group, year, month) {
	current_tab = window[tab_group]
	document.location = '/?mod=user_activity&year=' + year + '&month=' + month + '&tab=' + current_tab + '&rst=1'
}


function activity_submit( tab_group, f ) {
	current_tab = window[tab_group]

	f.tab.value = current_tab

}

function activity_url( tab_group, extra_url ) {
	current_tab = window[tab_group]
	f = document.forms['call_activity']

	year = f.year.value
	month = f.month.value

//	document.location = 
	url = '/?mod=user_activity&year=' + year + '&month=' + month + '&tab=' + current_tab + extra_url

	document.location = url
}




function search_date_range(type) {

	hideDiv( 'search_date_range' )
	hideDiv( 'search_date_single')
	hideDiv( 'search_date_year')
	if (type == 'search_date_range') {
		showDiv( 'search_date_range' )

	} else if (type == 'search_date_single') {
		showDiv( 'search_date_single')

	} else if (type == 'search_date_year') {
		showDiv( 'search_date_year' )
	}
}
