function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the pages.
var pages = new makeArray("Select a subject",
"Carjacking",
"Curfew",
"Drive-By Shooting",
"Enhanced Penalties-Sentencing",
"Expert Testimony",
"Gang Activity and Forfeiture",
"Gang Databases",
"Gang Participation",
"Gang Prevention",
"Gang Prosecution",
"Gang Recruitment, Threats, Intimidation",
"Gang-Related Clothing, Dress Codes, School Uniforms",
"Gang-Related Definitions",
"Gangs and Correctional Facilities",
"Gangs and Schools",
"Gangs and Weapons",
"Graffiti",
"Juvenile Gang Members",
"Law Enforcement Training",
"Miscellaneous Gang Legislation",
"Probation and Parole",
"Public Nuisance/Premises Used by Gangs");

// This array hold the URLs of the pages.
var urls = new makeArray("",
"carjacking.htm",
"curfew.htm",
"drive-by%20shootings.htm",
"enhanced_penalties.htm",
"expert_testimony.htm",
"gang_activity_and_forfeiture.htm",
"gang_databases.htm",
"gang_participation.htm",
"gang-prevention.htm",
"gang_prosecution.htm",
"gang_recruitment.htm",
"gang_relatedclothing.htm",
"gang-related%20definitions.htm",
"gangscorrectionalfacilities.htm",
"gangs_and_schools.htm",
"Gangs%20and%20Weapons.htm",
"graffiti.htm",
"juvenileGangMembers.htm",
"LawEnforcementTraining.htm",
"Miscellaneous%20Gang%20Legislation.htm",
"probation%20and%20parole.htm",
"premises%20used%20by%20gangs.htm");

// This function determines which page is selected and goes to it.
function goPage(form) {
i = form.menu.selectedIndex;
    if (i != 0) {
    window.location.href = urls[i];
	}
}

// display a drop down menu.
document.write('<div class="formnav"><FORM name="subjects"><font size="2"><SELECT NAME="menu" class="formstyle" onChange ="goPage(this.form)">');
    for (var i = 0; i < pages.length; i++) {
    document.write('<OPTION>' + pages[i]);
    }
document.write('</SELECT></font></FORM></div>');
//note array starts at 0
//subjectindex defined in HTML
document.subjects.menu.selectedIndex = subjectindex;
document.close();