if(window.attachEvent)var MS_AddEvent=function(c,a,b){c.attachEvent("on"+a,b)};else if(window.addEventListener)var MS_AddEvent=function(c,a,b){c.addEventListener(a,b,false)};if(window.detachEvent)var MS_RemoveEvent=function(c,a,b){c.detachEvent("on"+a,b)};else if(window.removeEventListener)var MS_RemoveEvent=function(c,a,b){c.removeEventListener(a,b)};if(document.all)var MS_GetEl=function(a){return document.all[a]};else if(document.getElementById)var MS_GetEl=function(a){return document.getElementById(a)};function MS_RPCHelper(a){this.result=null;this.xmlDoc=null;this.LoadedEvent=function(){};this.FailedEvent=function(){};this.maxTime=5000;this.startDate=null;this.intervalTime=200;this.interval=null;this.id=a;window[this.id]=this;this.CheckNode=function(){try{if(this.xmlDoc.readyState==4){window.clearInterval(this.interval);this.result=this.xmlDoc.getElementsByTagName("content")[0].childNodes[0].nodeValue;this.xmlDoc=null;this.LoadedEvent()}else{var a=new Date;if(a.getTime()-this.startDate.getTime()>=this.maxTime){this.xmlDoc=null;window.clearInterval(this.interval);this.FailedEvent()}}}catch(b){}};this.MakeRequest=function(c,b){this.startDate=new Date;try{if(window.ActiveXObject){this.interval=window.setInterval(this.id+".CheckNode()",this.intervalTime);this.xmlDoc=this.GetDomDocument()}else if(document.implementation&&document.implementation.createDocument){this.xmlDoc=document.implementation.createDocument("","doc",null);var a=this;this.xmlDoc.onload=function(){try{a.result=a.xmlDoc.getElementsByTagName("content")[0].childNodes[0].nodeValue;a.xmlDoc=null;a.LoadedEvent()}catch(b){a.xmlDoc=null;a.FailedEvent()}}}else{document.location.href=c+"&backurl="+OutputEncoder_EncodeUrl(document.location.href);return}this.xmlDoc.load(c);if(b!=null){var e=new Date,g=e.getTime();while(1){var d=new Date,f=d.getTime();if(f-g>b)return}}}catch(h){}};this.GetDomDocument=function(){var b=["MSXML2","Microsoft","MSXML","MSXML3"];for(var a=0;a<b.length;a++)try{var c=new ActiveXObject(b[a]+".DomDocument");return c}catch(d){}}}function OutputEncoder_EncodeUrl(c){if(typeof c=="undefined")return "";c=c.toString();var a,b="";for(var d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>47&&a<58||a==46||a==45||a==95)b=b+String.fromCharCode(a);else if(a>127)b=b+"%u"+OutputEncoder_TwoByteHex(a);else b=b+"%"+OutputEncoder_SingleByteHex(a)}return b}function OutputEncoder_EncodeHtmlAttribute(b){var a="";a=OutputEncoder_EncodeHtml(b).replace(/ /,"&#32;");return a}function OutputEncoder_EncodeHtml(d){var a,b="";for(var c=0;c<d.length;c++){a=d.charCodeAt(c);if(a>96&&a<123||a>64&&a<91||a>47&&a<58||a==32||a==46||a==44||a==45||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b}function OutputEncoder_SingleByteHex(c){var a=c.toString(16);for(var b=a.length;b<2;b++)a="0"+a;return a}function OutputEncoder_TwoByteHex(c){var a=c.toString(16);for(var b=a.length;b<4;b++)a="0"+a;return a}function MS_QueryString(){var b=document.location.search.toString();if(b.length>0)b=b.substring(1);var e=b.split("&");for(var d=0;d<e.length;d++){var a=e[d].split("=");if(a.length!=2)continue;if(a[1]=="")continue;try{var c=decodeURI(a[0]).toLowerCase(),f=decodeURI(a[1])}catch(g){var c=unescape(a[0]).toLowerCase(),f=unescape(a[1])}if(this[c])this[c]+=", "+f;else this[c]=f}}var queryString=new MS_QueryString;function GetModifiedQueryString(f,e,d){var b={};for(var a in queryString)b[a]=queryString[a];b[f.toLowerCase()]=e;var c="";for(var a in b){if(b[a]=="")continue;if(d)c+=OutputEncoder_EncodeUrl(a)+"="+OutputEncoder_EncodeUrl(b[a])+"&";else c+=a+"="+b[a]+"&"}return "?"+c}function GetModifiedQueryStrings(g,f,e,d){var b={};for(var a in queryString)b[a]=queryString[a];for(a=0;a<e;a++)b[g[a].toLowerCase()]=f[a];var c="";for(var a in b){if(b[a]=="")continue;if(d)c+=OutputEncoder_EncodeUrl(a)+"="+OutputEncoder_EncodeUrl(b[a])+"&";else c+=a+"="+b[a]+"&"}return "?"+c}function fetchcookieval(f){var c,d,e=false,b=document.cookie.split(";");for(var a=0;a<b.length;a++){c=b[a].substring(0,b[a].indexOf("="));if(c.charAt(0)==" ")c=c.substring(1,c.length);d=b[a].substring(b[a].indexOf("=")+1,b[a].length);if(f==c){e=true;break}}if(e)return d;else return "blank"}function setcookieval(c,d){var a=new Date;a.setFullYear(a.getFullYear()+1);var b=document.domain;if(typeof gCookieDomain!="undefined"&&gCookieDomain!=null&&gCookieDomain!="")b=gCookieDomain;if(b.indexOf(".com")>-1)document.cookie=c+"="+d+"; expires="+a.toGMTString()+"; Domain="+b+"; path=/";else document.cookie=c+"="+d+"; expires="+a.toGMTString()+"; path=/"}function srch_setcookieval(b,c){var a=document.domain;if(typeof gCookieDomain!="undefined"&&gCookieDomain!=null&&gCookieDomain!="")a=gCookieDomain;if(a.indexOf(".com")>-1)document.cookie=b+"="+c+"; Domain="+a+"; path=/";else document.cookie=b+"="+c+"; path=/"}function UnicodeFixup(d){var c=new String,b="",a=-1,e=d.length;c="";for(a=0;a<e;a++){b=d.substring(a,a+1);if(b=="%"){c+=b;a++;b=d.substring(a,a+1);if(b!="u")if(parseInt("0x"+d.substring(a,a+2))>128)c+="u00"}else if(b=="+")b="%2B";c+=b}return c}var g_reSupportedHostnames;function ForeignLink_Hookup(c){if(typeof c=="undefined")c="true";var a=null;for(var b=0;b<document.links.length;b++){a=document.links[b];if(a.protocol=="http:"||a.protocol=="https:"){if(!c&&(a.href.indexOf(document.domain)>-1||a.href.substring(0,1)=="/")&&a.href.toLowerCase().indexOf("fr=1")<0)if(a.href.indexOf("?")>-1)a.href=a.href+"&FR=1";else a.href=a.href+"?FR=1";if(!g_reSupportedHostnames.exec(a.hostname)||!c&&a.href.indexOf(document.domain)<0)a.target="_blank"}}if(!c)if(document.getElementsByName){var e=null;for(var b=0;b<document.forms.length;b++){eCurrentForm=document.forms[b];if(eCurrentForm.action.indexOf(document.domain)>-1||eCurrentForm.action.substring(0,1)=="/")if(!eCurrentForm.FR){var d=document.createElement("input");d.type="hidden";d.name="FR";d.id="FR";d.value="1";eCurrentForm.appendChild(d)}}}}function MS_PageToolsData(){this.closeMsg="Close";this.noCookieUrl="/gp/mvpnocookies";this.surveyUrl="";function getObjectId(){var i=0;while(true){if(!eval("window.SaveToFavoritesData"+i))return "SaveToFavoritesData"+i;i++}}this.id=getObjectId();window[this.id]=this;this.PrintPage=function(){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,2);try{window.print()}catch(a){}return false};this.EmailPage=function(){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,3);return true};this.SendFeedback=function(){if(MS_GetEl("fmsSurvey"))window.scrollBy(0,50000);else window.open(this.surveyUrl,"_blank","resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,left=0,top=0,height=500,width=725");return false}}function MS_StatusWindow(){this.statusTimeout=null;this.intervalTime=800;this.id=getObjectId();this.idMessage=this.id+"_message";this.idStatus=this.id+"_status";this.loadingMessage="loading";this.cannotLoadMessage="cannot load";this.successMessage="success";this.errorMessage="failure";this.closeMessage="close";this.finalMessage="";this.iframe=this.id+"_Iframe";this.loadingBackground="#353599";this.responseSuccess="success";this.responseFailure="failure";this.iframeUrl="";this.numberOfStatusBars=10;this.hiddenElements=[];this.functionToExecuteOnLoad=null;this.functionToExecuteOnUnLoad=null;this.parentObj=null;this.parentInnerHtml=null;this.RPCHelper=new MS_RPCHelper("RPC1");function getObjectId(){var i=0;while(true){if(!eval("window.floatWindow"+i))return "floatWindow"+i;i++}}window[this.id]=this;this.Load=function(){var a=this.loadingMessage;if(a.length<this.cannotLoadMessage.length)a=this.cannotLoadMessage;if(a.length<this.successMessage.length)a=this.successMessage;if(a.length<this.errorMessage.length)a=this.errorMessage;var c='<div class="message" id="'+this.idMessage+'">'+a+"</div>"+'<table cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td align="center">'+'<table id="'+this.idStatus+'" class="status"><tr>';for(var d=0;d<this.numberOfStatusBars;d++)c+='<td id="'+this.id+"_col"+d+'">&nbsp;</td>';c+="</tr></table></td></tr></table>";if(!MS_GetEl(this.id)){var f='<div class="floatWindow" id="'+this.id+'"></div>';this.parentObj.width=this.parentObj.offsetWidth;this.parentObj.height=this.parentObj.offsetHeight;this.parentObj.innerHTML=f+this.parentObj.innerHTML}try{MS_GetEl(this.id).innerHTML=c;var b=MS_GetEl(this.id);if(this.parentObj){b.style.top=this.getTop(this.parentObj);if(this.parentObj.offsetHeight<b.offsetHeight)this.parentObj.style.height=b.offsetHeight}var e=MS_GetEl(this.idMessage);e.innerHTML=this.loadingMessage;b.style.display="block";this.RPCHelper.MakeRequest(this.iframeUrl,null);this.FadeIn();this.statusTimeout=window.setTimeout(this.id+".Update(0,true)",this.intervalTime);if(this.functionToExecuteOnLoad!=null)this.functionToExecuteOnLoad()}catch(g){window.setTimeout(this.id+".Load()",this.intervalTime)}};this.getTop=function(c){var b=c.offsetTop,a=c.offsetParent;while(a!=null){b+=a.offsetTop;a=a.offsetParent}return b};this.SetStatus=function(b){if(this.statusTimeout)window.clearTimeout(this.statusTimeout);if(b){for(var a=0;a<this.numberOfStatusBars;a++)MS_GetEl(this.id+"_col"+a).style.background=this.loadingBackground;window.setTimeout("MS_GetEl('"+this.idMessage+"').innerHTML = '"+this.successMessage+"';",this.intervalTime);window.setTimeout("MS_GetEl('"+this.idStatus+"').style.visibility = 'hidden';",this.intervalTime);this.statusTimeout=window.setTimeout(this.id+".FadeOut()",this.intervalTime+400);window.setTimeout(this.id+".StopWindow()",this.intervalTime+600);this.finalMessage=this.successMessage}else{this.StopTime();window.setTimeout("MS_GetEl('"+this.idMessage+"').innerHTML = '<span style=\"error\">"+this.errorMessage+"</span>';",this.intervalTime);window.setTimeout("MS_GetEl('"+this.idStatus+"').style.display = 'none';",this.intervalTime);this.statusTimeout=window.setTimeout(this.id+".FadeOut()",this.intervalTime+400);window.setTimeout(this.id+".StopWindow()",this.intervalTime+600);this.finalMessage=this.errorMessage}};this.StopWindow=function(){try{if(this.functionToExecuteOnUnLoad!=null)this.functionToExecuteOnUnLoad()}catch(a){}};this.Update=function(a,d){var f=MS_GetEl(this.id+"_col"+a),c=false;c=a>=this.numberOfStatusBars;if(c){if(a<this.numberOfStatusBars){MS_GetEl(this.idMessage).innerHTML='<span class="error">'+this.errorMessage+"</span>";this.finalMessage=this.errorMessage}else{MS_GetEl(this.idMessage).innerHTML='<span class="error">'+this.cannotLoadMessage+"</span>";this.finalMessage=this.cannotLoadMessage}MS_GetEl(this.idStatus).style.display="none";return}try{if(this.RPCHelper.result){if(this.RPCHelper.result.indexOf(this.responseSuccess)>-1)this.SetStatus(true);else this.SetStatus(false);return}}catch(g){}var e=a-1;for(var b=0;b<e;b++)MS_GetEl(this.id+"_col"+b).style.background=this.loadingBackground;if(d)this.statusTimeout=window.setTimeout(this.id+".Update("+(a+1)+",true)",this.intervalTime)};this.ToggleFade=function(c){var d=c?"hidden":"visible",b=c?"visible":"hidden",a=MS_GetEl(this.id);a.style.visibility=d;if(!document.all){a.style.visibility=b;return}try{a.filters[0].apply();a.style.visibility=b;a.filters[0].play()}catch(e){a.style.visibility=b}};this.FadeOut=function(){this.ToggleFade(false)};this.FadeIn=function(){this.ToggleFade(true)};this.StopTime=function(){if(this.statusTimeout)window.clearInterval(this.statusTimeout)}}function SwitchLanguage(){var a=document.frmArticleTrans.scid.value.split(";");if(a.length!=3)return true;var d=a[0],f=a[1],e=a[2],c=document.location.protocol+"//"+document.location.hostname+"/"+d+"/"+e+"/"+f,b=document.getElementById("KBLangListRedirect");if(b!=null){b.href=c;b.click()}else document.location=c;return false}function MS_StatsDotNet(){this.startDate=new Date;this.disabled=true;this.host="/LTS/";this.scrollUsed=false;this.reCleanId=/[^0-9]*/i;this.eventCollectionId=0;this.OptionCollectionId=0;this.ContentProperties="";this.url="";this.dwellTime=0;this.refUrl="";this.sessionId="";if(document.referrer&&document.referrer!="")this.refUrl=document.referrer.toString();this.eventSeqNo=0;this.onUnloadTimeout=null;this.CleanId=function(a){try{return a.replace(this.reCleanId,"")}catch(b){}return ""};this.LogPageOnLoad=function(){if(MS_GetEl("acwkblink"))StatsDotNet.OptionCollectionId=SetLogCollectionBit(StatsDotNet.OptionCollectionId,32);if(typeof window.innerWidth=="number"){StatsDotNet.browserWidth=window.innerWidth;StatsDotNet.browserHeight=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){StatsDotNet.browserWidth=document.documentElement.clientWidth;StatsDotNet.browserHeight=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){StatsDotNet.browserWidth=document.body.clientWidth;StatsDotNet.browserHeight=document.body.clientHeight}var a=this.host+"?";if(this.sessionId!="")a+="SessionID="+OutputEncoder_EncodeUrl(this.sessionId)+"&";a+="SSID="+OutputEncoder_EncodeUrl(this.ssId)+"&"+"SiteLCID="+OutputEncoder_EncodeUrl(this.siteLcId)+"&"+"SSVersion="+OutputEncoder_EncodeUrl(this.SsVersion)+"&"+"SiteCulture="+OutputEncoder_EncodeUrl(this.SiteCulture)+"&"+"ContentCulture="+OutputEncoder_EncodeUrl(this.ContentCulture)+"&"+"In404Url="+OutputEncoder_EncodeUrl(this.In404Url)+"&"+"EventCollectionID="+OutputEncoder_EncodeUrl(this.eventCollectionId)+"&"+"URL="+OutputEncoder_EncodeUrl(this.url)+"&"+"ContentType="+OutputEncoder_EncodeUrl(this.contentType)+"&"+"ContentLCID="+OutputEncoder_EncodeUrl(this.contentLn)+"&"+"ContentID="+OutputEncoder_EncodeUrl(this.contentId)+"&"+"BrowserWidth="+this.browserWidth+"&"+"BrowserHeight="+this.browserHeight+"&"+"BrandID="+OutputEncoder_EncodeUrl(this.siteBrandId)+"&"+"RefURL="+OutputEncoder_EncodeUrl(this.refUrl)+"&"+"OptionCollectionId="+OutputEncoder_EncodeUrl(this.OptionCollectionId)+"&"+"EventSeqNo="+OutputEncoder_EncodeUrl(this.eventSeqNo)+"&"+"ContentProperties="+OutputEncoder_EncodeUrl(this.ContentProperties)+"&"+"FlexID="+OutputEncoder_EncodeUrl(this.flexId)+"&"+"FlexValue1="+OutputEncoder_EncodeUrl(this.flexValue1)+"&"+"FlexValue2="+OutputEncoder_EncodeUrl(this.flexValue2)+"&"+"FlexValue3="+OutputEncoder_EncodeUrl(this.flexValue3)+"&"+"FlexValue4="+OutputEncoder_EncodeUrl(this.flexValue4)+"&"+"FlexValue5="+OutputEncoder_EncodeUrl(this.flexValue5);document.StatsDotNetImg.src=a};this.LogPageOnUnLoad=function(){if(fetchcookieval("GsfxStatsLog")!="true")return;this.endDate=new Date;this.dwellTime=this.endDate.getTime()-this.startDate.getTime();if(this.scrollUsed)StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,27);var a=this.host+"?";if(this.sessionId!="")a+="SessionID="+OutputEncoder_EncodeUrl(this.sessionId)+"&";a+="SSID="+OutputEncoder_EncodeUrl(this.ssId)+"&"+"SiteLCID="+OutputEncoder_EncodeUrl(this.siteLcId)+"&"+"unload=true&"+"EventCollectionID="+OutputEncoder_EncodeUrl(this.eventCollectionId)+"&"+"OptionCollectionId="+OutputEncoder_EncodeUrl(this.OptionCollectionId)+"&"+"ContentType="+OutputEncoder_EncodeUrl(this.contentType)+"&"+"ContentLCID="+OutputEncoder_EncodeUrl(this.contentLn)+"&"+"ContentID="+OutputEncoder_EncodeUrl(this.contentId)+"&"+"ExitLinkID="+this.CleanId(this.exitLinkId)+"&"+"ExitContainerID="+this.CleanId(this.exitContainerId)+"&"+"DwellTime="+OutputEncoder_EncodeUrl(this.dwellTime)+"&"+"BrandID="+OutputEncoder_EncodeUrl(this.siteBrandId)+"&"+"SearchCategoryID="+this.CleanId(this.searchCategoryId+"")+"&"+"SearchCategoryLinkPos="+OutputEncoder_EncodeUrl(this.searchCategoryLinkPos)+"&"+"SearchPageLinkPos="+OutputEncoder_EncodeUrl(this.searchPageLinkPos)+"&"+"EventSeqNo="+OutputEncoder_EncodeUrl(this.eventSeqNo)+"&"+"FlexID="+OutputEncoder_EncodeUrl(this.flexId)+"&"+"FlexValue1="+OutputEncoder_EncodeUrl(this.flexValue1)+"&"+"FlexValue2="+OutputEncoder_EncodeUrl(this.flexValue2)+"&"+"FlexValue3="+OutputEncoder_EncodeUrl(this.flexValue3)+"&"+"FlexValue4="+OutputEncoder_EncodeUrl(this.flexValue4)+"&"+"FlexValue5="+OutputEncoder_EncodeUrl(this.flexValue5);document.StatsDotNetImg.src=a;var c=new Date,e=c.getTime();while(1){var b=new Date,d=b.getTime();if(d-e>this.onUnloadTimeout)return}};this.SetExitLinks=function(b){var a=null;if(typeof event!="undefined")a=event.srcElement;else a=b.target;var d=null,c=null;if(!a)return;if(!a.tagName)return;if(a.tagName.toUpperCase()!="A")return;if(!a.href)return;if(a.href.indexOf("javascript:")>-1)return;if(a.href.indexOf("mailto:")>-1)return;if(a.id)this.exitLinkId=a.id};this.TrackSearch=function(c,a,b){this.searchCategoryId=c;this.searchCategoryLinkPos=a;this.searchPageLinkPos=b};this.GetCookieIncrement=function(){var b="sdninc",a=fetchcookieval(b);if(a=="blank")a="0";a=parseInt(a);a+=1;document.cookie=b+"="+a+"; path=/;";return a};this.SetSearchCategoryId=function(a){if(!StatsDotNet.disabled)this.searchCategoryId=a}}var StatsDotNet=new MS_StatsDotNet;StatsDotNet.eventSeqNo=StatsDotNet.GetCookieIncrement();var SaveFavoritesWindow=new MS_StatusWindow,SaveToFavoritesData=new MS_PageToolsData;SaveToFavoritesData.objStatsDotNet=StatsDotNet;SaveToFavoritesData.objSaveFavoritesWindow=SaveFavoritesWindow;function MS_HandleClick(a,e,g){if(!a.id||a.id=="")return true;var d=a.id.replace("bil_","");if(g){StatsDotNet.exitLinkId=d;StatsDotNet.exitContainerId=e}switch(d){case "PrintPage":return SaveToFavoritesData.PrintPage();case "EmailPage":return SaveToFavoritesData.EmailPage(a);case "SendFeedback":return SaveToFavoritesData.SendFeedback(a)}var b=a.href.indexOf("GSSProdSelMore");if(b>0){var c=a.href.indexOf("&",b);if(c<0)c=a.href.length;var h=a.href.substring(b+14,c);a.href="/select/default.aspx"+GetModifiedQueryString("c1",h,false)}else if((b=a.href.indexOf("GSA_AC_More"))>0){var c=a.href.indexOf("&",b);if(c<0)c=a.href.length;var i="cid;aid".split(";"),j=(";"+a.href.substring(b+11,c)).split(";"),f=GetModifiedQueryStrings(i,j,2,false);a.href=document.location.pathname+f}return true}function getrssurl(b){var c="",d="guid=",e="&guid=",f=32,a=fetchcookieval("MC1").toLowerCase();if(a=="blank"||a=="")a=fetchcookieval("MC2").toLowerCase();if(a!="blank"&&a!="")if(a.substr(0,d.length)==d)c=a.substr(d.length,f);else if(a.indexOf(e)>-1)c=a.substr(a.indexOf(e)+e.length,f);var g=b.href.indexOf("/common/rss.aspx");if(g>-1)b.href=b.href+"&msid="+c}function MS_DocumentOnClick(a){if(!StatsDotNet.disabled)StatsDotNet.SetExitLinks(a)}function MS_WindowOnUnload(){if(!StatsDotNet.disabled)StatsDotNet.LogPageOnUnLoad()}MS_AddEvent(window,"unload",MS_WindowOnUnload);MS_AddEvent(document,"click",MS_DocumentOnClick);function mhHover(e,c,d){var b,a;b=MS_GetEl(e);if(b==null)return;if(b.getElementsByTagName)a=b.getElementsByTagName("TD");else a=b.all.tags("TD");if(a==null)return;if(a.length<=c)return;a[c].className=d}function setMSResearch(){var a=new Date;if(document.cookie.indexOf("msresearch=1 ")==-1)document.cookie="msresearch="+a.getTime()+":"+escape(document.location)+":"+escape(document.referrer)+"; path=/; domain=.microsoft.com; "}function footerjs(a){if(doImage==null){var b=TType==null?"PV":TType;a.write('<layer visibility="hide"><div style="display:none"><img src="'+document.location.protocol+"//c.microsoft.com/trans_pixel.asp?source=localhost&TYPE="+b+'&p=MNPGenerator" width=0 height=0 hspace=0 vspace=0 border=0 /></div></layer>')}if((document.cookie.indexOf("msresearch=1 ")==-1)(document.cookie.indexOf("msresearch=")!=-1))setInterval("setMSResearch()",1000)}function SubmitSettingChanges(a){document.forms[a+"Form"].submit()}function SaveDiscussionSettings(){MS_GetEl("SaveSettings").value="true";document.forms["DiscussionSettings"].submit()}function ValidateEmail(a){if(a.length==0)return true;var b=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/,c=/^([\w-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])$|(([\w-]+\.)+)([a-zA-Z]{2,4}))$/;return !b.test(a)&&c.test(a)}function NotifySave(){var a;a=MS_GetEl("NotifySave");if(a!=null)alert(a.value)}function MNPResizeFix(){MS_AddEvent(window,"resize",resizer);resizer()}function resizer(){var a=MS_GetEl("WebContentArea"),b=0;if(a==null)a=MS_GetEl("contentArea");else b=1;var e,h,d,g,c,f;e=h=d=g=c=f=0;try{e=MS_GetEl("msviMasthead").offsetHeight}catch(s){e=0}try{h=MS_GetEl("msviFooter").offsetHeight}catch(s){h=0}var k=e+h,n=document.body.offsetHeight,j=document.body.clientHeight,o=document.body.scrollHeight;try{d=MS_GetEl("topRow").offsetHeight}catch(s){d=0}try{g=MS_GetEl("mainRow").offsetHeight}catch(s){g=0}try{c=MS_GetEl("bottomRow").offsetHeight}catch(s){c=0}try{f=a.offsetHeight}catch(s){f=0}var p=f+k,r=Math.max(Math.max(n,p),o,j),m=j-k-1;if(a&&a.offsetHeight<m){a.style.height=m;if(b==1)try{b=a.offsetHeight-MS_GetEl("contentArea").offsetHeight}catch(s){b=0}try{MS_GetEl("mainRow").style.height=a.offsetHeight-d-c-b-7}catch(s){}}var l=navigator.userAgent.toLowerCase();if(l.indexOf("netscape")>=0||l.indexOf("firefox")>=0){var i=c+g+d+b;if(i>a.offsetHeight)MS_GetEl("contentArea").style.height=i}try{fixW=MS_GetEl("widthFix");var q=fixW.offsetWidth;fixW.style.fontSize="0px";fixW.style.width=q}catch(s){}if(typeof minMainSize!="undefined")widthFixing(minMainSize);else widthFixing(750)}var lastBodyWidth=null;function widthFixing(a){var b=MS_GetEl("mainRow"),c=document.body.offsetWidth,d=MS_GetEl("mnpMenuTop"),e=d==null?0:d.offsetWidth;if(lastBodyWidth!=null){if(c!=lastBodyWidth)if(b.offsetWidth==a&&c-e-5>a)b.style.width="auto";else if(b.offsetWidth<a)b.style.width=a}else if(b.offsetWidth<a)b.style.width=a;lastBodyWidth=c;setHeaderFooter(c)}function setHeaderFooter(c){var e=MS_GetEl("mnpMenuTop"),b=e==null?0:e.offsetWidth,a=MS_GetEl("mainRow").offsetWidth;c=isNaN(parseInt(c))?0:parseInt(c);b=isNaN(parseInt(b))?0:parseInt(b);a=isNaN(parseInt(a))?0:parseInt(a);var d=c>b+a?c:b+a;MS_GetEl("msviMasthead").style.width=d;MS_GetEl("msviFooter").style.width=d}function OptionCookie(){var f=fetchcookieval("adopt");if(f.length>0){var d=f.split("|");for(var c=0;c<d.length;c++){var a=d[c].split("=");if(a.length!=2)continue;if(a[1]=="")continue;var b=a[0],e=a[1];if(this[b])this[b]+=", "+e;else this[b]=e}}}function InitASrch(e,d){var a;if(d!="top"&&d!="bottom"){a=document.frmaSrch.query;if(a.value==""&&navigator.userAgent.indexOf("Netscape6")>0){a.value=" ";a.value=""}tval=queryString["query"]?queryString["query"]:"";if(tval=="")tval=fetchcookieval("lquery");if(tval!="blank"&&tval!="")a.value=unescape(UnicodeFixup(tval.trim()));a.focus();multicatalog=false;a=document.frmaSrch.catalog;if(a.length){InitRadio(a,"catalog");multicatalog=true}a=document.frmaSrch.spid;InitSelect(a,"SPID","mvp");if(a.options&&a.options.length>0){var f=a.options[a.selectedIndex].value;DisplayProductFilter(f)}}else{var b=document.forms;for(icnt=0;icnt<b.length;icnt++){if(b[icnt].id!="frmaSrch")continue;srch_setcookieval("lquery",UnicodeFixup(escape(b[icnt].query.value.trim())));multicatalog=false;a=b[icnt].catalog;if(a.length){InitRadio(a,"catalog");multicatalog=true}a=b[icnt].spid;InitSelect(a,"SPID","mvp")}}if(e=="False")return;a=document.frmaSrch.pwt;InitSelect(a,"pwt","ad");a=document.frmaSrch.kt;InitSelect(a,"kt","ad");a=document.frmaSrch.title;InitSelect(a,"title","ad");ChangeSelection(a);a=document.frmaSrch.mdt;InitSelect(a,"mdt","ad");a=document.frmaSrch.res;InitSelect(a,"res","ad");var c=new OptionCookie;if(document.getElementsByName){a=document.getElementsByName("ast");for(j=0;j<a.length;j++){tval=c["ad"+a[j].value];if(tval&&tval!="blank"&&tval!="")if(tval=="0")a[j].checked=false;else a[j].checked=true}}if(optElems){opt=optElems.split("|");for(j=0;j<opt.length;j++){a=document.getElementById(opt[j].toString());if(a){tval=c["ad"+opt[j]];if(tval&&tval!="blank"&&tval!="")if(tval=="0")a.checked=false;else a.checked=true}}}if(multicatalog)DisplayScopeOptions("adv","")}var extraOp="",allprod="";function FillProductList(f,c){var e=MS_GetEl("productfilter"+f);if(e){var b='<select name="spid" onchange="ProductChanged(this);">';if(extraOp&&extraOp!="")b+=extraOp;if(c&&c!="")b+=c;b+="</select>";e.innerHTML=b}var a=document.frmaSrch.spid;if(!a){var d=document.forms["frmaSrch"];if(d.length>=2)if(f=="top")InitSelect(d[0].spid,"SPID","mvp");else InitSelect(d[1].spid,"SPID","mvp")}if(a&&a.options.length>0){InitSelect(a,"SPID","mvp");var g=a.options[a.selectedIndex].value;DisplayProductFilter(g)}}function DisplayProductFilter(d){var a=MS_GetEl("pwtcol"),b=MS_GetEl("pwtcol1"),c=MS_GetEl("pwtimg");if(a&&b&&c)if(d==""||d=="global"){a.style.display="none";b.style.display="none";c.style.display="none"}else if(a.style.display!="block"&&a.style.display!=""){a.style.display="";b.style.display="";c.style.display=""}}function ProductChanged(b){var a=b.options[b.selectedIndex].value;DisplayProductFilter(a);if(a.indexOf("more_")>-1)if(queryString["adv"]=="1")document.location.href="/selectindex/default.aspx?target=search&sreg="+a.substr(5)+"&adv=1";else document.location.href="/selectindex/default.aspx?target=search&sreg="+a.substr(5)}function InitRadio(a,b){tval=fetchcookieval("ad"+b);if(tval!="blank"&&tval!="")for(i=0;i<a.length;i++)if(a[i].value==unescape(tval)){a[i].checked=true;a[i].click();break}}function InitSelect(a,b,c){tval=fetchcookieval(c+b);if(b=="SPID")if(tval=="blank"||tval=="")tval="global";if(tval!="blank"&&tval!="")for(i=0;i<a.options.length;i++)if(a.options[i].value==unescape(tval)){a.selectedIndex=i;break}}function DisplayScopeOptions(e,d){if(e=="adv"){cat=document.frmaSrch.catalog;var c=0;for(i=0;i<cat.length;i++)if(cat[i].checked){c=i;break}var f=cat[c].getAttribute("exclude");if(optElems){var a=optElems.split("|");for(i=0;i<a.length;i++){var b=MS_GetEl(a[i]+"row");if(b)b.style.display="block"}}a=f.split("|");for(i=0;i<a.length;i++){var b=MS_GetEl(a[i]+"row");if(b)b.style.display="none"}}if(d!="")FillProductList(e,d)}var links=[];MS_AddEvent(window,"load",addPopupHelpEvents);function addPopupHelpEvents(){var d=0,c=document.getElementById("mainColumn");if(c){var a=c.getElementsByTagName("a");if(!a)return;for(var b=a.length-1;b>=0;b--)if(a[b].className=="custip"){links.push(a[b]);a[b].onmouseover=showPopupHelp;a[b].onmouseout=hidePopupHelp;a[b].onfocus=showPopupHelp;a[b].onblur=hidePopupHelp}}}function showPopupHelp(){var a=0;for(a=0;a<links.length;a++){var b=links[a].getElementsByTagName("span");if(b.length>0)b[0].style.display="none"}this.className="custip show";if(this.getElementsByTagName("span").length>0)this.getElementsByTagName("span")[0].style.display="block"}function hidePopupHelp(){this.className="custip";if(this.getElementsByTagName("span").length>0)this.getElementsByTagName("span")[0].style.display="none"}function SaveSrchState(d){if(PageSubmit=="1")return;var a;a=document.frmaSrch.query;srch_setcookieval("lquery",UnicodeFixup(escape(a.value.trim())));a=document.frmaSrch.catalog;if(a.length)SaveRadioState(a,"catalog");if(d=="False")return;a=document.frmaSrch.pwt;SaveSelectState(a,"pwt");a=document.frmaSrch.kt;SaveSelectState(a,"kt");a=document.frmaSrch.title;SaveSelectState(a,"title");a=document.frmaSrch.mdt;SaveSelectState(a,"mdt");a=document.frmaSrch.res;SaveSelectState(a,"res");var b="";if(document.getElementsByName){a=document.getElementsByName("ast");for(i=0;i<a.length;i++){var c=MS_GetEl(a[i].value+"row");if(c.style.display=="block"||c.style.display=="")if(a[i].checked)b+="ad"+a[i].value+"=1|";else b+="ad"+a[i].value+"=0|";else a[i].value=""}}if(optElems){options=optElems.split("|");for(i=0;i<options.length;i++){a=document.getElementById(options[i].toString());if(a){var c=MS_GetEl(options[i]+"row");if(!c)if(a.checked)b+="ad"+options[i]+"=1|";else b+="ad"+options[i]+"=0|"}}}srch_setcookieval("adopt",b)}function SaveRadioState(a,b){for(i=0;i<a.length;i++)if(a[i].checked)srch_setcookieval("ad"+b,escape(a[i].value))}function SaveSelectState(a,b){if(a&&a.options)srch_setcookieval("ad"+b,escape(a.options[a.selectedIndex].value))}function InitSrch(){elem=document.frmsrch.query;tval=fetchcookieval("lquery");if(tval!="blank"&&tval!="")elem.value=unescape(UnicodeFixup(tval.trim()));elem=document.frmsrch.catalog;if(elem.options)InitSelect(elem,"catalog","ad")}function SaveLeftSrch(){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,6);var a;a=document.frmsrch.pd;if(a)if(!a.checked)document.frmsrch.spid.value="global";a=document.frmsrch.query;srch_setcookieval("lquery",UnicodeFixup(escape(a.value.trim())));a=document.frmsrch.catalog;if(a.options)srch_setcookieval("adcatalog",escape(a.options[a.selectedIndex].value))}function ChangeSelection(b){var a=b.options[b.selectedIndex].value;ktelem=document.frmaSrch.kt;if(a=="articleid"||a=="error"){tval="PHRASE";if(ktelem.options&&ktelem.options.length>0)for(i=0;i<ktelem.options.length;i++)if(ktelem.options[i].value==tval){ktelem.selectedIndex=i;ktelem.disabled=true;break}}else ktelem.disabled=false}var mruListCount=0;function SubmitSearch(f,a,g){if(a.spid.selectedIndex<mruListCount)logOptionId(34);if(g=="top"||g=="bottom"){elem=a.query;srch_setcookieval("lquery",UnicodeFixup(escape(elem.value.trim())));var e="";prdelem=a.spid;if(prdelem&&prdelem.options){var d=prdelem.options[prdelem.selectedIndex].value;if(d!=""&&d!="global")e=" "+prdelem.options[prdelem.selectedIndex].text}for(s=0;s<a.catalog.length;s++)if(a.catalog[s].checked){var c,b=a.query.value+e;b=b.trim();if(window.encodeURI)b=encodeURI(b);else b=OutputEncoder_EncodeUrl(b);if(a.catalog[s].value=="msc"){StatsDotNet.OptionCollectionId=SetLogCollectionBit(StatsDotNet.OptionCollectionId,33);c=mscomurl+b;document.location.href=c;return false}else if(a.catalog[s].value=="msn"){StatsDotNet.OptionCollectionId=SetLogCollectionBit(StatsDotNet.OptionCollectionId,33);c=msnurl+b;document.location.href=c;return false}else srch_setcookieval("adcatalog",escape(a.catalog[s].value))}}else SaveSrchState(f);if(f=="False")StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,6);else StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,7);PageSubmit=1}function getsearchurl(a){if(queryString["adv"]=="1")a.href=a.href+"&adv=1"}function logSearchUISwitch(){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,28)}function logRange(){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,8)}function logOptionId(a){StatsDotNet.OptionCollectionId=SetLogCollectionBit(StatsDotNet.OptionCollectionId,a)}function IsLogBitSet(c,a){if(c==0||a==0)return false;var b=c.toString(2);if(b.length>a)if(b.charAt(b.length-a-1)=="1")return true;return false}function SetLogCollectionBit(a,b){if(!IsLogBitSet(a,b))a+=Math.pow(2,b);return a}function DoSubmit(a){StatsDotNet.eventCollectionId|=Math.pow(2,6);var b=fetchcookieval("adcat");if(b=="blank"||b=="0")a.cat.value="false";else a.cat.value="true";a.submit()}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function resizeNewsFrame(){document.getElementById("news").height="100%";document.getElementById("news").width="100%"}function RemoveMsviGlobalSearch(){var a=document.getElementById("msviGlobalSearch");if(a!=null)a.style.visibility="hidden"}function MS_EnsureIsChildWindow(){if(window.top==self){var b="getmeoutofhere",c=document.location.protocol+"//"+document.location.host+"/newsgroups/default.aspx"+document.location.search,a=document.createElement("a");a.setAttribute("href",c);a.setAttribute("target","_top");a.setAttribute("id",b);document.body.appendChild(a);if(typeof document.getElementById(b).click=="undefined")top.location.href=c;else document.getElementById(b).click()}}function SolIdForStatsNet(a){if(!StatsDotNet.disabled){StatsDotNet.flexId="4";StatsDotNet.flexValue1=a;StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,18)}}function AssetIdClick(a){if(!StatsDotNet.disabled){StatsDotNet.SetSearchCategoryId(a);StatsDotNet.flexValue2=a;StatsDotNet.flexId="4"}}function RegionSave(d){var b=d+"LANG",a=fetchcookieval(b),c=MS_GetEl("LN").value;if(a!="blank"&&a!="")if(a!=c)StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,17);setcookieval(b,c);MS_GetEl("regionform").submit}function LogProfileUpdate(){StatsDotNet.eventCollectionId|=Math.pow(2,15)}function HookSearchLogging(){if(document.all&&document.all["qu"]!=null){var b=document.all["qu"].length>1?document.all["qu"][1]:document.all["qu"],a=b.parentElement.parentElement.nextSibling;if(a!=null){a=a.firstChild;if(a!=null)a.onclick=SaveLeftSrch}}}MS_AddEvent(window,"load",HookSearchLogging);function CheckEulaCookie(b){var a=fetchcookieval("acweula");if(a!="1")return true;else{location.href=b;return false}}function LaunchAcw(c,a){if(c=="accept"){StatsDotNet.eventCollectionId=SetLogCollectionBit(StatsDotNet.eventCollectionId,26);setcookieval("acweula","1");var b=window.open(a,null,"height=1,width=1,left=0,top=0,status=no,toolbar=no,menubar=no,location=no");if(!b)location.href=a;else document.forms["frmacw"].submit();return false}else document.forms["frmacw"].submit()}function Trim(b){var a;if(b==null)return "";a=b.replace(/^\s+/,"");a=a.replace(/\s+$/,"");return a}function DD(d,f,g,e){var b=f.split("\t"),c=b.length,a=0;if(g){c=c-c%2;if(e)while(a<c){document.write('<option title="'+b[a+1]+'"'+' value="'+b[a]+'"'+(d==b[a]?" selected":"")+">"+b[a+1]);a=a+2}else while(a<c){document.write('<option value="'+b[a]+'"'+(d==b[a]?" selected":"")+">"+b[a+1]);a=a+2}}else while(a<c){document.write("<option "+(d==b[a]?" selected":"")+">"+b[a]);a++}}function getLatestElement(){var a=document.body;while(a.lastChild)a=a.lastChild;while(!a.tagName)a=a.parentNode;return a.previousSibling}function getParentByTagName(c,b){var a=c;while(a&&a.tagName!=b)a=a.parentNode;return a}function getCurrentStyle(b,a){if(b.currentStyle)return b.currentStyle[a];else if(window.getComputedStyle){a=a.replace(/([A-Z])/g,"-$1").toLowerCase();return window.getComputedStyle(b,null).getPropertyValue(a)}else return null}var bullets=[];function fixBulletPosition(c,g){if(!g)bullets.push(c);else{var f=getCurrentStyle(document.body,"orientation");for(var e=0;e<bullets.length;e++){c=bullets[e];var d=c.offsetWidth;if(f=="rtl")c.style.marginRight="-"+d+"px";else c.style.marginLeft="-"+d+"px";var b=getParentByTagName(c,"UL");if(b)if(f=="rtl"){var a=parseInt(b.style.marginRight,10);if(!a)a=parseInt(getCurrentStyle(b,"marginRight"),10);if(!a||d>a)b.style.marginRight=d+"px"}else{var a=parseInt(b.style.marginLeft,10);if(!a)a=parseInt(getCurrentStyle(b,"marginLeft"),10);if(!a||d>a)b.style.marginLeft=d+"px"}}}}