function reloadcalendar(type)
{
    nextPage= type.options[type.selectedIndex].value
	catstr = ""
	//	if (nextPage != "all")
		catstr = "type=" + nextPage
	currentHref = window.location.href
	typeloc = currentHref.search("type")
	amploc = currentHref.search("&")
	loc = currentHref.search("\\?")
	    if (typeloc > 0)
		window.location.href=currentHref.substring(0,loc+1) + catstr + currentHref.substring(amploc)
		else
		    window.location.href=currentHref.substring(0,loc+1) + catstr + "&" + currentHref.substring(loc+1)
			    
}