DaysArr = new Object();
DaysArr1 = new Object();
Sessions = new Object();
Code = new Object();
DaysArr = new Array("Thursday, April 27, 2006","Saturday, April 29, 2006","Sunday, April 30, 2006");
DaysArr1 = new Array("Thursday, April 27, 2006","Saturday, April 29, 2006","Sunday, April 30, 2006");
Sessions["Thursday, April 27, 2006"] = new Array("All","Opening Session"); Sessions["Saturday, April 29, 2006"] = new Array("All","Plenary Session I: New perspectives in the care of chronic diseases ","Round Table I: Adopting new models of patient education","Oral Communications I: Therapeutic patient education and motivation to change behaviours","Round Table II: Psycho-social aspects of education","Oral Communications II: Empowerment of people with chronic diseases","Round Table III: Clinic-based education programmes","Oral Communications III: Evaluation of results and evidence-based therapeutic patient education"); Sessions["Sunday, April 30, 2006"] = new Array("All","Plenary Session II: Looking for self awareness and self development                 (Supported by an unrestricted educational grant from Medtronic)","Round Table IV: Strategies for promoting healthy behaviours","Oral Communications IV: Educating the educators, organisation and cost-effectiveness","Plenary Session III: Different words to tell the meaning of patient education          (Supported by an unrestricted educational grant from Servier)  "); Code["Thursday, April 27, 2006"] = new Array("OS1","OS1"); Code["Saturday, April 29, 2006"] = new Array("PL1|RT1|OC1|RT2|OC2|RT3|OC3","PL1","RT1","OC1","RT2","OC2","RT3","OC3"); Code["Sunday, April 30, 2006"] = new Array("PL2|RT4|OC4|PL3","PL2","RT4","OC4","PL3"); 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
}

