
<!--

function minorityCheckBox(cb){
	for (j=0; j<5; j++){
		if (eval("document.change_maillist.minoritytype[" + j + "].checked") == true){
			document.change_maillist.minoritytype[j].checked = false;
			if (j == cb){
				document.change_maillist.minoritytype[j].checked = true;
				document.change_maillist.minority[0].checked = true;
			}
		}
	}
	if (document.change_maillist.minoritytype[4].checked == true){
		document.change_maillist.other_race.disabled = false;
	}else{
		document.change_maillist.other_race.value = "";
		document.change_maillist.other_race.disabled = true;
	}
}
function checkBoxValidate(cb){
	for (j=0; j<13; j++){
		if (eval("document.change_maillist.organizationtype[" + j + "].checked") == true){
			document.change_maillist.organizationtype[j].checked = false;
			if (j == cb){
				document.change_maillist.organizationtype[j].checked = true;
			}
		}
	}
	if (document.change_maillist.organizationtype[12].checked == true){
		document.change_maillist.other_type.disabled = false;
	}else{
		document.change_maillist.other_type.value = "";
		document.change_maillist.other_type.disabled = true;
	}
}

function disable_checkbox(frm,item){
	if (item.value == "Non Minority"){
		if (item.checked == true){
			for (i=0;i<5;i++){
				document.change_maillist.minoritytype[i].checked = false;
				document.change_maillist.minoritytype[i].disabled = true;
			}
			frm.other_race.value = "";
			document.change_maillist.other_race.disabled = true;
		}else{
			for (i=0;i<5;i++){
				document.change_maillist.minoritytype[i].disabled = false;
			}
			document.change_maillist.other_race.disabled = false;
		}
	}else if (item.value == "Minority"){
		for (i=0;i<5;i++){
			document.change_maillist.minoritytype[i].disabled = false;
		}
		document.change_maillist.other_race.disabled = false;
	}
}


function setfocus(frm,item){
	if (item.name == "minoritytype"){
		frm.other_race.focus();
	}else if (item.name = "organizationtype"){
		frm.other_type.focus();
	}
}

function moveFocus(i,delKey,fld) {
    if (i.value.length == i.maxLength) {
  		if (delKey!=9) { 
			if(delKey!=8 && delKey!=46 && delKey!=16 &&  !(delKey>36 && delKey<41)){ //if the delete, backspace, shift, are not the keys that caused the keyup event.
  				fld.focus();
			}
 		} 
  	}
}// end of function

-->
