function cleardayrides(checked) {
	if(!checked) return;
	var ridearea=document.getElementById("dayrides");
	if(!ridearea) return;
	rides=ridearea.getElementsByTagName('input');
	for(var count=0; count<rides.length; count++) rides[count].checked=false;
}

function clearfullrides(checked) {
	if(!checked) return;
	var ridearea=document.getElementById("fullrides");
	if(!ridearea) return;
	rides=ridearea.getElementsByTagName('input');
	for(var count=0; count<rides.length; count++) rides[count].checked=false;
}

function formclear(id) {
	var fa=document.getElementById(id);
	if(!fa) return;

	eles=fa.getElementsByTagName('input');
	for(var count=0; count<eles.length; count++) {
		if(eles[count].type=="radio") eles[count].checked=false;
	}
}

function dropbutton(obj,drop) {
	if(drop) obj.style.border="inset 2px #cccccc";
	else obj.style.border="outset 2px #cccccc";
}

function popup(url,name) {
	var newwin = window.open(url,name,"height=650px,width=580px,scrollbars=yes,resizable=yes");
	newwin.focus();
}

function ays(url) {
	if(confirm("Are you sure you want to delete this user?")) location.href=url;
}

function aysr(url,event) {
	if(confirm("Are you sure you want to remove this user from the "+event+" ?")) location.href=url;
}
function showtc() {
	var newwin = window.open("events/tsandcs.php",name,"height=450px,width=425px,scrollbars=yes,resizable=yes");
	newwin.focus();
}

