var Popup=null; var NS4 = (document.layers) ? true : false; function checkEnter(event) { var code = 0; if (NS4) code = event.which; else code = event.keyCode; if (code==13){ submitSearch(); } } function submitSearch() { var url =""; var intxt = document.bannersearch.search.value; var tempurl = url+"¶m="+intxt if(intxt==""){ alert("Please enter the search term."); }else{ self.location=tempurl; } } function submitOnEnter(event, myObject){ var code = 0; if (NS4) code = event.which; else code = event.keyCode; if (code==13){ for (var i=0; i-1){ return confirm("You have clicked on a link that will take you out of this website."); } else if (tempLink.indexOf("www.msleadersofhope.com")>-1){ return confirm("You have clicked on a link that will take you out of this website."); } else if (tempLink.indexOf("www.tysabri.com")>-1){ return confirm("You have clicked on a link that will take you out of this website."); } else if(tempLink.indexOf("boss.streamos.com")>-1){ return true; } else if(tempLink.indexOf("www.avonex.com")>-1){ return confirm("You have clicked on a link that will take you out of the MSActiveSource.com website."); } else if(tempLink.indexOf("www.msactivesource.com")>-1){ return confirm("You have clicked on a link that will take you out of AVONEX.com."); } else if(tempLink.indexOf("avonex/home")>-1){ return confirm("You have clicked on a link that will take you out of the MSActiveSource.com website."); } else if(tempLink.indexOf("msas/home")>-1){ return confirm("You have clicked on a link that will take you out of AVONEX.com."); } else if (tempLink.indexOf("www.avonextherapysupport.com") >-1){ return (""); } else{ return confirm("You've clicked on an external link, and are about to leave this website. Biogen Idec is not responsible for content provided on external sites."); } } /** * Strange name because Weblogic has its own openPopup method. **/ function openDefaultPopup(destination) { openPopup(645, 450, destination, 'yes', 'yes'); } function openPopup(width,height,destination,scrollbars) { openPopup(width,height,destination,scrollbars,"no"); } function openPopup(width,height,destination,scrollbars,menu) { LeftPosition=(screen.availWidth)?(screen.availWidth-width)/2:50; TopPosition=(screen.availHeight)?(screen.availHeight-height)/2:50; settings='width='+width+',height='+height+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',location=no,directories=no,status=no,menubar='+menu+',toolbar=yes,resizable=yes'; Popup = window.open(destination,'popup',settings); Popup.focus(); } /** * Simple method used in a anchor to hide from spiders. **/ function hideLink(link){ window.location = link; } function quicklinksgoto(form) { var index = form.QuickLinks.selectedIndex; if (form.QuickLinks.options[index].value != "0") { location=form.QuickLinks.options[index].value; } //document.QuickLinks.submit(); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1]; nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { if ((nbArr = document[grpName]) != null) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } }