// JavaScript Document

accessPrivacySelect = function (el) {
	prefix = el.id.substring(0, el.id.indexOf('_'));
	if (el.id == prefix + '_public_1') {
		for (var i = 1; chk = el.form[prefix + '_group_' + i]; i++) {
			chk.checked = false;
		}
		GF.classmgr.attach('password_block', 'hide');
	}
}

accessGroupSelect = function (el) {
	prefix = el.id.substring(0, el.id.indexOf('_'));
	GF.DOM.get(prefix + '_public_0').checked = true;
}

function toggle_contest(el)
{
	if (el)
		GF.classmgr.remove('contest_param', 'hide');
	else
		GF.classmgr.attach('contest_param', 'hide');
}

