

//Function to hide current div and show new div
function ShowHide(div1, div2)
{
div1.style.display = "none";
div2.style.display = "block";
}
//Show options after selecting an index on the first drop down list
function OnChange1(dropdown)
{
var myindex  = dropdown.selectedIndex;
if (myindex=="0")
{
ShowHide(document.getElementById("option1"), document.getElementById("option0"));
ShowHide(document.getElementById("option2"), document.getElementById("option0")); ShowHide(document.getElementById("option3"), document.getElementById("option0")); ShowHide(document.getElementById("option4"), document.getElementById("option0")); ShowHide(document.getElementById("option5"), document.getElementById("option0"));
ShowHide(document.getElementById("divCharacter1"), document.getElementById("divCharacter0"));		//Hide Pleading Orc
ShowHide(document.getElementById("divSubmit1"), document.getElementById("divSubmit0"));			//Hide Submit button
ShowHide(document.getElementById("divSpacing0"), document.getElementById("divSpacing1"));		//Hide line breaks at the bottom of the page
}
else {
if (dropdown.options[myindex].value!=1)
ShowHide(document.getElementById("option1"), document.getElementById("option0"));
if (dropdown.options[myindex].value!=2)
ShowHide(document.getElementById("option2"), document.getElementById("option0"));
if (dropdown.options[myindex].value!=3)
ShowHide(document.getElementById("option3"), document.getElementById("option0"));
if (dropdown.options[myindex].value!=4)
ShowHide(document.getElementById("option4"), document.getElementById("option0"));
if (dropdown.options[myindex].value!=5)
ShowHide(document.getElementById("option5"), document.getElementById("option0"));
ShowHide(document.getElementById("option0"), document.getElementById("option" + dropdown.options[myindex].value));
ShowHide(document.getElementById("divSpacing1"), document.getElementById("divSpacing0"));	ShowHide(document.getElementById("divCharacter1"), document.getElementById("divCharacter0"));	ShowHide(document.getElementById("divSubmit1"), document.getElementById("divSubmit0"));
}
return true;
}
