// JavaScript Document

//this code changes menus


function nullOptionsDMA(aMenu){

var tot=aMenu.options.length

for (i=0;i<tot;i++)

{

aMenu.options[i]=null

}

aMenu.options.length=0;

}

/*
function MySubjectDMA0(aMenu){

nullOptionsDMA(aMenu)

with (aMenu){
//Rewrites the text and values			 
options[0]=new Option("Select Section/Price","");
options[1]=new Option("Orchestra: $146.25");
options[2]=new Option("Rear Orchestra (Y-ZZ): $146.25");
options[3]=new Option("Loge (AA-EE): $146.25");
options[4]=new Option("Mid Mezz (F-G): $111.25");
options[5]=new Option("Rear Mezz (H-M): $86.25");
options[0].selected=true
}


} */

function MySubjectDMA0(aMenu){

nullOptionsDMA(aMenu)

with (aMenu){
//Rewrites the text and values			 
options[0]=new Option("Select Section/Price","");
options[1]=new Option("Orchestra: $100.25-$131.75");
options[2]=new Option("Mid Mezz (F-G): $68.75-$87.50");
options[3]=new Option("Rear Mezz (H-M): $46.25-$68.75");
options[4]=new Option("Student Rear Orchestra (Y-ZZ): $67.00 (reg. $116.25-$146.25)");
options[5]=new Option("Student Rear Mezz (F-M): $50.00 (reg. $ 56.26-$111.25)");
options[0].selected=true
}

}

function MySubjectDMA1(aMenu){

nullOptionsDMA(aMenu)

with (aMenu){
//Rewrites the text and values
options[0]=new Option("Select Section/Price","");
options[1]=new Option("Rear Orchestra (Y-ZZ): $118.25");
options[2]=new Option("Mid Mezz (F-G): $86.75");
options[3]=new Option("Rear Mezz (H-M): $64.25");
options[0].selected=true
}

}


function MySubjectDMA2(aMenu){

nullOptionsDMA(aMenu)

with (aMenu){
//Rewrites the text and values
options[0]=new Option("Select Section/Price","");
options[1]=new Option("Orchestra: Price TBD");
options[2]=new Option("Rear Orchestra (Y-ZZ): Price TBD");
options[3]=new Option("Loge (AA-EE): Price TBD");
options[4]=new Option("Front Mezz (A-E): Price TBD");
options[5]=new Option("Mid Mezz (F-G): Price TBD");
options[6]=new Option("Rear Mezz (H-M): Price TBD");
options[0].selected=true
}

}


function MySubjectDMA3(aMenu){

nullOptionsDMA(aMenu)

with (aMenu){
//Rewrites the text and values
options[0]=new Option("Select Section/Price","");
options[1]=new Option("Orchestra: Price TBD");
options[2]=new Option("Rear Orchestra (Y-ZZ): Price TBD");
options[3]=new Option("Loge (AA-EE): Price TBD");
options[4]=new Option("Front Mezz (A-E): Price TBD");
options[5]=new Option("Mid Mezz (F-G): Price TBD");
options[6]=new Option("Rear Mezz (H-M): Price TBD");
options[0].selected=true
}

} 

/* ####################### setUp ####################### */


function setUpDMA(){

with (document.formDoubleMenuDMA) {

if (performance.selectedIndex==0){

performance.options[0].selected=true

section.options[0].selected=true

}

 

if (performance.selectedIndex==1)

MySubjectDMA0(section)

if (performance.selectedIndex==2)

MySubjectDMA1(section)

if (performance.selectedIndex==3)

MySubjectDMA2(section)

if (performance.selectedIndex==4)

MySubjectDMA3(section)


}

}

 

/* ####################### changeFiles ####################### */

 

function changeFilesDMA(){

aMenu=document.formDoubleMenuDMA.performance

aMenu2=document.formDoubleMenuDMA.section

with (aMenu){

 

switch (selectedIndex) {

case 0:

aMenu2.options.length=0;

aMenu2.options[0]=

new Option("Sections/Prices","")

aMenu2.options[0].selected=true;

history.go(0)

break

case 1:

MySubjectDMA0(aMenu2)

aMenu2.options[0].text="Select Section/Price"

break

case 2:

MySubjectDMA1(aMenu2)

aMenu2.options[0].text="Select Section/Price"

break

case 3:

MySubjectDMA2(aMenu2)

aMenu2.options[0].text="Select Section/Price"

break

case 4:

MySubjectDMA3(aMenu2)

aMenu2.options[0].text="Select Section/Price"

break

 

}

}

 

}
