function _initJsHttpRequest() { var xjs=document.createElement('script') xjs.src="https://evansvol.si.edu/common/xsl/js/JsHttpRequest.js"; document.getElementsByTagName('head')[0].appendChild(xjs); } if( typeof(JsHttpRequest) == 'undefined' || !JsHttpRequest) { var JsHttpRequest = false; setTimeout(_initJsHttpRequest,0); } /* recruiter code */ var recruiterBaseURL; var recruiterBaseURL="https://evansvol.si.edu/recruiter/"; var fobj = false; function goToRecruiter( className, act, recruiterID, recFrameName) { urlact = ''; if( act ) { if( className == "VolunteerNavigation" ) act = "CONTROL:" + act; urlact = "act="+act; } rec_goToUrl(className, urlact, recruiterID, recFrameName); } function rec_goToUrl( className, url, recruiterID, recFrameName ) { urlrec = ''; if (!recruiterID) { recruiterID = "501"; } if (!recFrameName) { recFrameName = ""; } if( recruiterID ) { urlrec = "&recruiterID="+recruiterID; } url = recruiterBaseURL + 'index.php?class=' + className + urlrec + (url ? '&' +url : ''); //document.write(url); submitMethod = 'form'; try { testformid = 'fakenewform'; fobj = document.getElementById(testformid); if(!fobj) { var fobj = document.createElement("form"); fobj.name = testformid; fobj.id = testformid; fobj.method = 'POST'; var phpsessidobj = document.createElement("input"); phpsessidobj.name = 'PHPSESSID'; phpsessidobj.type = 'hidden'; document.body.appendChild(fobj); fobj.appendChild(phpsessidobj); } } catch(e) {alert(e.description);} anch=url.split('#'); if(anch.length>1) { url=''; for(i=0;i'); } function rec_setVolInfo(data, ajax) { var undefinedFields = []; for(i=0;i 0 ) { rec_requestVolInfoAJAX(undefinedFields); } } function rec_getVolInfo(field, params, runAfterLoad) { if(params['fromAccID']) field = field+':'+params['fromAccID']; var tFields = []; tFields[0]=field; rec_requestVolInfoAJAX(tFields, runAfterLoad); } function rec_updateVolInfo(url, volFields) { if( typeof(volFields) == 'undefined' || volFields.length == 0 ) volFields = volInformation; fields = ''; for(i=0;i