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) MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, 'Babies and Toddlers', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181077,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '3-4', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181631,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '3-4', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181631,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '4-6', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181258,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '4-6', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181258,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '6-8', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181259,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '6-8', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181259,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '8-10', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181260,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '8-10', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181260,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '10-13', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181632,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '10-13', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181632,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( true, '13 and up', '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. MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, 'Babies and Toddlers', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181077,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '4-7', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181633,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '4-7', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181633,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '7-9', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181634,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '7-9', 'Newton', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181634,+1702157682+1702181255&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '9-11', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181635,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '11-13', 'Boston', 'IDTD=2057567&IDRPH=2159141&COID=1702157645+1702181636,+1702157682+1702181254&RHL=-1'); i++; MyChildrenCoursesArr[i] = new MyChildrenCoursesObj( false, '13 and up', '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 = '