1var chromeFix=GetCookie('status');if(!chromeFix){status='newsletter';SetCooKie('status',status);} 2var popWidth=350;var showPopups=true;var popupDelay=9000;var newsletterPage1=1;var newsletterPage2=3;var newsletterInterval=2;var newsletterURL='/pages/article/wnewsletterOct10.htm';var changeStatus2ClubAfter=2;var LightBoxDisplay=false;var newsletterX=$(window).width()/2- popWidth/2;var newsletterY=50;var newsletterWidth=380;var newsletterBackground='#FFFFFF';var clubPage1=2;var clubPage2=4;var clubInterval=3;var clubURL='/pages/article/wxpopupOct10-Dec14promo.htm';var clubX=$(window).width()- popWidth/2;var clubY=50;var clubWidth=610;var clubHeight=410;var clubBackground='#FFFFFF';var pop_log=false;var wpopupTextPosition='';function SetCooKie(name,value){var myDate=new Date();myDate.setDate(myDate.getDate()+ 364);var argv=SetCooKie.arguments;var argc=SetCooKie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:'/';var domain=(argc>4)?argv[4]:'.mindtools.com';var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+ escape(value)+";expires="+ myDate.toUTCString()+((path==null)?"":(";path="+ path))+((domain==null)?"":(";domain="+ domain))+((secure==true)?"; secure ":"");} 3function DeleteCookie(name,path,domain){if(GetCookie(name)){document.cookie=name+"="+((path)?"; path="+ path:"")+((domain)?"; domain="+ domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}} 4function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1) 5endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));} 6function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+ alen;if(document.cookie.substring(i,j)==arg)return getCookieVal(j);i=document.cookie.indexOf(" ",i)+ 1;if(i==0)break;} 7return false;} 8function upgradeNewsletter(){if(status=='newsletter'){SetCooKie('status','club');SetCooKie('pagecount','1');status='club';}} 9function upgradeClub(){SetCooKie('status','done');SetCooKie('pagecount','1');status='done';} 10var status=GetCookie('status');if(!status){status='newsletter';SetCooKie('status',status);} 11var pageCount=GetCookie('pagecount');if(!pageCount){pageCount=1;} 12SetCooKie('pagecount',Number(pageCount)+ 1);if(window.location.hash=='#nopopups'||window.location.hash=='#np'){upgradeNewsletter();} 13function checkPopup(){if(status!='done'){if(pageCount==window[status+'Page1']||pageCount==window[status+'Page2']||((pageCount- window[status+'Page2'])>0&&(pageCount- window[status+'Page2'])%window[status+'Interval']==0)){SetCooKie('showpopup','1');}}} 14function displayPopup(){var display=GetCookie('showpopup');if(!window.LightBoxDisplay){if(display&&display!=''&&status!='done'){FWinF(window[status+'X'],window[status+'Y'],window[status+'Width'],window[status+'Height'],window[status+'Backgroun
14d'],'popup',window[status+'URL']);SetCooKie('showpopup','');var popupCount=GetCookie('popupcount');if(!popupCount){popupCount=0;} 15popupCount++;SetCooKie('popupcount',popupCount);}}} 16if(status=='newsletter'){var popupCount=GetCookie('popupcount');if(!popupCount){popupCount=0;} 17if(popupCount>=changeStatus2ClubAfter){status='club';SetCooKie('status',status);}} 18if(showPopups){var oldOnload=window.onload;window.onload=function(ev){if(oldOnload){oldOnload(ev);} 19checkPopup();setTimeout(displayPopup,popupDelay);}} 20function FWinF(x,y,w,h,xbgcolor,pname,url,deprecated,deprecated2){if(deprecated||deprecated2){return false;} 21if(!FWin(x,y,w,h,xbgcolor,pname,url))return false;if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processReqChange;req.open("GET",url,true);req.send(null);}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processReqChange;req.open("GET",url,true);req.send();}} 22return true;} 23function processReqChange(){if(req.readyState==4){if(req.status==200){resp=req.responseText;if(resp==null){alert('Unable to parse data ');return;} 24if(wpopupTextPosition!=''){boxtext=document.getElementById(wpopupTextPosition);boxtext.innerHTML=resp;}else{alert('unable to load data for popup window');}}else{alert("There was a problem retrieving the XML data:\n"+ req.statusText);}}} 25function FWin(x,y,w,h,xbgcolor,pname,HTML){var widthW=w;var heightW=h;var posX=x;var posY=y;var bgColor=xbgcolor;var box;var overlay;var boxtext;var closeButton;return showFWin(x,y,w,h,xbgcolor,pname);} 26function dom_getElements(node,elt){var list=node.getElementsByTagName(elt);return(list.length)?list:node.getElementsByTagNameNS("*",elt);} 27function dom_setStyle(elt,str){elt.setAttribute("style",str);if(elt.style.setAttribute){elt.style.setAttribute("cssText",str,0);}} 28function Hide(t,n_overlay){t.style.display='none';n_overlay.style.display='none';} 29function showFWin(posX,posY,widthW,heightW,bgColor,pname){var showalways=false;box=window.document.createElement("div");overlay=window.document.createElement("div");overlay.setAttribute("class","newsletter_overlay");dom_setStyle(overlay,"background:rgba(0, 0, 0, 0.5);height:100%;left:0;position:fixed;top:0;width:100%;z-index: 1000;");box.setAttribute("class","newsletter_popup");if(navigator.appName.match(/Microsoft/i)){dom_setStyle(box,"width:"+ popWidth+"px;position:fixed;top:"+ posY+"px;left:"+ newsletterX+"px;");cb_offset=0;}else{dom_setStyle(box,"width:"+ popWidth+"px;position:fixed;top:"+ posY+"px;left:"+ newsletterX+"px;");cb_offset=6;} 30box.style.backgroundColor=bgColor;box.setAttribute("id",'fwinbox'+ pname);closeButton=document.createElement("span");closeButton.setAttribute("class","closeButton");closeButton.setAttribute("title","Click To Close");dom_setStyle(closeButton,"background-image:url(/templates/_pubWrapper/_assets/_plplogin/plp_public_login_sprite.png);background-position: -144px -221px;cursor: pointer;display: block;height: 37px !important;position: absolute !important;top:-15px !important;right:-15px !important;width: 37px !important;");addEventHandler(closeButton,'click',function(){Hide(box,overlay);},true);box.appendChild(closeButton);closeButton2=document.createElement("div");dom_setStyle(closeButton2,"cursor:hand;position:absolute;top:"+(heightW- 35)+"px;left:"+(widthW- 98+ cb_offset)+"px;");addEventHandler(closeButton2,'click',function(){Hide(box);},true);if(pop_log==true){var tpix=document.createElement("img");tpix.setAttribute("src","/php/tpix.php?pn="+ pname+'&p='+ escape(location.href));box.appendChild(tpix);} 31box.appendChild(closeButton2);boxtext=document.createElement("div");boxtext.setAttribute("id",'fwinboxtext_'+ pname);wpopupTextPosition='fwinboxtext_'+ pname;boxtext.innerHTML='';box.appendChild(boxtext);dom_getElements(document,"body")[0].appendChild(box);dom_getElements(document,"body")[0].appendChild(overlay);return true;} 32function addEventHandler(target,eventName,eventHandler,scope,extra){var f=scope?function(){eventHandler?eventHandler.apply(scope,arguments):1;}:eventHandler;if(target&&target.addEventListener) 33target.addEventListener(eventName,f,true);else if(target.attachEvent) 34target.attachEvent('on'+ eventName,f);return f;}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.