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" if (!picpopupwindow.closed && picpopupwindow.location) { picpopupwindow.location.href = picName; } else { picpopupwindow=window.open('','name',sizeInfo); if (!picpopupwindow.opener) picpopupwindow.opener = self; } picpopupwindow.document.open(); picpopupwindow.document.write(html); picpopupwindow.document.close(); if (window.focus) {picpopupwindow.focus()} return false; } var drap=0; function startpopup(path) { NewWin=window.open(path,"name","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=365,height=420"); drap=1; } function winopenpopup(path) { path = "/off_ramp.jsp?from="+escape(window.location.href)+"&go="+path; if (drap){ if (navigator.appName == "Microsoft Internet Explorer"){ Browser = "Ie"; NewWin.close(); startpopup(path); } else { startpopup(path); NewWin.focus(); } }else startpopup(path); } function csetCookie(name, value, days){ if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function cdeleteCookie(name){ csetCookie(name, "", -1); } function cgetCookie(name) { var ca = document.cookie.split(';'); var nameEQ = name + "="; for(var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } function resizeText(optype){ if(document.getElementById("bodytext")){ if (optype==1){ if (theSize==15){ theSize = 13; }else{ theSize++; } } theContentToResize = document.getElementById("bodytext"); theHeaderToResize = document.getElementById("header"); switch(theSize){ case 13: theContentToResize.style.fontSize = 12 + "px"; theHeaderToResize.style.fontSize = 18 + "px"; break; case 14: theContentToResize.style.fontSize = 14 + "px"; theHeaderToResize.style.fontSize = 21 + "px"; break; case 15: theContentToResize.style.fontSize = 16 + "px"; theHeaderToResize.style.fontSize = 24 + "px"; break; } cdeleteCookie("fontsize"); csetCookie("fontsize",theSize,100); } } var theSize = parseInt(cgetCookie("fontsize")); if (!(theSize>10)){ theSize = 13; } function trim(str) { if(str.charAt(0) == " ") { str = trim(str.substring(1)); } if (str.charAt(str.length-1) == " ") { str = trim(str.substring(0,str.length-1)); } return str; } function searchfield() { var search = (document.getElementById("searchkey")).value; search = trim(search); var match = /[^a-zA-Z0-9]/.test(search); if (match) { var rep = search.replace(/[\#\$\&\^\*\%\!\@\~\+\(\)]/g, ""); // var rep = search.replace(search,""); if(rep==""){ rep = "@"; } document.searchform["searchkeynew"].value = rep; }else{ document.searchform["searchkeynew"].value = search; } } // opens a disclaimer pop up passing // the url for the external link function externalLink(strUrl){ //alert(strUrl); //popup = window.open(relativepath+"external_disclaimer.html?url=" + escape(strUrl),"Disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=367,height=400"); popup = window.open("/external_disclaimer.html?url=" + escape(strUrl),"Disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=367,height=400"); popup.focus(); } function openPDF(page) { parentDest=page; var index1=parentDest.lastIndexOf("/"); if(index1!=-1) { var s=s_gi('novartiscmlalliance'); s.linkTrackVars='eVar7,prop7,prop8,events'; s.linkTrackEvents='event4'; s.events='event4'; var PDFname = parentDest.substring(index1+1,parentDest.length); s.eVar7=parentDest; //Tracked the PDF name *AND* the URL. s.prop8=s.pageName; //Tracked the page where the link was clicked. s.prop7=s.eVar7; s.tl(this,'d',PDFname); } inttemp=window.open('/openpdf.jsp','','_blank,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'); inttemp.focus(); }