DaysArr = new Object();
DaysArr1 = new Object();
Sessions = new Object();
Code = new Object();
DaysArr = new Array("Thursday, June 28, 2007","Friday, June 29, 2007","Saturday, June 30, 2007","Sunday, July 01, 2007");
DaysArr1 = new Array("Thursday, June 28, 2007","Friday, June 29, 2007","Saturday, June 30, 2007","Sunday, July 01, 2007");
Sessions["Thursday, June 28, 2007"] = new Array("All","Opening Ceremony","Plenary Lectures"); Sessions["Friday, June 29, 2007"] = new Array("All","Pain From A To Z (Basic Knowledge)","Meet The Expert","The Burden of Neuropathic Pain Sponsored by Pfizer Canada ","Pain From A To Z (Basic Knowledge)","Meet the Expert","PLENARY LECTURE"); Sessions["Saturday, June 30, 2007"] = new Array("All","Pain From A To Z (Pharmacology)","Novel Ideas And Modalities Of Treatment","Pain From A To Z (Pharmacology)","Novel Ideas and Modalities of Treatment","Remembering David Niv"); Sessions["Sunday, July 01, 2007"] = new Array("All","Pain From A To Z (Interventional Approaches)","Controversies in Pain Medicine","Pain From A To Z (Interventional Approaches)","Controversies in Pain Medicine"); Code["Thursday, June 28, 2007"] = new Array("OR01|OR02","OR01","OR02"); Code["Friday, June 29, 2007"] = new Array("OR03|OR04|SS|OR05|OR06|OR15","OR03","OR04","SS","OR05","OR06","OR15"); Code["Saturday, June 30, 2007"] = new Array("OR07|OR08|OR09|OR10|OR16","OR07","OR08","OR09","OR10","OR16"); Code["Sunday, July 01, 2007"] = new Array("OR11|OR12|OR13|OR14","OR11","OR12","OR13","OR14"); 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
}

