function gaLink( ) {
        var groep = document.forms[0].groepen;
        var nummer = groep.selectedIndex;
        var value = groep[nummer].value;
        if( value )
        	location.href = "/showGroup.cgi?groupid=" + value;
}

function windowOpen(url, breedte, hoogte) {
//	if( window.availWidth && window.availHeight ) {
//		breedte = window.availWidth;
//		hoogte = window.availHeight;
//	}
//	if( document.body.clientWidth && document.body.clientHeight ) {
//		breedte = document.body.clientWidth;
//		breedte = breedte - ( breedte / 3 );
//		hoogte = document.body.clientHeight;
//	}
	window.open(url,"aangemeldepersonen","toolbar=yes,resizable,status=no,menubar=yes,scrollbars=yes,width=" + breedte + ",height=" + hoogte);
}

function verwijderbestand( bestandsnaam, groepid, fileid, pathid ) {
	if( bestandsnaam ) {
		var vraagverwijder = confirm( "Weet u zeker dat u de bestand\n" + bestandsnaam + "\nwilt verwijderen?\nKlik op \"OK\" om dat te verwijderen" );
		if( vraagverwijder && groepid && fileid && pathid ) {
			parent.location.href = "/groupFilesDelete.cgi?groupid=" + groepid + "&fileid=" + fileid + "&pathje=" + pathid;
		}
	}
}

function afmeldgroep( url ) {
	if( url ) {
		var devraag = confirm( "Weet u zeker dat u de huidige groep wilt afmelden.\nKlik op OK om nu af te melden." );
		if( devraag ) {
			parent.location.href = url;
		}
	}
}

function springAantal( url ) {
	var aantal = formamount.aantalber.value;
	if( aantal )
		this.document.location.href=url+"&amount="+aantal;
}
