/* Vendor to add their own javascript here */ function Get(ID) { if(document.getElementById) return document.getElementById(ID); else return document.all[ID]; } function customResourceLeftDivOnclick(){ Get("leftMenuId").style.display = "block"; Get("navcontrol").style.display = "none"; Get("clear10").style.height="10px"; } function onClickRightCallout() { var customResourceSub = 0; var alertFlag = 0; var ans1 = 0; var ans2 = 0; var i = 0; for(i=0; i<=2; i++) { if(document.customResourceForm.Q1[i].checked) ans1 = document.customResourceForm.Q1[i].value; } ans2 = document.customResourceForm.stage.value; if((ans1 == 0) && (ans2 == 'lessthan')){ customResourceSub = 1; }else if((ans1 == 0) && (ans2 == 'greaterthan')){ customResourceSub = 2; }else if((ans1 == 1) && (ans2 == 'lessthan')){ customResourceSub = 3; } else if((ans1 == 1) && (ans2 == 'greaterthan')){ customResourceSub = 4; } else if((ans1 == 2) && (ans2 == 'diagnosis')){ customResourceSub = 5; } else if((ans1 == 2) && (ans2 == 'surgery')){ customResourceSub = 6; }else if((ans1 == 2) && (ans2 == 'lessthan')){ customResourceSub = 7; } else if((ans1 == 2) && (ans2 == 'greaterthan')){ customResourceSub = 8; } else alertFlag = 1; if(alertFlag == 1) { alert("Information does not exist as a possible combination. Please select different combination."); return false; } else{ if(customResourceSub==1) document.customResourceForm.action = "/patient/just-prescribed-femara-adjuvant.jsp?select=true"; if(customResourceSub==2) document.customResourceForm.action = "/patient/just-prescribed-femara-extended-adjuvant.jsp?select=true"; if(customResourceSub==3) document.customResourceForm.action = "/patient/currently-taking-femara-adjuvant.jsp?select=true"; if(customResourceSub==4) document.customResourceForm.action = "/patient/currently-taking-femara-extended-adjuvant.jsp?select=true"; if(customResourceSub==5) document.customResourceForm.action = "/patient/not-a-femara-patient-diagnosis.jsp?select=true"; if(customResourceSub==6) document.customResourceForm.action = "/patient/not-a-femara-patient-surgery.jsp?select=true"; if(customResourceSub==7) document.customResourceForm.action = "/patient/not-a-femara-patient-adjuvant.jsp?select=true"; if(customResourceSub==8) document.customResourceForm.action = "/patient/not-a-femara-patient-extended-adjuvant.jsp?select=true"; document.customResourceForm.method = "post"; document.customResourceForm.submit(); } } function onRadioClick(optionNum){ var cell = Get('stageDiv'); var elCheck = Get('stage'); if(elCheck!=null) cell.removeChild(elCheck); var el1 = document.createElement('select'); if(printFlag == 3) el1.className="selectSize"; else el1.className="surgery"; el1.name = 'stage'; el1.id = 'stage'; if(printFlag == 2) el1.style.width='160px'; if(printFlag == 3) el1.style.width='150px'; if(optionNum == '3') { el1.options[0] = new Option('Diagnosis', 'diagnosis'); el1.options[1] = new Option('Surgery', 'surgery'); el1.options[2] = new Option('<5 Years Post-Surgery', 'lessthan'); el1.options[3] = new Option('>5 Years Post-Surgery', 'greaterthan'); } else { el1.options[0] = new Option('<5 Years Post-Surgery', 'lessthan'); el1.options[1] = new Option('>5 Years Post-Surgery', 'greaterthan'); } cell.appendChild(el1); } /* function onloadFunc(){ if(document.customResourceForm.Q1[0].checked) onRadioClick('1'); if(document.customResourceForm.Q1[1].checked) onRadioClick('2'); if(document.customResourceForm.Q1[2].checked) onRadioClick('3'); } */