var discip = new Array();
discip['SelectDiscipline']=new Array('SelectSubDiscipline');
discip['Dance'] = new Array('SelectSubDiscipline','Ballet/Classical','Ballroom','Childrens','Contemporary','Folk/Roots/World','Improv','Jazz/Swing','Modern','Rhythm/Tap','Square/Country/Line','Other','Belly');
discip['Heritage'] = new Array('SelectSubDiscipline','Agriculture','Anthropology/Archaeology','Antiques','Architecture','Cemetary','Childrens','Conservatory','Geneology','History','Military','Paleontology/Geology','Scared/Religious','Science/Medicine','Transportation','Other');
discip['Literary'] = new Array('SelectSubDiscipline','Childrens','Editing','Fiction','Magazine/Periodicals','Non-fiction','Playwriting/Screenplays','Poetry','Public Relations','Publishing','Spoken Word','Storytelling','Other');
discip['Media'] = new Array('SelectSubDiscipline','Animation','audio','childrens','cinematography/film','computer graphics','digital','new media','radio','television','video','web art','other');
discip['Music'] = new Array('SelectSubDiscipline','blues/bluegrass','chamber/classical','childrens','choral/barbershop','concert band','country/western','Dance Band/Ragtime/Swing','Electronic/Ambient','Folk','Hip Hop/R&B','Improvisation','Jazz','Kindermusik','Latin','Musical Theatre/Cabaret/Torch','New Age','New Music','Opera','Orchestral','Orff','Pop','Other');
discip['Theatre'] = new Array('SelectSubDiscipline','Busking','Childrens','Classical','Comedy','Community','Drama','Magic','Mime','Musical Theatre/Cabaret','Performance Art','Puppetry','Storytelling','Summer Theatre','Ventriloquism','Other');
discip['Visual'] = new Array('SelectSubDiscipline','Book Arts','Cartoons/Comics','Ceramic/Pottery','Childrens','Collage','Digital','Drawing/Sketching','Encaustic','Fibre/Textiles/Needle Arts','Folk/Decorative Arts','Glass','Graphic Design','Illustration','Installation Art','Interior Design','Jewellery','Metalwork','mixed Media','Painting','Paper','Performance Art','Illustration','Interior Design','Jewellery','Metalwork','Mixed Media','Painting','Paper','Performance Art','Other');// City lists
discip['Venue']= new Array('SelectSubDiscipline','Theatres','Banquet Halls','Rentals','Other');
var Roles = new Array();
Roles['SelectDiscipline']=new Array('SelectRole');
Roles['Dance'] = new Array('SelectRole','Adjudicator','Administrator','Agent','Artist-In-Residence','Artistic Director','Choreographer','Critic/Reviewer','Dancer','Director','Historian','Instructor','Lecturer','Manager','Notator','Producer','Promoter/Marketer','Researcher','Teacher/Coach/Educator','Therapist','Other');
Roles['Heritage'] = new Array('SelectRole','Administrator','Archivist','Collector','Conservator','Curator','Docent','Educator','Exhibit Designer','Historian','Lecturer','Preparator','Programmer','Publisher','Researcher','Tour Guide','Writer','Other'	);
Roles['Literary'] = new Array('SelectRole','Administrator','Archivist','Collector','Conservator','Curator','Docent','Educator','Exhibit Designer','Historian','Lecturer','Preparator','Programmer','Publisher','Researcher','Tour Guide','Writer','Other'	);
Roles['Media'] = new Array('SelectRole','Accompanist','Adjudicator','Administrator','Agent','Artist-In-Residence','Artistic Director','Composer/Songwriter','Conductor','Critic/Reviewer','Director','Disc Jockey','Facilitator','Historian','Instrument Builder/Luthier','Instrumentalist','Lecturer','Manager','Musician','Percussionist','Producer','Promoter/Marketer','Other' );
Roles['Theatre'] = new Array('SelectRole','Actor Non-Equity','Actor - Equity','Adjudicator','Administrator','Agent','Artisit-In-Residence','Choreographer','Costume Designer','Critic/Reviewer','Director','Dramatist','Historian','Impersonator','Lecturer','Lighting Technician','Magician','Make up Technician','Manager','Producer','Promoter/Marketer','Puppeteer','Other');
Roles['Visual'] = new Array('SelectRole','Administrator','Agent','Archivist','Artist','Artist-In-Residence','Blacksmith','Bookbinder','Calligrapher','Candlemaker','Cartoonist','Clothing Designer','Craftsperson/Artisan','Critic/Reviewer','Curator','Dealer','Docent','Dressmaker/Milliner','Embroiderer','Ghost Writer','Graphic Designer','Historian','Other' );
Roles['Music'] = new Array('SelectRole','Accompanist','Adjudicator','Administrator','Agent','Artist-In-Residence','Artistic Director','Composer/Songwriter','Conductor','Critic/Reviewer','Director','Disc Jockey','Facilitator','Historian','Instrument Builder/Luthier','Instrumentalist','Lecturer','Manager','Musician','Percussionist','Producer','Promoter/Marketer','Other');
Roles['Venue'] = Array('SelectRole','Accompanist','Adjudicator','Administrator','Agent','Artist-In-Residence','Artistic Director','Composer/Songwriter','Conductor','Critic/Reviewer','Director','Disc Jockey','Facilitator','Historian','Instrument Builder/Luthier','Instrumentalist','Lecturer','Manager','Musician','Percussionist','Producer','Promoter/Marketer','Other');
function subdiscip() { 
  
  cntrySel = document.getElementById('discipline');  
  stateList = discip[cntrySel.value];
  changeSelect('subdiscipline', stateList, stateList);   
  Role();
}
function Role() {  
  cntrySel = document.getElementById('discipline');  
  stateList = Roles[cntrySel.value]; 
  changeSelect('role', stateList, stateList);
}
function changeSelect(fieldID, newOptions, newValues) { 
  
  selectField = document.getElementById(fieldID);  
  selectField.options.length = 0;  
  for (i=0; i<newOptions.length; i++) {    
    selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
   }
  }
function addLoadEvent(func) { 
  var oldonload = window.onload;  
  if (typeof window.onload != 'function') {
     
    window.onload = func;  
  } 
  else {    
    window.onload = function() {
                      
                      if (oldonload) {        
                        oldonload();      
                      }      
                      func();    
                    }  
  }
}
//addLoadEvent(function() {  subdiscip();});
