// JavaScript Document2 var locations=new Hashtable(); var startVCR=0; var lastVCR=10; var maxVCR=10; var incrementVCR=10; var zipInput=""; var currentPage=""; var numberOfContentToResize=0; var fontId=1; var font="small"; var isHome=false; var ajaxLoaderImage = new Image; ajaxLoaderImage.src = "/images/ajax-loader.gif"; ajaxLoaderImage.id="ajaxLoaderImage"; ajaxLoaderImage.width="100"; ajaxLoaderImage.height="100"; function Info() { this.strSpecialty=null; this.strDeaNumber=null; this.strHospitalAffiliation=null; this.strEducationTraining=null; this.strKeyPositionsHeld=null; } function Direction() { this.strAddress=null; this.strCity=null; this.strState=null; this.strZip=null; } function Office() { this.strAddress=null; this.strCity=null; this.strState=null; this.strZip=null; this.strPhone1=null; this.strPhone2=null; this.strFax=null; this.strUrl=null; this.strEmail=null; this.strFax=null; this.blShowHours=false; this.officeSchedule=new OfficeSchedule(); } function OfficeSchedule() { this.strSuOpen = null; this.strSuClose = null; this.strSuOpen1 = null; this.strSuClose1 = null; this.strMOpen = null; this.strMClose = null; this.strMOpen1 = null; this.stTuOpen = null; this.strTuClose = null; this.stTuOpen1 = null; this.strTuClose1 = null; this.stWOpen = null; this.strWClose = null; this.stWOpen1 = null; this.strWClose1 = null; this.stThOpen = null; this.strThClose = null; this.stThOpen1 = null; this.strThClose1 = null; this.stFOpen = null; this.strFClose = null; this.stFOpen1 = null; this.strFClose1 = null; this.stSaOpen = null; this.strSaClose = null; this.stSaOpen1 = null; this.strSaClose1 = null; } function Location() { this.id=null; this.action=null; this.city=null; this.state=null; this.zip=null; this.range=null; this.type=null; this.hcpid=null; this.miles=null; this.doctorFirstName=null; this.doctorLastName=null; this.praticeName=null; this.info_specialty=null; this.info_hospitalAffiliation=null; this.direction_address=null; this.direction_city=null; this.direction_state=null; this.direction_zip=null; this.office_address=null; this.office_city=null; this.office_state=null; this.office_zip=null; this.office_phone1=null; this.office_fax=null; this.office_url=null; this.office_email=null; this.languagesListString=null; this.poiName=null; this.poiAddress=null; this.poiPostalcode=null; this.zipCodeList=new Array(); this.languagesList=new Array(); this.info=new Info(); this.direction=new Direction(); this.office=new Office(); } function closeAllPageSubnav(menuSize){ for(i=1;i<=menuSize;i++){ var subNav=$('subNav'+i); var nav=$('pageNav'+i); if(subNav){ subNav.style.display="none"; } if(nav){ nav.style.display='block'; } } } function goToPage(url){ window.location=url; } function showSubnav(menuId,submenuId){ closeAllPageSubnav(6); var nav=$('pageNav'+menuId); if(nav && menuId<7){ nav.style.display='none'; } var subNav=$('subNav'+menuId); if(subNav){ subNav.style.display='block'; } var link=$('link'+menuId+"_"+submenuId); if(link){ link.style.color='#8c0070'; link.style.fontWeight="bold"; } } function resetSendEmailForm(){ $('sendEmailForm').recipient_email.value=""; $('sendEmailForm').your_email.value=""; $('sendEmailForm').your_name.value=""; $('sendEmailForm').recipient_name.value=""; } function submitSendEmailForm(link){ currentPage=link; //alert(currentPage); var isOK=true; var recipient_email=$('sendEmailForm').recipient_email.value; var your_email=$('sendEmailForm').your_email.value; var recipient_name=$('sendEmailForm').recipient_name.value; var your_name=$('sendEmailForm').your_name.value; if(recipient_name==null || recipient_name==""){ $('recipient_name_label').style.color='red'; isOK=false; }else{ $('recipient_name_label').style.color='#000000'; } if(your_name==null || your_name==""){ $('your_name_label').style.color='red'; isOK=false; }else{ $('your_name_label').style.color='#000000'; } if(!CheckEmail(recipient_email)){ $('recipient_email_label').style.color='red'; isOK=false; }else{ $('recipient_email_label').style.color='#000000'; } if(!CheckEmail(your_email)){ $('your_email_label').style.color='red'; isOK=false; }else{ $('your_email_label').style.color='#000000'; } if(!isOK){ $('emailErrorMessage').innerHTML='The fields highlighted below are incomplete or invalid. Please confirm your information and resubmit.'; return; }else{ var parameters = 'type=SendEmail&r_email='+ recipient_email+"&r_name="+recipient_name+"&y_email="+your_email+"&y_name="+your_name+"¤tPage="+currentPage; var url=basePath+'ajax/processor/'; //alert(parameters); new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSendEmail, onFailure:errSendEmail }); } } function handlerSendEmail(res){ doPageEvent( 'Tell afriend', 'event4=true'); window.location="/thank.html"; //alert("res.responseText="+res.responseText); /*var isOK=true; if(res.responseText!='N/A' && res.responseText!=''){ var emailObject = eval("(" + res.responseText + ")"); if(emailObject.r_email_status!='ok'){ // alert('r_email_status==ok'); $('recipient_email_label').style.color='red'; isOK=false; } if(emailObject.r_name_status!='ok'){ // alert('r_name_status==ok'); $('recipient_name_label').style.color='red'; isOK=false; } if(emailObject.y_email_status!='ok'){ // alert('y_email_status==ok'); $('your_email_label').style.color='red'; isOK=false; } if(emailObject.y_name_status!='ok'){ // alert('y_name_status==ok'); $('your_name_label').style.color='red'; isOK=false; } if(!isOK){ $('emailErrorMessage').innerHTML='Please enter the correct information.'; return; }else{ $('emailErrorMessage').innerHTML=''; $('bodyContent').innerHTML='

Thank you for sharing with a colleague

'; $('bodyContent').innerHTML+='

An e-mail message with a link to the page www.xolair.com has just been sent to the address '+emailObject.r_email+'.

'; $('bodyContent').innerHTML+='

Return to main menu

'; } } */ } function errSendEmail(res){ var isOK=true; var emailObject = eval("(" + res.responseText + ")"); if(emailObject.r_email_status!='ok'){ // alert('r_email_status==ok'); $('recipient_email_label').style.color='red'; var isOK=false; } if(emailObject.r_name_status!='ok'){ // alert('r_name_status==ok'); $('recipient_name_label').style.color='red'; var isOK=false; } if(emailObject.y_email_status!='ok'){ // alert('y_email_status==ok'); $('your_email_label').style.color='red'; var isOK=false; } if(emailObject.y_name_status!='ok'){ // alert('y_name_status==ok'); $('your_name_label').style.color='red'; var isOK=false; } if(!isOK){ $('emailErrorMessage').innerHTML='Please enter the correct information.'; } } function submitSearchForm(){ var q=$('q'); s_query=q.value; //var searchForm=$('searchForm'); if(s_query==null || s_query==""){ var searchLabel=$('searchLabel'); // alert(searchLabel); //searchLabel.innerHTML='Enter search query'; }else{ // document.searchForm.action="search.html"; document.searchForm.submit(); //alert('bug'); } } function ajaxPage(pageUrl){ //alert("searchQuery="+searchQuery); //var parameters = 'type=GoogleSearch&searchType=form¤tPage='+currentPage+'&q='+ searchQuery; var parameters =''; var url=basePath+pageUrl; new Ajax.Request(url, { method: 'GET', postBody: parameters, onSuccess:handlerAjaxPage, onFailure:errAjaxPage }); } function handlerAjaxPage(res){ var contentBody=$('bodyContent'); // alert(res.responseText); if(res.responseText){ //contentBody.innerHTML='
'; contentBody.innerHTML=res.responseText; } } function errAjaxPage(res){ var contentBody=$('bodyContent'); //alert(res.responseText); if(res.responseText){ contentBody.innerHTML='
'; contentBody.innerHTML+=res.responseText; } } function submitSearchFormRequest(searchQuery){ //alert("searchQuery="+searchQuery); var parameters = 'type=GoogleSearch&searchType=form¤tPage='+currentPage+'&q='+ searchQuery; var url=basePath+'ajax/processor/'; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSearch, onFailure:errSearch }); } function handlerSearch(res){ var contentBody=$('bodyContent'); var resultCountInt; var resultCount; //alert(res.responseText); if(res.responseText!='N/A'){ contentBody.innerHTML='
'; contentBody.innerHTML+='

'+res.responseText+'

'; resultCount =$("resultCount"); //alert("resultCount="+resultCount); if(resultCount){ var resultCountValue=resultCount.innerHTML; if(resultCountValue){ scLink(this, '', 'Search result count is '+resultCountValue); // alert('resultCountInt=Search result count is '+resultCountInt); }else{ scLink(this, '', 'Search result count is 0'); } } }else{ //contentBody.innerHTML+='

No result was found.

'; scLink(this, '', 'Search result count is 0'); } if(isSafari && res.responseText!='N/A'){ if(isSafari2){ //alert("isSafari2="+contentBody);//to fix var pageFooter=$('pageFooter'); //contentBody=document.getElementById("bodyContent"); // contentBody.style.height="800px"; contentBody.style.marginBottom="640px"; //pageFooter.style.marginTop="0px"; contentBody.innerHTML+='

'; }else{ if(s_searchQuery=="" || s_searchQuery==null){ contentBody.style.marginBottom="640px"; } }//end #if(isSafari2){ }//end #if(isSafari){ if(isIE6 && res.responseText!='N/A'){ contentBody.innerHTML+='

'; } var searchHeader=$("searchHeader"); if(isSafari || isFirefox2){ searchHeader.style.marginTop="230px"; } } function handlerSearch2(res){ var bodyContent=$('bodyContent'); //alert("bodyContent="+bodyContent); var searchBodyContent=$('searchBodyContent'); //alert("searchBodyContent="+searchBodyContent); var leftCalloutContainer=$("leftCalloutContainer"); //alert("leftCalloutContainer="+leftCalloutContainer); var searchBodyContentBottom=$("searchBodyContentBottom"); //alert("searchBodyContentBottom="+searchBodyContentBottom); var content_bg_left=$("content_bg_left"); //alert("content_bg_left="+content_bg_left); //bodyContent.innerHTML='
'; if(isIE6){ leftCalloutContainer.style.display="none"; //bodyContent.style.marginTop="-493px"; bodyContent.style.marginTop="-30px"; bodyContent.style.marginLeft="251px"; bodyContent.style.width="451px"; // content_bg_left.style.left="0px"; searchBodyContentBottom.innerHTML=''; //alert("isIE6="+isIE6); } if(res.responseText!='N/A'){ //alert("bug0") // alert("res.responseText="+res.responseText); searchBodyContent.innerHTML=''+res.responseText; //alert("bug1") //alert("searchBodyContent.innerHTML="+searchBodyContent.innerHTML); }else{ //if(searchBodyContent)searchBodyContent.innerHTML='No result was found.'; }//end # f(res.responseText!='N/A') //alert("bug2") //alert("isSafari="+isSafari); if(isSafari){ if(isSafari2){ //alert("isSafari2="+bodyContent);//to fix var pageFooter=$('pageFooter'); if(bodyContent)bodyContent.style.marginBottom="640px"; if(searchBodyContentBottom)searchBodyContentBottom.innerHTML=''; }else{ if(s_searchQuery=="" || s_searchQuery==null){ bodyContent.style.marginBottom="640px"; } }//end # if(isSafari2) }//end # if(isSafari) } function errSearch(res){ var contentBody=$('bodyContent'); contentBody.innerHTML='
'; //alert(res.responseText); if(res.responseText!='N/A'){ var searchResultObject = eval("(" + res.responseText + ")"); if( searchResultObject.searchResult!='N/A' && searchResultObject.searchResult!=''){ contentBody.innerHTML+='

'+searchResultObject.searchResult+'

'; }else{ //contentBody.innerHTML+='

No result was found.

'; } }else{ //contentBody.innerHTML+='

No result was found.

'; } if(isSafari){ if(isSafari2){ //alert("isSafari2="+contentBody);//to fix var pageFooter=$('pageFooter'); //contentBody=document.getElementById("bodyContent"); // contentBody.style.height="800px"; contentBody.style.marginBottom="640px"; //pageFooter.style.marginTop="0px"; contentBody.innerHTML+='

'; } } if(isIE6){ // contentBody.innerHTML+='

'; } } function printPage(){ var banner=$('banner'); var content_bg_left=$('content_bg_left'); if(isIE){ if(isIE6){ banner.style.left="0px"; }else{ banner.style.left="0px"; //content_bg_left.style.display="none"; } } doPageEvent( 'Print', 'event3=true'); window.print(); } function showPrintPage(){ doPageEvent( 'Print', 'event3=true'); window.print(); /* //var xolairBody=$('xolairBody'); var xolairBody=document.body; var header=$('header'); var pageTopHeader=$('pageTopHeader'); var banner=$('banner'); var pageLeftMenu=$('pageLeftMenu'); var container=$('container'); var pageMainContent=$('pageMainContent'); var bodyContent=$('bodyContent'); var pageFooter=$('pageFooter'); var content_bg_left=$('content_bg_left'); var pageTopHeader=$('pageTopHeader'); var pageFlash=$('pageFlash'); var printPage=$('printPage'); var print=$('print'); var previous=$('previous'); var pageContentBottom=$('pageContentBottom'); var extraLinkPage =$('extraLinkPage'); var extraLink =$('extraLink'); if(isIE){ if(isIE6){ banner.style.left="-3px"; }else{ banner.style.left="-3px"; } } if(content_bg_left ){ if(isIE){ if(isIE6){ content_bg_left.style.left="0px"; } content_bg_left.style.marginBottom="-609px"; //content_bg_left.style.top="240px"; }else{ //content_bg_left.style.left="-251px"; content_bg_left.style.marginBottom="-609px"; //content_bg_left.style.top="240px"; } } if(pageTopHeader){ pageTopHeader.style.display="none"; } if(header){ header.style.display="none"; } if(printPage){ printPage.style.display="none"; } if(previous){ previous.style.display="block"; } if(print){ print.style.display="block"; } if(pageLeftMenu){ pageLeftMenu.style.display="none"; } if(pageFlash){ pageFlash.style.marginTop="0px"; } if(pageTopHeader){ pageTopHeader.style.width="718px"; } if(container){ container.style.width="718px"; if(isIE){ //container.style.background="transparent url(/images/bg.jpg) repeat 0px 1px"; }else{ // container.style.background="transparent url(/images/bg.jpg) repeat 0px -1px"; } } if(pageMainContent){ if(isIE){ pageMainContent.style.background="url(/images/container_bg.jpg) repeat-y -252px 1px"; }else{ pageMainContent.style.background="url(/images/container_bg.jpg) repeat-y -252px -1px"; } } if(xolairBody){ if(isIE){ if(isIE6){ xolairBody.style.background="transparent url(/images/bg.jpg) repeat 3px 0px"; }else{ xolairBody.style.background="transparent url(/images/bg.jpg) repeat 5px 0px"; } }else{ xolairBody.style.background="transparent url(/images/bg.jpg) repeat 5px 0px"; } } if(bodyContent){ bodyContent.style.width="718px"; bodyContent.style.marginLeft="0px"; if(isIE){ if(pageId=="2-3-0"){ if(isIE6){ bodyContent.style.marginTop="-410px"; }else{ bodyContent.style.marginTop="-340px"; } }else if(pageId=="2-4-0"){ if(isIE6){ bodyContent.style.marginTop="-410px"; }else{ bodyContent.style.marginTop="-340px"; } }else if(pageId=="3-0-0"){ if(isIE6){ bodyContent.style.marginTop="-410px"; }else{ bodyContent.style.marginTop="-335px"; } }else if(pageId=="3-1-0"){ if(isIE6){ bodyContent.style.marginTop="-270px"; }else{ bodyContent.style.marginTop="-260px"; } }else if(pageId=="3-3-0"){ if(isIE6){ bodyContent.style.marginTop="-410px"; }else{ bodyContent.style.marginTop="-335px"; } }else if(pageId=="3-4-0"){ if(isIE6){ bodyContent.style.marginTop="-340px"; }else{ bodyContent.style.marginTop="-290px"; } }else if(pageId=="3-5-0"){ if(isIE6){ bodyContent.style.marginTop="-320px"; }else{ bodyContent.style.marginTop="-270px"; } }else if(pageId=="3-6-0"){ if(isIE6){ bodyContent.style.marginTop="-280px"; }else{ bodyContent.style.marginTop="-270px"; } }else if(pageId=="4-0-0"){ if(isIE6){ pageFlash.style.marginTop="0px"; bodyContent.style.marginTop="-70px"; }else{ pageFlash.style.marginTop="0px"; } }else if(pageId=="5-0-0"){ if(isIE6){ bodyContent.style.marginTop="-470px"; }else{ bodyContent.style.marginTop="-400px"; } }else if(pageId=="6-0-0"){ if(isIE6){ bodyContent.style.marginTop="-410px"; }else{ bodyContent.style.marginTop="-340px"; } }else if(pageId=="7-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="8-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="9-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="10-0-0"){ if(isIE6){ bodyContent.style.marginTop="0px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="11-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="12-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="14-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else if(pageId=="15-0-0"){ if(isIE6){ bodyContent.style.marginTop="-70px"; }else{ bodyContent.style.marginTop="0px"; } }else{ if(isIE6){ bodyContent.style.marginTop="-370px"; }else{ bodyContent.style.marginTop="-310px"; } } } } if(pageContentBottom){ pageContentBottom.style.left="0px"; pageContentBottom.style.width="744px"; pageContentBottom.style.height="61px"; pageContentBottom.style.background="transparent url("+basePath+"images/pagecontent_bottom_print.jpg) no-repeat scroll 0% 50%"; pageContentBottom.style.marginLeft="-29px"; } if(isIE){ if(extraLink){ extraLink.style.top="-21px"; extraLink.style.left="350px"; } if(extraLinkPage){ extraLinkPage.style.top="-21px"; extraLinkPage.style.left="350px"; } }else if(isSafari){ if(extraLink){ extraLink.style.top="-21px"; extraLink.style.left="350px"; } if(extraLinkPage){ extraLinkPage.style.top="-21px"; extraLinkPage.style.left="350px"; } }else{ if(extraLink){ extraLink.style.top="-21px"; extraLink.style.left="350px"; } if(extraLinkPage){ extraLinkPage.style.top="-21px"; extraLinkPage.style.left="350px"; } } if(pageFooter){ pageFooter.style.display="none"; } */ } function resetFont(){ var font1=$("font1"); var font2=$("font2"); var font3=$("font3"); if(font1){ font1.style.textDecoration="none"; } if(font2){ font2.style.textDecoration="none"; } if(font3){ font3.style.textDecoration="none"; } } function changeFontSize(fontId){ // var xolairBody=$("xolairBody"); var xolairBody=document.body; var header=$("header"); var banner=$("banner"); var searchForm=$('searchForm'); var extraLink=$("extraLink"); var extraLinkPage=$('extraLinkPage'); var extraLinkText=$('extraLinkText'); var homeFlashTrackH1=$('homeFlashTrackH1'); var homeFlashTrackH2=$('homeFlashTrackH2'); var homeFlashTrackH3=$('homeFlashTrackH3'); var homeFlashTrack=$('homeFlashTrack'); var flash=$('flash'); var calloutContainerLarge=$("calloutContainerLarge"); var pageNav_bottom1=$("pageNav_bottom1"); var pageNav_bottom2=$("pageNav_bottom2"); var pageNav2_0=$("pageNav2_0"); var pageNav3_0=$("pageNav3_0"); var pageNav71=$('pageNav71'); var link2_1=$("link2_1"); var link2_3=$("link2_3"); var link2_4=$("link2_4"); var link3_2=$("link3_2"); var link3_4=$("link3_4"); var link3_5=$("link3_5"); var font1=$("font1"); var font2=$("font2"); var font3=$("font3"); var text_3=$("text_3"); var text_4=$("text_4"); var cercleLi=$("cercleLi"); var cercleLi2=$("cercleLi2"); var cercleLi3=$("cercleLi3"); var from_state=$("from_state"); var recipient_name=$("recipient_name"); var your_email=$("your_email"); var your_name=$("your_name"); var asthmaAllergicSubmitButton=$("asthmaAllergicSubmitButton"); var asthmaAllergicResetButton=$("asthmaAllergicResetButton"); var ajustDownloadDescription=$("ajustDownloadDescription"); var coverage_reimbursement=$("coverage_reimbursement"); var patient_assistance=$("patient_assistance"); var informational_resources=$("informational_resources"); if(extraLink || extraLinkPage){ extraLinkText.style.fontSize="11px"; if(isIE){ if(isIE7){ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; }else{ if(extraLink)extraLink.style.left="0px"; if(extraLinkPage)extraLinkPage.style.left="0px"; if(extraLink)extraLink.style.marginLeft="200px"; if(extraLinkPage)extraLinkPage.style.marginLeft="200px"; } }else{ if(extraLink)extraLink.style.left="600px"; if(extraLinkPage)extraLinkPage.style.left="600px"; } } resetFont(); if(banner && isIE6){ banner.style.marginTop="-3px"; } if(calloutContainerLarge && isIE6){ calloutContainerLarge.style.top="0px"; } if(pageNav_bottom1 && isIE){ pageNav_bottom1.style.top="2px"; } if(pageNav_bottom2 && isIE){ pageNav_bottom2.style.top="2px"; } if(pageNav2_0 && isIE){ pageNav2_0.style.marginBottom="0px"; } if(pageNav3_0 && isIE){ pageNav3_0.style.top="-4px"; } if(link2_1){ link2_1.innerHTML="Allergic Asthma FAQ"; } if(link2_3){ link2_3.innerHTML="Is Your Asthma Controlled?"; } if(link2_4){ link2_4.innerHTML="Is Your Asthma Allergic?"; } if(link3_2){ link3_2.innerHTML="How XOLAIR Works"; } if(link3_4){ link3_4.innerHTML="Talking to Your Doctor
About XOLAIR"; } if(link3_5){ link3_5.innerHTML="Getting Started on XOLAIR"; } if(xolairBody){ if(fontId==1){ if(coverage_reimbursement){ coverage_reimbursement.innerHTML='1. Coverage and reimbursement through a staff of'; coverage_reimbursement.innerHTML+='
experts'; } if(patient_assistance){ patient_assistance.innerHTML='2. Patient assistance for people who are uninsured or'; patient_assistance.innerHTML+='
financially challenged'; } if(informational_resources){ informational_resources.innerHTML='3. Informational Resources, available to your doctor online or'; informational_resources.innerHTML+='
by phone, that provide more detail about being able to access XOLAIR'; } if(isIE && ajustDownloadDescription){ ajustDownloadDescription.style.marginTop="-135px"; ajustDownloadDescription.style.height="100px"; } if(asthmaAllergicSubmitButton){ asthmaAllergicSubmitButton.style.left="221px"; } if(asthmaAllergicResetButton){ asthmaAllergicResetButton.style.left="305px"; } resizeEmailForm(fontId); if(isSafari){ if(from_state){ from_state.style.position="relative"; from_state.style.width="142px"; } } if(cercleLi && !isFirefox && !isSafari)cercleLi.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 5px"; if(cercleLi2 && !isFirefox && !isSafari)cercleLi2.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 5px"; if(cercleLi3 && !isFirefox && !isSafari)cercleLi3.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 5px"; if(pageId="20-0-0")resetSpecialistLocatorForm(); if(pageId=="3-2-0"){ if(text_3){ text_3.className="font_10"; } if(text_4){ text_4.className="font_10"; } } if(isIE){ if(isHome){ if(isIE7){ //homeFlashTrackH1.style.top="190px"; //homeFlashTrackH2.style.top="157px"; flash.style.marginTop="0px"; }else{ //homeFlashTrackH1.style.top="30px"; //homeFlashTrackH2.style.top="30px"; flash.style.marginTop="-583px"; } } } xolairBody.style.fontSize="12px"; if(searchForm){ searchForm.style.left="55px"; } if(extraLink || extraLinkPage){ extraLinkText.style.fontSize="11px"; if(isIE){ if(isIE7){ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; }else{ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; if(extraLink)extraLink.style.marginLeft="200px"; if(extraLinkPage)extraLinkPage.style.marginLeft="200px"; } }else{ if(extraLink)extraLink.style.left="600px"; if(extraLinkPage)extraLinkPage.style.left="600px"; } } resetFont(); if(font1){ font1.style.textDecoration="underline"; } if(isIE){ if(header && isIE6){ header.style.fontSize="13px"; }else{ header.style.fontSize="13px"; } }else{ if(header){ header.style.fontSize="13px"; } } }else if(fontId==2){ if(coverage_reimbursement){ coverage_reimbursement.innerHTML='1. Coverage and reimbursement through a staff of'; coverage_reimbursement.innerHTML+='
dedicated experts'; } if(patient_assistance){ patient_assistance.innerHTML='2. Patient assistance for people who are uninsured or'; patient_assistance.innerHTML+='
financially challenged'; } if(informational_resources){ informational_resources.innerHTML='3. Informational Resources, available to your doctor'; informational_resources.innerHTML+='
online or by phone, that provide more detail about being able to access XOLAIR'; } if(asthmaAllergicSubmitButton){ asthmaAllergicSubmitButton.style.left="263px"; } if(asthmaAllergicResetButton){ asthmaAllergicResetButton.style.left="345px"; } resizeEmailForm(fontId); if(cercleLi && !isFirefox && !isSafari)cercleLi.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(cercleLi2 && !isFirefox && !isSafari)cercleLi2.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(cercleLi3 && !isFirefox && !isSafari)cercleLi3.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(pageId="20-0-0")resizeSpecialistLocatorForm(fontId); if(pageId=="3-2-0"){ if(text_3){ text_3.className=""; } if(text_4){ text_4.className=""; } } if(banner && !isIE){ banner.style.marginTop="-20px"; } searchForm.style.left="23px"; if(extraLink || extraLinkPage){ extraLinkText.style.fontSize="11px"; if(isIE){ if(isIE7){ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; }else{ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; if(extraLink)extraLink.style.marginLeft="200px"; if(extraLinkPage)extraLinkPage.style.marginLeft="200px"; } }else{ if(extraLink)extraLink.style.left="600px"; if(extraLinkPage)extraLinkPage.style.left="600px"; } } resetFont(); if(font2){ font2.style.textDecoration="underline"; } if(link2_3){ link2_3.innerHTML="Is Your Asthma
Controlled?"; } if(link2_4){ link2_4.innerHTML="Is Your Asthma
Allergic?"; } if(link3_5){ link3_5.innerHTML="Getting Started
on XOLAIR"; } xolairBody.style.fontSize="15px"; if(isIE){ if(isHome){ if(isIE7){ //homeFlashTrackH1.style.top="230px"; // homeFlashTrackH2.style.top="157px"; flash.style.marginTop="0px"; }else{ //homeFlashTrackH1.style.top="30px"; //homeFlashTrackH2.style.top="30px"; flash.style.marginTop="-583px"; } } if(pageNav_bottom1){ pageNav_bottom1.style.top="-3px"; } if(pageNav_bottom2){ pageNav_bottom2.style.top="-3px"; } if(header && isIE6){ header.style.fontSize="15px"; }else{ header.style.fontSize="15px"; } }else{ if(header){ header.style.fontSize="15px"; } } }else if(fontId==3){ if(coverage_reimbursement){ coverage_reimbursement.innerHTML='1. Coverage and reimbursement through a'; coverage_reimbursement.innerHTML+='
staff of dedicated experts'; } if(patient_assistance){ patient_assistance.innerHTML='2. Patient assistance for people who are'; patient_assistance.innerHTML+='
uninsured or financially challenged'; } if(informational_resources){ informational_resources.innerHTML='3. Informational Resources, available to'; informational_resources.innerHTML+='
your doctor online or by phone, that provide more detail about being able to access XOLAIR'; } if(isIE && ajustDownloadDescription){ ajustDownloadDescription.style.marginTop="-160px"; ajustDownloadDescription.style.height="100px"; } resizeEmailForm(fontId); if(asthmaAllergicSubmitButton){ asthmaAllergicSubmitButton.style.left="323px"; } if(asthmaAllergicResetButton){ asthmaAllergicResetButton.style.left="405px"; } if(cercleLi && !isFirefox && !isSafari)cercleLi.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(cercleLi2 && !isFirefox && !isSafari)cercleLi2.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(cercleLi3 && !isFirefox && !isSafari)cercleLi3.style.background="transparent url("+basePath+"images/cercleBullet.jpg) no-repeat 0px 10px"; if(pageId="20-0-0")resizeSpecialistLocatorForm(fontId); if(text_3){ text_3.className=""; } if(text_4){ text_4.className=""; } if(banner && !isIE){ banner.style.marginTop="-24px"; } if(!isIE){ if(pageNav71)pageNav71.style.top="-37px"; } if(isIE){ searchForm.style.left="7px"; if(isHome){ if(isIE7){ //homeFlashTrackH1.style.top="290px"; //homeFlashTrackH2.style.top="157px"; // homeFlashTrackH3.style.top="60px"; flash.style.marginTop="0px"; }else{ // alert(homeFlashTrackH); //homeFlashTrackH.style.top="60px"; // alert('vvv'); //homeFlashTrackH2.style.top="60px"; flash.style.marginTop="-583px"; } } }else{ if(searchForm)searchForm.style.left="23px"; if(isSafari && isHome){ //searchForm.style.marginRight="50px"; // header.style.width="1000px"; } } if(extraLink){ if(isIE){ extraLink.style.left="200px"; }else{ extraLink.style.left="400px"; } } if(extraLink){ /*if(isIE){ if(isIE7){ extraLink.style.left="200px"; }else{ extraLink.style.left="0px"; extraLink.style.marginLeft="400px"; } }else{ extraLink.style.left="400px"; }*/ extraLinkText.style.fontSize="11px"; if(isIE){ if(isIE7){ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; }else{ if(extraLink)extraLink.style.left="400px"; if(extraLinkPage)extraLinkPage.style.left="400px"; if(extraLink)extraLink.style.marginLeft="200px"; if(extraLinkPage)extraLinkPage.style.marginLeft="200px"; } }else{ if(extraLink)extraLink.style.left="600px"; if(extraLinkPage)extraLinkPage.style.left="600px"; } } resetFont(); if(font3){ font3.style.textDecoration="underline"; } if(banner && isIE6){ banner.style.marginTop="-5px"; } if(calloutContainerLarge && isIE6){ calloutContainerLarge.style.top="-2px"; } if(link2_1){ link2_1.innerHTML="Allergic Asthma
FAQ"; } if(link2_3){ link2_3.innerHTML="Is Your Asthma
Controlled?"; } if(link2_4){ link2_4.innerHTML="Is Your Asthma
Allergic?"; } if(link3_2){ link3_2.innerHTML="How XOLAIR
Works"; } if(link3_4){ link3_4.innerHTML="Talking to Your
Doctor About
XOLAIR"; } if(link3_5){ link3_5.innerHTML="Getting Started
on XOLAIR"; } xolairBody.style.fontSize="18px"; if(isIE){ if(header && isIE6){ header.style.fontSize="16px"; }else{ header.style.fontSize="16px"; } if(pageNav_bottom1){ pageNav_bottom1.style.top="-3px"; } if(pageNav_bottom2){ pageNav_bottom2.style.top="-3px"; } if(pageNav2_0){ pageNav2_0.style.marginBottom="-1px"; } if(pageNav3_0){ pageNav3_0.style.top="-3px"; } }else{ if(header){ header.style.fontSize="16px"; } } } } if(isIE){ var headerTextHCP=$('headerTextHCP'); if(headerTextHCP){ headerTextHCP.style.position="relative"; headerTextHCP.style.top="-3px"; } if(isHome){ if(fontId==1)header.style.marginTop="-15px"; if(fontId==2)header.style.marginTop="-17px"; if(fontId==3)header.style.marginTop="-21px"; } } set_cookie ( "fontId", fontId ); for(i=1;i<=numberOfContentToResize;i++){ var elmt=$("texssst_"+i); if(elmt){ var myClassname=elmt.className; myClassname=myClassname.replace("_font2",""); myClassname=myClassname.replace("_font3",""); if(fontId>1){ myClassname=myClassname+"_font"+fontId; } elmt.className=myClassname; } } } function resizeEmailForm(fontid){ var recipient_name=$("recipient_name"); var your_email=$("your_email"); var your_name=$("your_name"); var emailResetButton=$("emailResetButton"); var emailSubmitButton=$("emailSubmitButton"); if(fontid==1){ if(recipient_name){ recipient_name.style.position="relative"; recipient_name.style.left="6px"; } if(your_email){ your_email.style.position="relative"; your_email.style.left="45px"; } if(your_name){ your_name.style.position="relative"; your_name.style.left="51px"; } if(emailResetButton){ emailResetButton.style.position="relative"; emailResetButton.style.left="221px"; } if(emailSubmitButton){ emailSubmitButton.style.position="relative"; emailSubmitButton.style.left="143px"; } } if(fontid==2){ if(recipient_name){ recipient_name.style.position="relative"; recipient_name.style.left="8px"; } if(your_email){ your_email.style.position="relative"; your_email.style.left="57px"; } if(your_name){ your_name.style.position="relative"; your_name.style.left="65px"; } if(emailResetButton){ emailResetButton.style.position="relative"; emailResetButton.style.left="255px"; } if(emailSubmitButton){ emailSubmitButton.style.position="relative"; emailSubmitButton.style.left="177px"; } } if(fontid==3){ if(recipient_name){ recipient_name.style.position="relative"; recipient_name.style.left="10px"; } if(your_email){ your_email.style.position="relative"; your_email.style.left="70px"; } if(your_name){ your_name.style.position="relative"; your_name.style.left="80px"; } if(emailResetButton){ emailResetButton.style.position="relative"; emailResetButton.style.left="293px"; } if(emailSubmitButton){ emailSubmitButton.style.position="relative"; emailSubmitButton.style.left="213px"; } } } function resizeSpecialistLocatorForm(fontid){ var city=$("city"); var state=$("state"); var speciality_left=$("speciality_left"); var distance=$("distance"); var zip=$("zip"); var speciality_right=$("speciality_right"); var locator_search_button1=$("locator_search_button1"); var locator_search_button2=$("locator_search_button2"); var from_address=$("from_address"); var from_state=$("from_state"); var from_city=$("from_city"); var from_zip=$("from_zip"); var to_address=$("to_address"); var to_city=$("to_city"); var to_state=$("to_state"); var to_zip=$("to_zip"); var endLocation_label=$("endLocation_label"); if(fontid==3){ if(locator_search_button1){ locator_search_button1.style.position="relative"; locator_search_button1.style.left="-10px"; } if(locator_search_button2){ locator_search_button2.style.position="relative"; locator_search_button2.style.left="-10px"; } if(isSafari){ if(from_state){ from_state.style.position="relative"; from_state.style.width="142px"; } } /* if(from_address){ from_address.style.position="relative"; from_address.style.width="135px"; } if(from_state){ from_state.style.position="relative"; from_state.style.width="139px"; } if(from_city){ from_city.style.position="relative"; from_city.style.width="135px"; } if(from_zip){ from_zip.style.position="relative"; from_zip.style.width="135px"; } if(endLocation_label){ endLocation_label.style.position="relative"; endLocation_label.style.left="40px"; } if(to_address){ to_address.style.position="relative"; to_address.style.left="40px"; } if(to_city){ to_city.style.position="relative"; to_city.style.left="40px"; } if(to_state){ to_state.style.position="relative"; to_state.style.left="40px"; } if(to_zip){ to_zip.style.position="relative"; to_zip.style.left="40px"; }*/ } if(city){ city.style.width="135px"; city.style.position="relative"; if(fontid==3){city.style.left="-10px";} } if(state){ state.style.width="139px"; state.style.position="relative"; if(fontid==3)state.style.left="-10px"; } if(speciality_left){ speciality_left.style.width="139px"; speciality_left.style.position="relative"; if(fontid==3)speciality_left.style.left="-10px"; } if(distance){ distance.style.width="139px"; distance.style.position="relative"; if(fontid==3)distance.style.left="-10px"; } if(zip){ zip.style.width="135px"; zip.style.position="relative"; if(fontid==3)zip.style.left="-10px"; } if(speciality_right){ speciality_right.style.width="139px"; speciality_right.style.position="relative"; if(fontid==3)speciality_right.style.left="-10px"; } } function resetSpecialistLocatorForm(){ var city=$("city"); var state=$("state"); var speciality_left=$("speciality_left"); var distance=$("distance"); var zip=$("zip"); var speciality_right=$("speciality_right"); var locator_search_button1=$("locator_search_button1"); var locator_search_button2=$("locator_search_button2"); if(locator_search_button1){ locator_search_button1.style.position="relative"; locator_search_button1.style.left="0px"; } if(locator_search_button2){ locator_search_button2.style.position="relative"; locator_search_button2.style.left="0px"; } if(city){ city.style.width="165px"; city.style.position="relative"; city.style.left="0px"; } if(state){ state.style.width="170px"; state.style.position="relative"; state.style.left="0px"; } if(speciality_left){ speciality_left.style.width="170px"; speciality_left.style.position="relative"; speciality_left.style.left="0px"; } if(distance){ distance.style.width="170px"; distance.style.position="relative"; distance.style.left="0px"; } if(zip){ zip.style.width="165px"; zip.style.position="relative"; zip.style.left="0px"; } if(speciality_right){ speciality_right.style.width="170px"; speciality_right.style.position="relative"; speciality_right.style.left="0px"; } } function resetAsthmaControlledForm(){ } function resetRadioButtonValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; } function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; } function checkSelectRadio(radioObj) { //alert(radioObj); if(!radioObj) return ""; var radioLength = radioObj.length; /*if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return "";*/ var isChecked=false; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { isChecked=true; //alert(isChecked); break; } } return isChecked; } function submitAsthmaControlledForm(){ window.scroll(0,270); var bodyContent=$("bodyContent"); var question1=$("question1"); var question2=$("question2"); var question3=$("question3"); var question4=$("question4"); var question5=$("question5"); var question1Text=$("question1Text"); var question2Text=$("question2Text"); var question3Text=$("question3Text"); var question4Text=$("question4Text"); var question5Text=$("question5Text"); var title=$("title"); var title2=$("title2"); var text_1=$("text_1"); var text_2=$("text_2"); var text_3=$("text_3"); var text_4=$("text_4"); var text_5=$("text_5"); var asthmaControlledForm=$("asthmaControlledForm"); var submitButton=$("submit-button-off"); var resetButton=$("reset-button-off"); var isAnswer1=true; var isAnswer2=true; var isAnswer3=true; var isAnswer4=true; var isAnswer5=true; if(!checkSelectRadio(asthmaControlledForm.time_asthma)){ isAnswer1=false; if(text_5){ text_5.innerHTML="Take the Asthma Control Test™ (ACT)"; text_5.innerHTML+='
Please answer each of the test questions.'; } if(question1Text){ question1Text.style.color="red"; } }else{ if(question1Text){ question1Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaControlledForm.shortness_breath)){ isAnswer2=false; if(text_5){ text_5.innerHTML="Take the Asthma Control Test™ (ACT)"; text_5.innerHTML+='
Please answer each of the test questions.'; } if(question2Text){ question2Text.style.color="red"; } }else{ if(question2Text){ question2Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaControlledForm.asthma_symptoms)){ isAnswer3=false; if(text_5){ text_5.innerHTML="Take the Asthma Control Test™ (ACT)"; text_5.innerHTML+='
Please answer each of the test questions.'; } if(question3Text){ question3Text.style.color="red"; } }else{ if(question3Text){ question3Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaControlledForm.medication)){ isAnswer4=false; if(text_5){ text_5.innerHTML="Take the Asthma Control Test™ (ACT)"; text_5.innerHTML+='
Please answer each of the test questions.'; } if(question4Text){ question4Text.style.color="red"; } }else{ if(question4Text){ question4Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaControlledForm.rate_your_asthma)){ isAnswer5=false; if(text_5){ text_5.innerHTML="Take the Asthma Control Test™ (ACT)"; text_5.innerHTML+='
Please answer each of the test questions.'; } if(question5Text){ question5Text.style.color="red"; } }else{ if(question5Text){ question5Text.style.color="#000000"; } } if(!isAnswer1 || !isAnswer2 || !isAnswer3 || !isAnswer4 || !isAnswer5){ return; } var answer1=$("answer1"); var answer2=$("answer2"); var answer3=$("answer3"); var answer4=$("answer4"); var answer5=$("answer5"); var answer1Value=""; var answer2Value=""; var answer3Value=""; var answer4Value=""; var answer5Value=""; //var text_5=$("text_5"); var ulList1=$("ulList1"); if(text_1){ text_1.style.display="none"; } if(ulList1){ ulList1.style.display="none"; } if(text_2){ text_2.style.display="none"; } if(text_3){ text_3.style.display="none"; } if(text_4){ text_4.style.display="none"; } if(text_5){ //text_5.innerHTML="ACT survey results"; text_5.style.display="none"; } if(question1){ question1.style.display="none"; //alert(getCheckedValue(asthmaControlledForm.time_asthma)); answer1.innerHTML='Your answer is : '+getCheckedValue(asthmaControlledForm.time_asthma)+""; answer1Value=getCheckedValue(asthmaControlledForm.time_asthma); } if(question2){ question2.style.display="none"; //alert(getCheckedValue(asthmaControlledForm.shortness_breath)); answer2.innerHTML='Your answer is : '+getCheckedValue(asthmaControlledForm.shortness_breath)+""; answer2Value=getCheckedValue(asthmaControlledForm.shortness_breath); } if(question3){ question3.style.display="none"; answer3.innerHTML='Your answer is : '+getCheckedValue(asthmaControlledForm.asthma_symptoms)+""; answer3Value=getCheckedValue(asthmaControlledForm.asthma_symptoms); } if(question4){ question4.style.display="none"; answer4.innerHTML='Your answer is : '+getCheckedValue(asthmaControlledForm.medication)+""; answer4Value=getCheckedValue(asthmaControlledForm.medication); } if(question5){ question5.style.display="none"; answer5.innerHTML='Your answer is : '+getCheckedValue(asthmaControlledForm.rate_your_asthma)+""; answer5Value=getCheckedValue(asthmaControlledForm.rate_your_asthma); } if(answer1Value=="Some of the time" || answer1Value=="All of the time" || answer2Value=="3 to 6 times a week" || answer2Value=="Once a day" || answer2Value=="More than once a day"){ title.innerHTML='ACT survey results'; title.innerHTML+='

Your answers to the survey indicate that your asthma may not be as well controlled as it could be. You may wish to print this page and discuss any questions you have with your doctor.'; }else{ title.innerHTML='

ACT survey results'; title.innerHTML+='

Your answers to the survey indicate that your asthma seems to be controlled. You may wish to print this page and discuss any questions you have with your doctor.'; } if(title2){ title2.style.display="block"; } if(isIE){ if(bodyContent){ bodyContent.style.marginTop="-40px"; } } if(submitButton){ submitButton.style.display="none"; } if(resetButton){ resetButton.style.position="relative"; resetButton.style.left="120px"; } } function resetAsthmaAllergicForm(){ } function submitAsthmaAllergicForm(){ window.scroll(0,270); var asthmaAllergicForm=$("asthmaAllergicForm"); var submitButton=$("submit-button-off"); var IgE_level_form=$("IgE_level_form"); var title=$("title"); var title2=$("title2"); var question1=$("question1"); var question2=$("question2"); var question3=$("question3"); var question4=$("question4"); var question5=$("question5"); var IgE_level=$("IgE_level"); var question1Text=$("question1Text"); var question2Text=$("question2Text"); var question3Text=$("question3Text"); var question4Text=$("question4Text"); var question5Text=$("question5Text"); var isAnswer1=true; var isAnswer2=true; var isAnswer3=true; var isAnswer4=true; var isAnswer5=true; if(!checkSelectRadio(asthmaAllergicForm.symptoms)){ isAnswer1=false; if(title){ title.innerHTML="You may find that you are experiencing asthma symptoms, but you're not sure if they are triggered by allergens in the air. Take this helpful quiz to find out if you have allergic asthma."; title.innerHTML+='
Please answer each of the test questions.'; } if(question1Text){ question1Text.style.color="red"; } }else{ if(question1Text){ question1Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaAllergicForm.other_symptoms)){ isAnswer2=false; if(title){ title.innerHTML="You may find that you are experiencing asthma symptoms, but you're not sure if they are triggered by allergens in the air. Take this helpful quiz to find out if you have allergic asthma."; title.innerHTML+='
Please answer each of the test questions.'; } if(question2Text){ question2Text.style.color="red"; } }else{ if(question2Text){ question2Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaAllergicForm.asthma_attacks)){ isAnswer3=false; if(title){ title.innerHTML="You may find that you are experiencing asthma symptoms, but you're not sure if they are triggered by allergens in the air. Take this helpful quiz to find out if you have allergic asthma."; title.innerHTML+='
Please answer each of the test questions.'; } if(question3Text){ question3Text.style.color="red"; } }else{ if(question3Text){ question3Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaAllergicForm.skin_blood_test)){ isAnswer4=false; if(title){ title.innerHTML="You may find that you are experiencing asthma symptoms, but you're not sure if they are triggered by allergens in the air. Take this helpful quiz to find out if you have allergic asthma."; title.innerHTML+='
Please answer each of the test questions.'; } if(question4Text){ question4Text.style.color="red"; } }else{ if(question4Text){ question4Text.style.color="#000000"; } } if(!checkSelectRadio(asthmaAllergicForm.ige)){ isAnswer5=false; if(title){ title.innerHTML="You may find that you are experiencing asthma symptoms, but you're not sure if they are triggered by allergens in the air. Take this helpful quiz to find out if you have allergic asthma."; title.innerHTML+='
Please answer each of the test questions.'; } if(question5Text){ question5Text.style.color="red"; } }else{ if(question5Text){ question5Text.style.color="#000000"; } } if(!isAnswer1 || !isAnswer2 || !isAnswer3 || !isAnswer4 || !isAnswer5){ // alert(isAnswer1+","+isAnswer2+","+isAnswer3+","+isAnswer4+","+isAnswer5); return; } var answer1=$("answer1"); var answer2=$("answer2"); var answer3=$("answer3"); var answer4=$("answer4"); var answer5=$("answer5"); var answer1Value=""; var answer2Value=""; var answer3Value=""; var answer4Value=""; var answer5Value=""; if(question1){ //if(asthmaAllergicForm.time_asthma){ question1.style.display="none"; answer1.innerHTML='Your answer is : '+getCheckedValue(asthmaAllergicForm.symptoms)+""; answer1Value=getCheckedValue(asthmaAllergicForm.symptoms); //} } if(question2){ //if(asthmaAllergicForm.other_symptoms){ question2.style.display="none"; //alert(getCheckedValue(asthmaControlledForm.shortness_breath)); answer2.innerHTML='Your answer is : '+getCheckedValue(asthmaAllergicForm.other_symptoms)+""; answer2Value=getCheckedValue(asthmaAllergicForm.other_symptoms); // } } if(question3){ //if(asthmaAllergicForm.asthma_attacks){ question3.style.display="none"; answer3.innerHTML='Your answer is : '+getCheckedValue(asthmaAllergicForm.asthma_attacks)+""; answer3Value=getCheckedValue(asthmaAllergicForm.asthma_attacks); // } } if(question4){ //if(asthmaAllergicForm.skin_blood_test){ question4.style.display="none"; answer4.innerHTML='Your answer is : '+getCheckedValue(asthmaAllergicForm.skin_blood_test)+""; answer4Value=getCheckedValue(asthmaAllergicForm.skin_blood_test); //} } if(question5){ // if(asthmaAllergicForm.ige){ question5.style.display="none"; answer5.innerHTML='Your answer is : '+getCheckedValue(asthmaAllergicForm.ige)+''; if(asthmaAllergicForm.IgE_level.value!=null && asthmaAllergicForm.IgE_level.value!=""){ answer5.innerHTML+=', your IgE level is '+asthmaAllergicForm.IgE_level.value+''; } answer5Value=getCheckedValue(asthmaAllergicForm.ige); //} } if(answer1Value=="Yes" || answer2Value=="Yes" || answer3Value=="Yes"){ title.innerHTML='

Quiz results'; title.innerHTML+='

Your responses to the quiz indicate that your asthma may be allergic. You may wish to print this page and discuss any questions you have with your doctor.'; }else{ title.innerHTML='

Quiz results'; title.innerHTML+='

Your responses to the quiz indicate that your asthma does not seem to be allergic. You may wish to print this page and discuss any questions you have with your doctor.'; } if(title2){ title2.style.display="block"; } if(submitButton){ submitButton.style.display="none"; } if(IgE_level_form){ IgE_level_form.style.display="none"; } } function submitGoogleSearchLink(xslUrl,searchType){ var contentBody=$('bodyContent'); //var contentBodyTemp=contentBody.innerHTML; // alert(contentBodyTemp); // contentBody.innerHTML=contentBodyTemp; //contentBody.innerHTML=''; //alert("searchQuery="+searchQuery); var parameters = 'type=GoogleSearch&searchType='+searchType+'¤tPage='+currentPage; parameters +='&'+xslUrl; var url=basePath+'ajax/processor/'; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSearch, onFailure:errSearch }); } function setNavLink(link){ } //find locator function submitRefinedSearch(){ goToPage('specialist_locator_search.html'); /* showSearchForm(); var locForm=$('findLocationForm'); var location_results=$('location_results'); location_results.style.display="none"; locForm.city.value=""; locForm.state.value=""; locForm.speciality_left.value=""; locForm.distance.value=""; locForm.zip.value=""; locForm.speciality_right.value=""; */ } function showResultList(){ var accept_term_form=$('accept_term_form'); var location_terms=$('location_terms'); var location_results=$('location_results'); var accept_terms_label=$('accept_terms_label'); var location_results_list=$('location_results_list'); var location_terms_print=$("location_terms_print"); var location_results_terms_print=$("location_results_terms_print"); var resultsTitle=$('resultsTitle'); var accept_terms=accept_term_form.accept_terms.checked; if(accept_terms){ window.scroll(0,70); location_terms.style.display="none"; if(location_results){ location_results.style.display="block"; if(location_terms_print)location_terms_print.style.display="block"; if(location_results_terms_print)location_results_terms_print.style.display="block"; if(isSafari)location_results_list.style.width="598px"; } }else{ window.scroll(0,70); accept_terms_label.className="red"; resultsTitle.innerHTML=resultsTitle.innerHTML; resultsTitle.innerHTML+="
You did not check the I ACCEPT box below."; } } function hideResultList(){ var accept_term_form=$('accept_term_form'); var location_terms=$('location_terms'); var location_results=$('location_results'); var location_terms_print=$("location_terms_print"); var location_results_terms_print=$("location_results_terms_print"); //var accept_terms=accept_term_form.accept_terms.checked; hideSearchForm(); if(location_results){ if(!isBackResults)location_results.style.display="none"; } if(location_terms){ if(!isBackResults){ location_terms.style.display="block"; if(location_terms_print)location_terms_print.style.display="none"; if(location_results_terms_print)location_results_terms_print.style.display="none"; var maxResultTerm=$('maxResultTerm'); maxResultTerm.innerHTML=maxVCR; } } } function submitNewSearch(){ goToPage('specialist_locator_search.html'); /* showSearchForm(); var locForm=$('findLocationForm'); var location_results=$('location_results'); location_results.style.display="none"; locForm.city.value=""; locForm.state.value=""; locForm.speciality_left.value=""; locForm.distance.value=""; locForm.zip.value=""; locForm.speciality_right.value=""; */ } function submitBackToResultSearchDoctorLocation(action,range,speciality,zip,state,city){ var location_terms=$('location_terms'); var parameters = 'type=FindSpecialistLocator&action='+action; var url=basePath+'ajax/processor/'; if(action=="action1"){ parameters += '&city='+city+'&state='+ state; parameters +='&speciality='+speciality; parameters +='&doctorName=&range=25&zip='; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action2"){ parameters +='&city=&state=&speciality='+speciality; parameters +='&range='+range+'&zip='+zip+'&doctorName='; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action3"){ parameters +='&city=&state=&speciality='+speciality; parameters +='&range='+range+'&zip='+zip+'&doctorName='; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); } } function submitSearchDoctorLocation(action,searchByZip,webMd_city,webMd_state,webMd_specialty,webMd_range){ var isOK=true; var findLocationTitle=$('findLocationTitle'); var city; var range; var state; var zip; var specialityLeft; var specialityRight; var locForm; var distance_label=$('distance_label'); var city_label=$('distance_label'); var state_label=$('state_label'); var speciality_left_label=$('speciality_left_label'); var speciality_right_label=$('speciality_right_label'); var zip_label=$('zip_label'); if(action!="action3" && action!="action4"&& action!="action5" && action!="action6"){ locForm=$('findLocationForm'); if(locForm){ city=locForm.city.value; state =locForm.state.value; specialityLeft=locForm.speciality_left.value; range=locForm.distance.value; zip=locForm.zip.value; specialityRight=locForm.speciality_right.value; }else{ city=webMd_city; state =webMd_state; specialityLeft=webMd_specialty; range=webMd_range; zip=searchByZip; specialityRight=webMd_specialty; } zipInput=zip; } if(action=="action1"){ var errcity=checkField(city,"City"); if( errcity!=""){ isOK=false; if(city_label)city_label.className="red"; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } //$('errcity').innerHTML=errcity; }else{ if(city_label)city_label.className="white"; //$('errcity').innerHTML=""; } if(state==null || state==""){ isOK=false; if(state_label)state_label.className="red"; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } }else{ if(state_label)state_label.className="white"; } if(specialityLeft==null || specialityLeft==""){ isOK=false; if(speciality_left_label)speciality_left_label.className="red"; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } }else{ if(speciality_left_label)speciality_left_label.className="white"; } //alert("city="+city+",state="+state+",specialityLeft="+specialityLeft+"
range="+range+",zip="+zip+",specialityRight="+specialityRight); }else if(action=="action2"){ var errrange=checkRange(range); if( errrange!=""){ isOK=false; if(distance_label)distance_label.className="red"; //$('errcity').innerHTML=errcity; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } }else{ if(distance_label)distance_label.className="white"; //$('errcity').innerHTML=""; } var errZip=checkZip(zip); zipInput=zip; if( errZip!=""){ isOK=false; if(zip_label)zip_label.className="red"; //$('errcity').innerHTML=errcity; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } }else{ if(zip_label)zip_label.className="white"; //$('errcity').innerHTML=""; } if(specialityRight==null || specialityRight==""){ isOK=false; if(speciality_right_label)speciality_right_label.className="red"; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } }else{ if(speciality_right_label)speciality_right_label.className="white"; } //alert("city="+city+",state="+state+",specialityLeft="+specialityLeft+"
range="+range+",zip="+zip+",specialityRight="+specialityRight); }else if(action=="action3"){ var findSpecialistForm=$('findSpecialistForm'); var findByZip=''; if(findSpecialistForm){ findByZip=findSpecialistForm.find_specialist_input.value; zipInput=findByZip; } if(findByZip==''){ findByZip=searchByZip; zipInput=findByZip; } var find_specialist_input=$('find_specialist_input'); var errFindByZip=checkZip(findByZip); if( errFindByZip!=""){ isOK=false; if(find_specialist_input)$('find_specialist_input').style.color="#ff0000"; if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
The following fields are incomplete or invalid. Please re-enter your information and click Search."; } //$('errcity').innerHTML=errcity; }else{ if(find_specialist_input)$('find_specialist_input').style.color="#95a0a2"; //$('zip_label').className="white"; //$('errcity').innerHTML=""; } //alert("city="+city+",state="+state+",specialityLeft="+specialityLeft+"
range="+range+",zip="+zip+",specialityRight="+specialityRight); } if(city==null){ city=""; // alert("city==null"); //return; } if(state==null){ state=""; } if(specialityLeft==null){ specialityLeft=""; } if(specialityRight==null){ specialityRight=""; } if(range==null){ range=""; } if(zip==null){ zip=""; } if(findByZip==null){ findByZip=""; } if(isOK && findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.style.color="#000000"; } var parameters = 'type=FindSpecialistLocator&action='+action; var url=basePath+'ajax/processor/'; if(action=="action1" && isOK){ startImageLoader(); parameters += '&city='+city+'&state='+ state; parameters +='&speciality='+specialityLeft; parameters +='&doctorName=&range=&zip='; zipInput=""; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action2" && isOK){ startImageLoader(); parameters +='&city=&state=&speciality='+specialityRight; parameters +='&range='+range+'&zip='+zip+'&doctorName='; zipInput=zip; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action3" && isOK){ zipInput=findByZip; goToPage('specialist_locator_search.html?zip='+findByZip); }else if(action=="action4" && isOK){ startImageLoader(); parameters +='&city=&state=&speciality='; parameters +='&range=&zip='+searchByZip+'&doctorName='; zipInput=searchByZip; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action5"){ startImageLoader(); parameters += '&city='+webMd_city+'&state='+ webMd_state; parameters +='&speciality='+webMd_specialty; parameters +='&doctorName=&range=&zip='; zipInput=''; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); }else if(action=="action6"){ startImageLoader(); parameters +='&city=&state=&speciality='+webMd_specialty; parameters +='&range='+webMd_range+'&zip='+searchByZip+'&doctorName='; zipInput=searchByZip; new Ajax.Request(url, { method: 'post', postBody: parameters, onSuccess:handlerSubmitSearchDoctorLocation, onFailure:errSubmitSearchDoctorLocation }); } } function hideSearchForm(){ var searchLocation=$('searchLocation'); var findLocationTitle= $('findLocationTitle'); var location_results=$('location_results'); var findLocationForm=$("findLocationForm"); if(findLocationTitle)findLocationTitle.style.display='none'; if(searchLocation)searchLocation.style.display='none'; if(findLocationForm)findLocationForm.style.display='none'; if(location_results){ //location_results.style.top="210px"; } } function showSearchForm(){ var searchLocation=$('searchLocation'); var findLocationTitle= $('findLocationTitle'); var location_results=$('location_results'); var findLocationForm=$("findLocationForm"); if(findLocationTitle)findLocationTitle.style.display='block'; if(findLocationForm)findLocationForm.style.display='block'; if(searchLocation)searchLocation.style.display='block'; if(location_results)location_results.style.top="20px"; } function handlerSubmitSearchDoctorLocation(res){ stopImageLoader(); var findLocationTitle= $('findLocationTitle'); if(res.responseText!='N/A' && res.responseText!='' && res.responseText!='ziperr'){ stopImageLoader(); var locationsListObject = eval("(" + res.responseText + ")"); var locationsList=locationsListObject.locations; var locationsListSize=locationsList.length; //var locationsListSize=locationsListObject.size; //alert('locationsListSize='+locationsListSize); var location_results; var location_results_list; var searchLocation=$('searchLocation'); location_results=$('location_results'); location_results_list=$('location_results_list'); var location_results_list_tbody=$('location_results_list_tbody'); if(true){ // if(locationsListObject.locations[0].zipCodeListSize==0 ){ if(locationsListSize>0){ doPageEvent('Find a specialist', 'event10=true;eVar7='+zipInput); if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.style.color="#000000"; } maxVCR=locationsListSize; if(location_results){ location_results.style.display='block'; //hideSearchForm(); if(location_results_list){ location_results_list.style.display='block'; displayMinMaxValue(); var maxResult=$('maxResult'); maxResult.innerHTML=maxVCR; var flag=0; var bgcolor2 ="#FFFFFF"; var bgcolor1 ="#f8f3f7"; for (var i=0; i < locationsListSize;i++ ) { var locationId=locationsList[i].id; //document.writeln('locationId='+locationId); locations.put(locationId,locationsList[i]); } displayLocationsList(location_results_list_tbody); }//end of if(location_results_list) }//end of if(location_results) hideResultList(); }else{ if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
No doctors where found using this search criteria. Please try again."; } }// end of if(locationsListSize>0) }else{ // alert("There are multiple zip codes["+locationsListObject.locations[0].zipCodeListSize+"]="+displayZipcodes(locationsListObject.locations[0])); if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
Sorry, your search criteria was too broad. Please enter your distance, zip code, and speciality to narrow your search."; } }//end of if(locationsListObject.locations[0].zipCodeListSize==0 || isDevServer==true){ }else{ if(res.responseText=='ziperr' || res.responseText=='N/A'){ goToPage("specialist_locator_search.html?ziperr=1"); } if(findLocationTitle){ findLocationTitle.innerHTML="Welcome to the XOLAIR Specialist Locator, an online directory of healthcare providers. It offers a simple way to find specialists in your area who treat allergic asthma. To locate a doctor, use the search tool below."; findLocationTitle.innerHTML+="
No doctors where found using this search criteria. Please try again."; } }//end of if(res.responseText!='N/A' && res.responseText!='') if(zipInput==null){ zipInput=""; } } function displayMinMaxValue(){ var maxVCRvalue1=$('maxVCR1'); var maxVCRvalue2=$('maxVCR2'); var maxVCRvalue3=$('maxVCR3'); var maxVCRvalue4=$('maxVCR4'); var maxVCR_; var startVCR_; var lastVCR_; if(parseInt(maxVCR)<10){ maxVCR_="0"+maxVCR; }else{ maxVCR_=maxVCR; } if(parseInt(startVCR+1)<10){ startVCR_="0"+(startVCR+1); }else{ startVCR_=(startVCR+1); } if(parseInt(lastVCR)<10){ lastVCR_="0"+(lastVCR); }else{ lastVCR_=(lastVCR); } maxVCRvalue1.innerHTML=maxVCR_; maxVCRvalue2.innerHTML=maxVCR_; maxVCRvalue3.innerHTML=maxVCR_; maxVCRvalue4.innerHTML=maxVCR_; var lastVCRvalue1=$('lastVCR1'); var lastVCRvalue2=$('lastVCR2'); var lastVCRvalue3=$('lastVCR3'); var lastVCRvalue4=$('lastVCR4'); lastVCRvalue1.innerHTML=lastVCR_; lastVCRvalue2.innerHTML=lastVCR_; lastVCRvalue3.innerHTML=lastVCR_; lastVCRvalue4.innerHTML=lastVCR_; var startVCRvalue1=$('startVCR1'); var startVCRvalue2=$('startVCR2'); var startVCRvalue3=$('startVCR3'); var startVCRvalue4=$('startVCR4'); startVCRvalue1.innerHTML=startVCR_; startVCRvalue2.innerHTML=startVCR_; startVCRvalue3.innerHTML=startVCR_; startVCRvalue4.innerHTML=startVCR_; } function viewAllLocationsList(){ if(maxVCR>10){ startVCR=0; lastVCR=maxVCR; //var location_results_list=$('location_results_list'); var location_results_list=$('location_results_list_tbody'); displayLocationsList(location_results_list); } } function previousLocationsList(){ if(maxVCR>10){ lastVCR=startVCR; startVCR=startVCR-incrementVCR; //var location_results_list=$('location_results_list'); var location_results_list=$('location_results_list_tbody'); displayLocationsList(location_results_list); } } function nextLocationsList(){ if(maxVCR>10){ startVCR=lastVCR; lastVCR=lastVCR+incrementVCR; //var location_results_list=$('location_results_list'); var location_results_list=$('location_results_list_tbody'); displayLocationsList(location_results_list); } } function displayLocationsList(location_results_list){ if(startVCR<0){ startVCR=0; } if(startVCR>maxVCR){ startVCR=maxVCR-incrementVCR; } if(lastVCR<0){ lastVCR=10; } if(lastVCR>maxVCR){ lastVCR=maxVCR; } if(lastVCR<=startVCR){ lastVCR=10; startVCR=0; } if(startVCR>=lastVCR){ lastVCR=10; startVCR=0; } displayMinMaxValue(); //var Parent = document.getElementById("location_results_list"); //alert(Parent); if(isIE){ //alert(location_results_list.innerHTML); while(location_results_list.hasChildNodes()){ location_results_list.removeChild(location_results_list.firstChild); } //alert(location_results_list.innerHTML); }else{ location_results_list.innerHTML=""; } var bgcolor2 ="#FFFFFF"; var bgcolor1 ="#f8f3f7"; //var tbody =document.createElement("tbody"); //location_results_list.appendChild(tbody); // alert(location_results_list.innerHTML) for (var i=startVCR; i < lastVCR;i++ ) { var loc=locations.get(i); //alert("i="+i+","+loc.praticeName); if(i%2==0){ displayLocationsListRow(location_results_list,loc,bgcolor1,i); }else{ displayLocationsListRow(location_results_list,loc,bgcolor2,i); } } } function displayOtherLocation(locationId,tr_otherLocation_Id,actual_bgcolor){ var otherLocationId=parseInt(tr_otherLocation_Id)+1; var location_results_list_tbody=$('location_results_list_tbody'); var otherLocation=locations.get(locationId); var trPrentId="tr_bgcolor_"+tr_otherLocation_Id; var trParent=$('trPrentId'); var other_location=$('other_location_'+locationId); if(location_results_list_tbody){ // alert("praticeName="+otherLocation.praticeName+",trPrentId="+trPrentId+",otherLocationId="+otherLocationId); //var otherLocationRow=location_results_list_tbody.insertRow(otherLocationId); var td_otherLocation_msg=""; if(isFirefox){ //td_otherLocation_msg+="

"; } var returnPraticeName=otherLocation.praticeName; /*if(returnPraticeName!=""){ returnPraticeName="Dr. "+returnPraticeName; }else{ returnPraticeName==""; }*/ td_otherLocation_msg="
    Practice: "+returnPraticeName+""; td_otherLocation_msg+="
    Office Location:"; td_otherLocation_msg+="
    "+otherLocation.direction_address+""; td_otherLocation_msg+="
    "+otherLocation.direction_city+", "+otherLocation.direction_state+" "+otherLocation.direction_zip+""; if(currentPage=="xolairhcp_specialist_locator.html"){ td_otherLocation_msg+="
"; }else{ td_otherLocation_msg+=""; } td_otherLocation_msg+="    Directions"; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+=""; td_otherLocation_msg+="
"; var otherLocationRowRef; var otherLocationRow=document.createElement("tr"); otherLocationRow.style.background=actual_bgcolor; trId=++trId; otherLocationRow.id="tr_otherLocation_"+trId; otherLocationRow.bgcolor=actual_bgcolor; var td_otherLocation=createTableCell(trId,td_otherLocation_msg); td_otherLocation.colspan="4"; td_otherLocation.align="left"; td_otherLocation.width="250"; td_otherLocation.valign="top"; var td_1=createTableCell(trId," "); var td_2=createTableCell(trId," "); otherLocationRow.appendChild(td_1); otherLocationRow.appendChild(td_otherLocation); otherLocationRow.appendChild(td_2); var td_3_msg=""; td_3_msg+="Specialty: "+otherLocation.info_specialty+""; td_3_msg+="
Affiliated institution: "+otherLocation.info_hospitalAffiliation+""; td_3_msg+="
Email: "+otherLocation.office_email+""; td_3_msg+="
Phone: "+otherLocation.office_phone1+""; td_3_msg+="
Fax: "+otherLocation.office_fax+""; //td_3_msg+="
Other languages spoken: "+displayLanguages(otherLocation)+""; //td_3_msg+="
Web site: "+otherLocation.office_url+""; td_3_msg+="
"; var td_3=createTableCell(trId,td_3_msg); td_3.align="left"; td_3.valign="top"; td_3.width="250"; otherLocationRow.appendChild(td_3); var children=location_results_list_tbody.childNodes; for(var i=0;i"; td5_msg+="

    Office Location:"; td5_msg+="
    "+location.direction_address+""; td5_msg+="
    "+location.direction_city+", "+location.direction_state+" "+location.direction_zip+""; if(currentPage=="xolairhcp_specialist_locator.html"){ td5_msg+="
"; }else{ td5_msg+=""; } td5_msg+="    Directions"; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+=""; td5_msg+="
"; td5_msg+="
"; //td5_msg+='    Other Locations'; td5_msg+='    '; td5_msg+="
"; // td5_msg+='
'; var td5=createTableCell(i,td5_msg); td5.align="left"; td5.width="250"; td5.valign="top"; tr2.appendChild(td5); var td6=createTableCell(i," "); tr2.appendChild(td6); var td7_msg=""; td7_msg+="Specialty: "+location.info_specialty+""; td7_msg+="
Affiliated institution: "+location.info_hospitalAffiliation+""; td7_msg+="
Email: "+location.office_email+""; td7_msg+="
Phone: "+location.office_phone1+""; td7_msg+="
Fax: "+location.office_fax+""; td7_msg+="
Other languages spoken: "+location.languagesListString+""; td7_msg+="
Web site: "+location.office_url+""; td7_msg+="
"; var td7=createTableCell(i,td7_msg); td7.align="left"; td7.valign="top"; td7.width="250"; tr2.appendChild(td7); //alert("tr2.innerHTML="+tr2.innerHTML); list.appendChild(tr2); var tr3 =document.createElement("tr"); tr3.style.background=bgcolor; trId=++trId; tr3.id="tr_bgcolor_"+trId; //tr3.bgcolor=bgcolor; var td8=createTableCell(i," "); tr3.appendChild(td8); var td9=createTableCell(i," "); td9.colspan="3"; tr3.appendChild(td9); var td10=createTableCell(i," "); var td11=createTableCell(i," "); tr3.appendChild(td10); tr3.appendChild(td11); if(!isIE)list.appendChild(tr3); trId=++trId; } function displayLanguages(location_lg){ var strLanguage=""; if(location_lg.languagesListSize>0){ var langList= location_lg.languagesList; if(langList){ for (var i=0; i < langList.length;i++ ) { strLanguage+=langList[i].language; if(i<(langList.length-1)){ strLanguage+=","; } } } } return strLanguage; } function displayZipcodes(location_lg){ var strZipcode=""; if(location_lg.zipCodeListSize>0){ var zipList= location_lg.zipCodeList; if(zipList){ for (var i=0; i < zipList.length;i++ ) { strZipcode+=zipList[i].zip; if(i<(zipList.length-1)){ strZipcode+=","; } } } } return strZipcode; } function createTableCell(i,content){ var td=document.createElement("td"); td.id="td_"+tdId; //td.setAttribute("id", "td_"+tdId); td.innerHTML=content; tdId=++tdId; return td; } function displayLocationNotFound(location_results_list){ //salert(location_results_list); // var tbody =document.createElement("tbody"); var old_tr_bgcolor_1=$('tr_bgcolor_1'); if(!old_tr_bgcolor_1){ var tr_bgcolor_1 =document.createElement("tr"); tr_bgcolor_1.id="tr_bgcolor_1"; //tr_bgcolor_1.setAttribute("bgcolor", "#f8f3f7"); tr_bgcolor_1.bgcolor="#f8f3f7"; var td_empty1=document.createElement("td"); td_empty1.id="td_empty1"; td_empty1.innerHTML=" "; var td_empty2=document.createElement("td"); td_empty2.id="td_empty2"; td_empty2.innerHTML=" "; tr_bgcolor_1.appendChild(td_empty1); tr_bgcolor_1.appendChild(td_empty2); var td_1=document.createElement("td"); td_1.id="td_1"; //td_1.setAttribute("width", "600"); td_1.width="600"; // td_1.setAttribute("align", "center"); td_1.align="center"; td_1.innerHTML="No location were found"; var td_empty3=document.createElement("td"); td_empty3.id="td_empty3"; td_empty3.innerHTML=" "; var td_empty4=document.createElement("td"); td_empty4.id="td_empty4"; td_empty4.innerHTML=" "; tr_bgcolor_1.appendChild(td_1); tr_bgcolor_1.appendChild(td_empty3); tr_bgcolor_1.appendChild(td_empty4); //tbody.appendChild(tr_bgcolor_1); location_results_list.appendChild(tr_bgcolor_1); var maxResult=$('maxResult'); maxResult.innerHTML=0; //alert(location_results_list.innerHTML); /*var tr_bgcolor1_2 =document.createElement("tr"); tr_bgcolor1_2.id="tr_bgcolor1_2"; tr_bgcolor1_2.setAttribute("bgcolor", "#f8f3f7"); var td_empty5=document.createElement("td"); td_empty5.id="td_empty5"; td_empty5.innerHTML=" "; tr_bgcolor1_2.appendChild(td_empty5); var td_2=document.createElement("td"); td_2.id='td_2'; td_2.setAttribute("colspan", "3"); td_2.innerHTML=" "; tr_bgcolor1_2.appendChild(td_2); var td_empty6=document.createElement("td"); td_empty6.id="td_empty6"; td_empty6.innerHTML=" "; tr_bgcolor1_2.appendChild(td_empty6); location_results_list.appendChild(tr_bgcolor1_2); */ } } function errSubmitSearchDoctorLocation(res){ if(res.responseText!='N/A' && res.responseText!=''){ var LocationsListObject = eval("(" + res.responseText + ")"); } } //end find locator function startImageLoader(){ var findLocationTitle=$("findLocationTitle"); var findLocationForm=$("findLocationForm"); var location_terms_print=$("location_terms_print"); var location_results_terms_print=$("location_results_terms_print"); var ajaxLoader=$('ajaxLoader'); var myBody=$('xolairBody'); var isSafari2=false; // alert(findLocationTitle); //alert(findLocationForm); if(findLocationTitle){ findLocationTitle.style.display="none"; } if(findLocationForm){ findLocationForm.style.display="none"; } if(location_results_terms_print){ location_results_terms_print.style.display="none"; } if(location_terms_print){ location_terms_print.style.display="none"; } if(isSafari){ if(myBody){ isSafari3=true; if(ajaxLoaderImage)ajaxLoaderImage.style.left="209px"; }else{ isSafari2=true; //ajaxLoaderImage.style.left="209px"; } } if(!isSafari2){ if(ajaxLoader && ajaxLoaderImage){ ajaxLoader.appendChild(ajaxLoaderImage); ajaxLoader._timer = setTimeout("",100); } } } function stopImageLoader(){ var findLocationTitle=$("findLocationTitle"); var findLocationForm=$("findLocationForm"); var myBody=$('xolairBody'); var location_terms_print=$("location_terms_print"); var location_results_terms_print=$("location_results_terms_print"); if(findLocationTitle){ findLocationTitle.style.display="block"; } if(findLocationForm){ findLocationForm.style.display="block"; } if(location_results_terms_print){ location_results_terms_print.style.display="block"; } if(location_terms_print){ location_terms_print.style.display="block"; } if(myBody){ var ajaxLoader=$('ajaxLoader'); var ajaxLoader; var children; if(ajaxLoader){ clearTimeout(ajaxLoader._timer); ajaxLoader=$('ajaxLoader'); children=ajaxLoader.childNodes; if(children){ for(var i=0;i