var IsClient=0; var url1 = "?SID=0003834380513608115652327204896804572936628311328579560"; var arrLevels =new Array('Level 1 (Beginner)', 'Level 2 (Intermediate)', 'Level 3 (Advanced)'); var triageImg=new Array('fgp_stop.jpg','fgp_caution.jpg','fgp_go.jpg'); function FGPLevelfromRisk(vRisk){return(vRisk<=0?3:(vRisk>9?1:2));} var arrTMenu = new Array(7); arrTMenu[0] = new Array('tbTab1()', (IsClient ? 'TeleFitness® Home' : 'TeleFitness® Home'), (IsClient?'150':'105')); arrTMenu[1] = new Array('tbTab2()', (IsClient?'My TeleFitness® Information' : 'Client Management System'), (IsClient?'100':'145')); arrTMenu[2] = new Array('tbTab3()', (IsClient?'Personal Information':'Certified User Personal Information'), '175'); arrTMenu[3] = new Array('Events()', 'Events in my Area', '105'); arrTMenu[4] = new Array('goShop()', 'Store', (IsClient?'80':'55')); arrTMenu[5] = new Array('Help()', 'Help', (IsClient?'80':'55')); arrTMenu[6] = new Array('goAFAA()', 'Return to AFAA.com', (IsClient?'145':'85')); var MealPlanMsg="The Nutrition Gets Personal™ meal plans always list the foods by serving size. Therefore, when you see a food item repeated two or more times, it means you can have 2 or more servings of that food. If you wish to change your meal plan, please click on the food item you wish to substitute."; function BuyProfile() { document.location.href="116.tfs"+url1+"&ItemPK=112&Qty=1&Method=1"; } function ClientList() { document.form1.action="102.tfs"; document.form1.submit(); } function ContactAFAA() { var f = document.form1; f.DocType.value=16; f.Owner.value=1; f.Lang.value=1; f.hp.value=1; f.tm.value=1; f.action="110.tfs"; f.submit(); } function EditClient(x) { document.form1.action="104.tfs"; document.form1.PK.value=x; document.form1.submit(); } function EditUser() { document.form1.action="https://"+String(document.domain).replace("telefitness","afaa")+"/114.tfs"; document.form1.submit(); } function EGPDemo(y) { if(!y) y=1; GetDoc(32,y,1); } function Events() { document.form1.action="119.tfs"; document.form1.submit(); } function FGPCardList(x) { document.form1.action="101.tfs"; document.form1.Method.value=4; document.form1.PK2.value=x; document.form1.submit(); } function FGPDemo(y){if(!y) y=1;GetDoc(16,28+y,1);} function FGPTrial() { var str=new String(); //document.form1.action="https://"+String(document.domain).replace("telefitness","afaa")+"/128.tfs"; document.form1.action="https://"+String(document.domain).replace("telefitness","afaa")+"/201.afa"; document.form1.submit(); } function GetDoc(x,y,z) { if(!z) z=1; var f = document.form1; f.DocType.value=x; f.Owner.value=y; f.Lang.value=z; f.action="110.tfs"; f.submit(); } function GetEGP(vHeader, vYN) { var f = document.form1; f.Header.value=vHeader; f.method.value=0; if(vYN) { var page = "123.tfs"; var windowprops = "height=500,width=600,location=no, scrollbars=yes,menubars=no,toolbars=no,resizable=yes"; window.open(page, "Popup", windowprops); f.action='108.tfs'; } else { f.action='107.tfs'; } f.submit(); } function GetExercise(xPK) { if(xPK==0) { alert("Information on this Exercise is Currently Unavailable"); return; } document.form1.Method.value=2; document.form1.PK2.value=xPK; document.form1.action='113.tfs'; document.form1.submit(); return; } function GetFGPCard(y) { GetDoc(1,y,1); //alert("99.js6->GetFGPCard"); } function goFGP(x) { document.form1.tm.value=1; document.form1.PK2.value=x; document.form1.action="129.tfs"; document.form1.submit(); } function GetGlossary() { document.form1.Method.value=3; document.form1.action="115.tfs"; document.form1.submit(); } function GetList(x,y) { document.form1.Method.value=x; document.form1.PK2.value=y; document.form1.action='115.tfs'; document.form1.submit(); return; } function GetMealPlan(vPK) { alert(MealPlanMsg); var f = document.form1; f.MPK.value=vPK; f.Method.value=0; f.action='153.tfs'; f.submit(); } function GetNGP(vHeader) { if (!confirm("The nutrition information that follows is based on results from your Nutrition Triage™. The values have been calculated from standardized formulas and are not exact and should be considered estimates. You can make modifications to your nutrition program if you deem it appropriate to do so. You are solely responsible for any such changes, recognizing that any change may alter the caloric and/or nutrient values. Therefore, if you are unsure of the consequences, AFAA strongly recommends that you do not make any modifications until all precautions are satisfied. All warnings and disclaimers in the Terms of Use for AFAA.com apply to the following Nutrition Program. I have read and agree to be bound by the foregoing warnings, disclaimers and AFAA's Terms of Use.")) return; var f = document.form1; f.Header.value=vHeader; f.method.value=0; f.action="151.tfs"; f.submit(); } function GetTriage(x) { var f = document.form1; f.PK.value=x; f.action='106.tfs'; f.submit(); } function getWS(x) { document.form1.action="http://"+String(document.domain).replace("telefitness","afaa")+"/304.afa"; document.form1.PK.value=x; document.form1.submit(); } function Glossary(x) { document.form1.Owner.value=x; document.form1.action="126.tfs"; document.form1.submit(); } function goAFAA() { document.form1.action="http://"+String(document.domain).replace("telefitness","afaa"); document.form1.submit(); } function GoHome() { document.form1.action="101.tfs"; document.form1.submit(); } function goShop() { document.form1.action="http://"+String(document.domain).replace("telefitness","afaa")+"/602.afa"; document.form1.submit(); } function goTFIC() { document.form1.action="http://"+String(document.domain).replace("telefitness","e-afaa"); document.form1.submit(); } function Help() { document.form1.action=(IsClient?"125.tfs":"124.tfs"); document.form1.submit(); } function Login() { document.form1.action="https://"+String(document.domain).replace("telefitness","afaa")+"/109.tfs"; document.form1.submit(); } function MembershipInfo() { var f = document.form1; f.DocType.value=16; f.Owner.value=45; f.Lang.value=1; document.form1.action="http://"+String(document.domain).replace("telefitness","afaa")+"/103.afa"; f.submit(); } function NewMealPlan(vPK) { alert(MealPlanMsg); var f = document.form1; f.PK.value=vPK; f.Method.value=2; f.action='153.tfs'; f.submit(); } function Search1() { document.form1.Method.value=2; document.form1.action="115.tfs"; document.form1.submit(); } function showLegals(){alert("99.js6-ShowLegals")} function Stretches() { document.form1.Method.value=1; document.form1.action='113.tfs'; document.form1.submit(); } function tbTab1() { document.form1.action="101.tfs"; document.form1.submit(); } function tbTab2() { document.form1.action=(IsClient?"122.tfs":"131.tfs"); document.form1.submit(); } function tbTab3() { document.form1.action="118.tfs"; document.form1.submit(); } function TopMenu() { var str = new String(); str=str+""; for(var i = 0;i"+arrTMenu[i][1]+"";} } str=str+"
"; document.write(str); } function ViewClient(x) { document.form1.action="103.tfs"; document.form1.PK.value=x; document.form1.submit(); } function ViewDoc(x,y,z) { if(!z) z=1; var page = "http://"+document.domain+"/110.tfs"+url1+"&tm=99&DocType="+x+"&Owner="+y+"&Lang="+z; var windowprops = "height=500,width=500,location=no, scrollbars=yes,menubars=no,toolbars=no,resizable=yes"; window.open(page, "Popup", windowprops); }