<!--
		/*
		Purpose	: Make sure for each event(in Misc & Event Prop.), bettor cannot selected all bets.
		Author	: Philip Ng
		Date	: 17 MAY 01
		*/

		// this function is to make sure user cannot select all the odds for each proposition
		function CheckSelectedValue(el) {
			var strCheckGroupName = (el.name).substring(0, (el.name).lastIndexOf("~"));	// check onclick checkbox's group name
			var arrCheckBoxValue = new Array();	// array to hold checkbox in same group
			var idx = 0; // array index count
			var flagSelectAll = true;
			
			for (var i=0; i<document.forms[0].length; i++) {
				if ( (document.forms[0].elements[i].name).indexOf(strCheckGroupName) != -1 ) {
					//arrCheckBoxValue[idx++] = (document.forms[0].elements[i].checked == true) ? alert('true') : alert('false');
					arrCheckBoxValue[idx++] = (document.forms[0].elements[i].checked == true) ? "true" : "false";
				}
			}

			// if array length is equal to or less than one, do nothing
			if (arrCheckBoxValue.length > 1) {
				for (var i=0; i<arrCheckBoxValue.length; i++) {
					if (arrCheckBoxValue[i] == "false") {
						flagSelectAll = false;
					}
				}
			} else {
				flagSelectAll = false;
			}
			
			if (flagSelectAll ) {
				alert("You cannot selected all bets on same proposition event.");
				return false;
			}
			
			return true;
		}
//-->