// Ã¼Å©¹Ú½º·Î¸®½ºÆ®¸¦¸ðµÎ¼±ÅÃ|ÇØÁ¦
function selectList ( form, checkbox ) {

	if ( checkbox == null ) // ¸®½ºÆ®°³¼ö=0
		return false;

	else if ( checkbox[0] != null ) { // ¸®½ºÆ®°³¼ö>=2

		var allcheck = true;

		for ( i=0; i<checkbox.length; i++ ) {
			if ( !checkbox[i].checked ) {
				allcheck = false;
				break;
			}
		}

		for ( i=0; i<checkbox.length; i++ ) {
			checkbox[i].checked = !allcheck;
		}

	}

	else // ¸®½ºÆ®°³¼ö=1
		checkbox.checked = !checkbox.checked;

}

// Ã¼Å©¹Ú½º°¡ÇÏ³ª¶óµµ¼±ÅÃµÇ¾îÀÖÀ¸¸étrue¸¦¹ÝÈ¯ÇÑ´Ù
function isSelected ( form, checkbox ) {

	if ( checkbox[0] != null ) { // ¸®½ºÆ®°³¼ö>=2

		for ( i=0; i<checkbox.length; i++ ) {
			if ( checkbox[i].checked )
				return true;
		}
	}

	else // ¸®½ºÆ®°³¼ö=1
		if ( checkbox.checked )
			return true;
	
	return false;

}
