cms_addCss=function(url,link){if(typeof window[link]=="undefined"){window[link]=link;var oCss=document.createElement("link"),oHead=document.getElementsByTagName("head")[0];oCss.setAttribute("rel","stylesheet");oCss.setAttribute("type","text/css");oCss.setAttribute("href",url);oHead.appendChild(oCss)}};var lcMappingForSB={"es-us":"es-pa","en-in":"hi-in","en-my":"ms-my","en-sg":"zh-sg"},lcMappingForOLW={"es-pa":"es-es"};goToSignupFor=function(signupBaseUrl,querystring){if(!e)var e=window.event;if(e)e.cancelBubble=true;if(e&&e.stopPropagation)e.stopPropagation();var cloc=readCookie("cloc"),addCloc=typeof querystring!="undefined"&&querystring!=null&&querystring.indexOf("lc=")<0&&querystring.indexOf("cloc=")<0;if(typeof querystring=="undefined"||querystring==null)addCloc=true;else if(querystring.indexOf("signupsrc=SmallBusinessServer")!=-1){var keepParams=location.search.substring(1);if(keepParams&&(typeof keepParams=="string"&&keepParams.length>0))querystring=querystring+"&"+keepParams}var targetUrl=signupBaseUrl+"?"+querystring;if(cloc!=null&&addCloc){if(typeof querystring!="undefined"&&querystring!=null&&querystring.length>0)targetUrl+="&";if(querystring.toLowerCase().indexOf("sku=olw")!=-1){if(typeof lcMappingForOLW[cloc.toLowerCase()]!="undefined")cloc=lcMappingForOLW[cloc.toLowerCase()]}else if(typeof lcMappingForSB[cloc.toLowerCase()]!="undefined")cloc=lcMappingForSB[cloc.toLowerCase()];targetUrl+="lc="+cloc}location.href=targetUrl};readCookie=function(name){var nameEQ=name+"=",ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null};openPopup=function(fileName,winWidth,winHeight,xPos,yPos){if(winWidth==undefined)winWidth=400;if(winHeight==undefined)winHeight=200;if(xPos==undefined)xPos=screen.availWidth/2-winWidth/2;if(yPos==undefined)yPos=screen.availHeight/2-winHeight/2;window.open(fileName,"_new","location=1,status=0,toolbar=0,menubar=1,resizable=1,scrollbars=yes,width="+winWidth+",height="+winHeight+",left="+xPos+",top="+yPos)};renderAd=function(adDivId,pageGroup,adPlacement,width,height,adURL){if(typeof window.dapMgr=="undefined")window.setTimeout('renderAd("'+adDivId+'","'+pageGroup+'","'+adPlacement+'","'+width+'","'+height+'","'+adURL+'")',2000);else window.setTimeout("dapMgr.enableACB('"+adDivId+"',false);dapMgr.renderAd('"+adDivId+"','&PG="+pageGroup+"&AP="+adPlacement+"&PN=#Ads.PN#',"+width+","+height+");",100)};cms_setInnerHtml=function(html,el){el.innerHTML=html;var head=document.getElementsByTagName("head")[0],re=/<script(\b[\s\S]*?)>([\s\S]*?)<\//gi,match;while(match=re.exec(html)){var reSrc=/src="([\s\S]*?)"/gi,strSrc=reSrc.exec(match[1]);if(strSrc!=null){var found=false;for(var i=0;i<head.childNodes.length;i++)if(head.childNodes[i].src==strSrc[1]){found=true;break}if(found==false){var script=document.createElement("script");script.src=strSrc[1];script.type="text/javascript";script.defer="true";head.appendChild(script)}}else{var s=match[2];if(s.indexOf("<![CDATA[")==0)s=s.substr(9,s.length-12);eval(s)}}}