// $Id: hire_eeo.js,v 1.1 2008/08/12 19:54:58 lzhang Exp $
// $Source: /bbsrc/web/CVS/cvsroot/CareerCenter/apps/HIRE/HIRE-web/web/javascript/hire_eeo.js,v $

function SetEthnicityRace(theForm)
{
	var theEthnicityRace = theForm.ethnicity.options[theForm.ethnicity.selectedIndex].value;
	while (theForm.race.options.length) theForm.race.options[0] = null;
	switch(theEthnicityRace) {

   	case "NS":
    theForm.race.style.visibility='visible';
    document.getElementById('race').style.visibility='visible';

	theForm.race.options[0]=new Option("Not Specified", "NS");

	theForm.race.options[1]=new Option("American Indian/Alaskan Native", "5");
		
	theForm.race.options[2]=new Option("Asian", "4");
		
	theForm.race.options[3]=new Option("NativeHawaiian/PacificIslander", "7");
		
	theForm.race.options[4]=new Option("Black/African American", "2");
		
	theForm.race.options[5]=new Option("White", "1");
		
	theForm.race.options[6]=new Option("Two or More Races", "8");

    theForm.race.options[7]=new Option("Decline to Identify", "6");
		
	break;
	
	case "HL":
    theForm.race.style.visibility='hidden';
    document.getElementById('race').style.visibility='hidden';
	theForm.race.options[0]=new Option("Not Specified", "3");
		
	break;

	case "NHL":
    theForm.race.style.visibility='visible';
    document.getElementById('race').style.visibility='visible';
    
	theForm.race.options[0]=new Option("Not Specified", "NS");
		
	theForm.race.options[1]=new Option("American Indian/Alaskan Native", "5");
		
	theForm.race.options[2]=new Option("Asian", "4");
		
	theForm.race.options[3]=new Option("NativeHawaiian/PacificIslander", "7");
		
	theForm.race.options[4]=new Option("Black/African American", "2");
		
	theForm.race.options[5]=new Option("White", "1");
		
	theForm.race.options[6]=new Option("Two or More Races", "8");

    theForm.race.options[7]=new Option("Decline to Identify", "6");
				
	break;

    case "DE":
    theForm.race.style.visibility='hidden';
    document.getElementById('race').style.visibility='hidden';
	theForm.race.options[0]=new Option("Decline to Identify", "6");
		
	break;

	
	default:
		theForm.race.options[0]=new Option("Not Specified");
		break;
	}
	
}


				
