DaysArr = new Object();
DaysArr1 = new Object();
Sessions = new Object();
Code = new Object();
DaysArr = new Array("Sunday, January 27, 2008","Monday, January 28, 2008","Tuesday, January 29, 2008","Wednesday, January 30, 2008");
DaysArr1 = new Array("Sunday, January 27, 2008","Monday, January 28, 2008","Tuesday, January 29, 2008","Wednesday, January 30, 2008");
Sessions["Sunday, January 27, 2008"] = new Array("All","Opening Address","Plenary Session: ISBD Moving The Field Forward","Can an Antipsychotic Exhibit the Properties of an Antidepressant AstraZeneca Sponsored Scientific Session","Bipolar Depression","Bipolar II Disorder","Bipolar Disorder And Medical Morbidity","Hot Topics Research","Lithium Circa 2008 / The Switch (up to BP and Depression to Mania)","Research into the Community Clinical Practice"); Sessions["Monday, January 28, 2008"] = new Array("All","Clinical Trials In Developing Countries: Opportunities And Challenges","Pediatric Bipolar Disorder","Barriers To Diagnosis And Treatment: International Perspective","Genetics and Neurobiology Of Bipolar Disorder","Maintentance of Effect in the Treatment Of Bipolar Disorder: Review of the Latest Advances in Therapy AstraZeneca Sponsored Satellite Symposium","Chronobiology And Therapeutics For Bipolar Disorders (ISAD)","Brain Imaging Studies On Neurobiology Of Bipolar Disorder","Psychosocial Treatments and Prevention Of Bipolar Disorder","Patient Outreach Session","Samuel Gershon Junior Investigator Awards","Psychosis and Bipolar Disorder Interface"); Sessions["Tuesday, January 29, 2008"] = new Array("All","Reception Dinner at the Jaypee Palace Hotel in Agra"); Sessions["Wednesday, January 30, 2008"] = new Array("All","Maintenance Treatment of Bipolar Disorder","Mania Matters: Focus on Treatment, Comorbidity, Course and Outcome Organon International Sponsored Satellite Symposium","Bipolar Disorder In Special Populations","Plenary Session: Neurocognition In Bipolar Disorder"); Code["Sunday, January 27, 2008"] = new Array("OR01|OR02|OR14|OR04|OR05|OR06|OR07|OR08|OR09","OR01","OR02","OR14","OR04","OR05","OR06","OR07","OR08","OR09"); Code["Monday, January 28, 2008"] = new Array("OR10|OR11|OR12|OR13|OR03|OR15|OR16|OR17|OR18|OR19|OR20","OR10","OR11","OR12","OR13","OR03","OR15","OR16","OR17","OR18","OR19","OR20"); Code["Tuesday, January 29, 2008"] = new Array("RD","RD"); Code["Wednesday, January 30, 2008"] = new Array("OR21|OR22|OR23|OR24","OR21","OR22","OR23","OR24"); var DaysArrDashes = '------------------------'
var SessionsDashes = '------------------------'
initializeForm()


function initializeForm () 
{
document.jump.SessionDate.length = 0;
DaysArr1[DaysArr1.length] = DaysArrDashes
document.jump.SessionDate.options[0] = new Option(DaysArr1[0],DaysArr[0],1,1)
 for(count = 1; count < DaysArr1.length; count++) 
{
  document.jump.SessionDate.options[count] = new Option(DaysArr1[count],DaysArr[count]) 
 }
fillSessionID()
}


function fillSessionID()
{
document.jump.SessionID.length = 0;
 reg = new String(DaysArr[document.jump.SessionDate.selectedIndex])
 if (reg == DaysArrDashes) 
{
     document.jump.SessionDate.selectedIndex = document.jump.SessionDate.selectedIndex - 1
     reg = new String(DaysArr[document.jump.SessionDate.selectedIndex])
  }
 document.jump.SessionID.options[0] = new Option(Sessions[reg][0],Code[reg][0],1,1);
 for(count = 1; count < Sessions[reg].length; count++)
 document.jump.SessionID.options[count] = new Option(Sessions[reg][count],Code[reg][count]);
 document.jump.SessionID.options[document.jump.SessionID.options.length] = new Option(SessionsDashes);
}


function checkSessionID()
{
 if (document.jump.SessionID.options[document.jump.SessionID.selectedIndex].text == SessionsDashes)
 document.jump.SessionID.selectedIndex = document.jump.SessionID.selectedIndex - 1
}

