function GoToAdultLink(whichSelect) { var baseURL = "https://thriva.activenetwork.com/ThrivaRegister/Registration.aspx?"; var mySel = document.getElementById(whichSelect); var URLAdd = mySel.options[mySel.selectedIndex].value; if ((URLAdd)&&(URLAdd!='')) { var fullURL = baseURL + URLAdd; window.location = "/myaccount/?destpg=" + escape(fullURL); } } ////////////////////////////////////////////////// // Hide/show stuff for radio buttons and the adult course search. SrcSel343Adult == the id of the select for boston. ////////////////////////////////////////////////////// function showValidAdultLevels(theobj) { bostonLevelssubmit=document.getElementById('submitSrcSel343Adult') bostonLevels=document.getElementById('SrcSel343Adult'); newtonLevelssubmit=document.getElementById('submitnewtonAdultLevels'); newtonLevels=document.getElementById('newtonAdultLevels'); if ((theobj.checked==true) && (theobj.value=='Boston')) { newtonLevelssubmit.className='none'; newtonLevels.className='none'; bostonLevels.className='notNone'; bostonLevelssubmit.className='regSubmit'; } if ((theobj.checked==true) && (theobj.value=='Newton')) { bostonLevelssubmit.className='none'; bostonLevels.className='none'; newtonLevels.className='notNone'; newtonLevelssubmit.className='regSubmit'; } } var ErrorClass = 'hasError bunda'; var NoErrorClass = 'bunda'; // //////////////////////////////////////////////////// function MyChildrenCoursesObj(IsFSL, AgeGroup, Location, URLAdd) { this.IsFSL = IsFSL; this.AgeGroup = AgeGroup; this.Location = Location; this.URLAdd = URLAdd; } function MyChildrenCurrChoices() { this.IsFSL = null; this.Location = ''; this.AgeGroup = ''; } // //////////////////////////////////////////////////// var MyChildrenCoursesArr = new Array(); var i=0; // Below are EVERY possibility of classes for the two main categories: french spoken at home, and english spoken at home. a function is called in the html which then hides the "wrong" choices based on the default values set in the html code. // English at home (my child speaks French as second language). In August 2008, brian updated these to reflect new hierarchy sophie provided. the application variables (the thriva links) have names that no longer exactly match the age ranges of the courses. MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '6 months - 3 years', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181077,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'age 3', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181631,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'age 4', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181258,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'age 4', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181258,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 5-6', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181259,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 5-6', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181259,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 7-9', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181260,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 7-9', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181260,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 10-12', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181632,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 10-12', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181632,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'ages 13+', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181262,+1702157682+1702181254&RHL=-1'); i++; // Native speaker / bilingual / french-at-home courses. set first val, isFSL, to FALSE. In August 2008, brian updated these to reflect new hierarchy sophie provided. the application variables (the thriva links) have names that no longer exactly match the age ranges of the courses. MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '6 months - 3 years', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181077,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 4-6', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181633,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 4-6', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181633,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 7-8', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181634,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 7-8', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181634,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 9-10', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181635,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 11-12', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181636,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'ages 13+', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181637,+1702157682+1702181254&RHL=-1'); i++; // //////////////////////////////////////////////////// function MyChildrenCoursesResetErrors() { document.getElementById('IsFSLCont').className= NoErrorClass; document.getElementById('LocationCont').className= NoErrorClass; document.getElementById('AgeGroupCont').className= NoErrorClass; document.getElementById('chilerrmsg').innerHTML=''; document.getElementById('chilerrmsg').className= 'hide'; } function MyChildrenCoursesAddError(ErrStr) { if (document.getElementById('chilerrmsg').innerHTML == '') { document.getElementById('chilerrmsg').innerHTML = '