var JstrBCrumb="",currentNetworkName="",EnmCustomerStatus={LeadUnqualified:6,LeadQualified:7,ProspectInDiscussion:8,ClickableTrialPeriod:9,ProspectProposal:10,ProspectInNegotiation:11,ProspectPurchasing:12,CustomerGoodStanding:13,ProspectClosedLost:14,CustomerLimitedCustomer:15,CustomerNotActive:16,LeadBeta:17,CustomerSuspended:18,CustomerNoCreditCard:20,ProspectTrialPeriodOver:21,CustomerTest:22,ProspectBillingIssue:23,LeadNotContacted:24,LeadLeftMessage:25,LeadContacted:26,LeadDemoScheduled:27,LeadDemoCompleted:28,ProspectTrialAccountSignUp:29,ProspectDecisionPending:30,ProspectAdvertiserCommitted:31,CustomerCancelled:32,ProspectTrialLockout:33,LeadOutbound:34,LeadNoInterest:35,ProspectCancelled:36,ProspectUnlimited:37,CustomerManualNoCC:38,ProspectManualNoCC:39,LeadCommunity:42};function adjustIFrameWidthSmall(){adjustIFrameWidthX("500")}function adjustIFrameWidthBig(){adjustIFrameWidthX("720")}function adjustIFrameWidthX(width){$get("outerLightBox").style.width=width+"px";var iframeElement1=$get("lightboxIframe"),left=window.document.body.offsetWidth/2-width/2;$get("outerLightBox").style.left=left+"px";$get("lightBox").style.width=width+"px";$get("lightboxIframe").style.width=width+"px";window.scrollTo(0,120)}function AcHelpObject(){this.HelpOn="visible";this.srcImage="../images/buttons/button_on_on.png";this.altText="ON"}var __acHelpObject=new AcHelpObject;function AcSessionObject(){this.NwAccountId="";this.NwAccountName="";this.AcUserName="<...David Beckham...";this.AcContactId="";this.DateRange="30 Days";this.CurrentChild="Dashboard";this.CampaignId="";this.CampaignName="";this.AdGroupId="";this.AdGroupName="";this.KeywordId="";this.KeywordText="";this.KeyWordRecommendationFromMyAdaptClick="";this.KeyWordSeverityFromMyAdaptClick="";this.TargetLocation="";this.TabName="";this.LeftTab="";this.NavigationText="";this.url="";this.CookiesExpiryDays="1";this.CustomerStatus="";this.NetworkAccounts=""}var __acSessionObject=new AcSessionObject,isOpera=navigator.userAgent.indexOf("Opera")>-1,isIE=navigator.userAgent.indexOf("MSIE")>1&&!isOpera,isMoz=navigator.userAgent.indexOf("Mozilla/5.")==0&&!isOpera,JURLOpened=document.URL,JURLLength=document.URL.length,hasQueryString=document.URL.indexOf("?");JTabName=document.URL.substring(hasQueryString+9,JURLOpened.length);if(JTabName.indexOf("&")>=0)JTabName=JTabName.substring(0,JTabName.indexOf("&"));if(JTabName.indexOf("/")<0)__acSessionObject.TabName=JTabName;else JTabName="Dashboard";document.write('<script type="text/javascript" src="/ac/JScripts/Common/ACCookie.js"><\/script>');function HideAllPopup(){try{AdaptClickJS.ACPopupHide==undefined&&AdaptClickJS.ACPopupHide.registerClass("AdaptClickJS.ACPopupHide");_acPopup=new AdaptClickJS.ACPopupHide;_acPopup.HideAllVisiblePopup()}catch(err){}}function HidePopup(bodyEvent){try{if(navigator.appName=="Netscape"){AdaptClickJS.ACPopupOnMozilla==undefined&&AdaptClickJS.ACPopupOnMozilla.registerClass("AdaptClickJS.ACPopupOnMozilla");_acPopup=new AdaptClickJS.ACPopupOnMozilla;_acPopup.HidePopup(bodyEvent)}else if(navigator.appName=="Microsoft Internet Explorer"){AdaptClickJS.ACPopupOnIE==undefined&&AdaptClickJS.ACPopupOnIE.registerClass("AdaptClickJS.ACPopupOnIE");_acPopup=new AdaptClickJS.ACPopupOnIE;_acPopup.HidePopup(bodyEvent)}}catch(err){}}function SetBreadCrumbText(){JstrBCrumb="";if(__acSessionObject.TabName=="My Account")JstrBCrumb=SetBreadCrumbMyAccount(__acSessionObject.TabName);if(JstrBCrumb!=null)if($get("divBreadCrumb")!=null)$get("divBreadCrumb").innerHTML=JstrBCrumb}function SetBreadCrumbMyAccount(){var _manageCrumb="",crumb="";if(window.location.href.toUpperCase().indexOf("MYACCOUNT")!=-1)crumb="";else if(window.location.href.toUpperCase().indexOf("NEWSLETTERS")!=-1)crumb="Newsletters";else if(window.location.href.toUpperCase().indexOf("ACCOUNTINFORMATION")!=-1)crumb="Account Information";else if(window.location.href.toUpperCase().indexOf("UPDATEPASSWORD")!=-1)crumb="Change Password";else if(window.location.href.toUpperCase().indexOf("DEACTIVATE")!=-1)crumb="Deactivate Account";else if(window.location.href.toUpperCase().indexOf("BILLINGHISTORY")!=-1)crumb="Invoices & Receipts";else if(window.location.href.toUpperCase().indexOf("BILLINGINFORMATION")!=-1)crumb="Billing Information";else if(window.location.href.toUpperCase().indexOf("BILLINGCONFIRMATION")!=-1)crumb='<a href="BillingInformation.aspx" >Update Billing Information</a> > Billing Information';else if(window.location.href.toUpperCase().indexOf("PRICINGINFORMATION")!=-1)crumb="View Pricing Information";else if(window.location.href.toUpperCase().indexOf("RECEIPTINVOICE")!=-1)crumb='<a href="BillingHistory.aspx">Invoices & Receipts</a> > Details';else if(window.location.href.toUpperCase().indexOf("ACCOUNTCONFIRMATION")!=-1)crumb='<a href="AccountInformation.aspx" >Update Account Information</a> > Account Information';if(window.location.href.toUpperCase().indexOf("MYACCOUNT")!=-1){_manageCrumb='<div id ="'+__acSessionObject.TabName+'"  style="float:left">';_manageCrumb=_manageCrumb+__acSessionObject.TabName+"</div>"}else{_manageCrumb='<div id ="'+__acSessionObject.TabName+'"  style="float:left">';_manageCrumb=_manageCrumb+'<a href="MyAccount.aspx" >My Account</a></div>&nbsp;>&nbsp;<span>'+crumb+"</span>"}return _manageCrumb}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=_nrcns}document.oncontextmenu=_nrcie;if(document.layers){document.captureEvents(Event.KEYPRESS);document.onkeypress=_stopApostrophe}function _stopApostrophe(e){keychar=String.fromCharCode(e.keyCode);if(keychar=="'")return false}function _nrcie(){return false}function _nrcns(e){if(e.which==2||e.which==3)return false}if(document.layers){document.captureEvents(Event.KEYDOWN);document.onkeydown=_ncb}function _ncb(){if(navigator.appName=="Microsoft Internet Explorer")clipboardData.clearData();else navigator.appName=="Netscape"}function SetTextLengthForAccountName(accountName,selectedTab){if(selectedTab==true){if(accountName.length>8)accountName=accountName.substring(0,6)+"..."}else if(accountName.length>7)accountName=accountName.substring(0,6)+"...";return accountName}function commaSeparate(number1){var number="";number+=number1;var isNegative="false";if(number!=null){if(number.charAt(0)=="-"){number=number.substring(1);isNegative="true"}else{number=number;isNegative="false"}for(i=0;i<number.length;i++)if(number.charCodeAt(i)>=48&&number.charCodeAt(i)<=57||number.charAt(i)==".")validation="true";else{validation="false";return number}number+="";iLen=number.length;position=number.indexOf(".");if(position>-1)iLen=position;finalNumber="";finalNumber=number.substring(iLen,number.length);for(var i=iLen-1;i>=0;i--)if((iLen-i-1)%3==0&&i!=iLen-1)finalNumber=number.charAt(i)+","+finalNumber;else finalNumber=number.charAt(i)+finalNumber;if(isNegative=="true")finalNumber="-"+finalNumber;return finalNumber}else return number}function AddCss(cssPath){var l=document.createElement("link");l.setAttribute("type","text/css");l.setAttribute("rel","stylesheet");l.setAttribute("href",cssPath);l.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(l)}function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){curleft+=obj.offsetLeft;curtop+=obj.offsetTop}}return[curleft,curtop]}function getNumericMonth(monthName){switch(monthName.toUpperCase()){case"JAN":return 1;case"FEB":return 2;case"MAR":return 3;case"APR":return 4;case"MAY":return 5;case"JUN":return 6;case"JUL":return 7;case"AUG":return 8;case"SEP":return 9;case"OCT":return 10;case"NOV":return 11;case"DEC":return 12}}function format(month){if(month<10)month="0"+month;return month}function DecidePageForManageTab(accountName,campaignName,adGroupName){var page="";if(campaignName==""&&adGroupName=="")page="Account";else if(adGroupName=="")page="Campaign";else page="AdGroup";return page}function SetBreadCrumbTextLength(text,page,nwAccountNameLength){var textLength=0;textLength=text.length;if(page=="Dashboard"||page=="Account"||page=="Act"||page=="Analyze"||page=="MyClickable"){if(textLength>60+nwAccountNameLength)text=text.substring(0,58+nwAccountNameLength)+"..."}else if(page=="Campaign"){if(textLength>32+nwAccountNameLength)text=text.substring(0,30+nwAccountNameLength)+"..."}else if(page=="AdGroup")if(textLength>22+nwAccountNameLength)text=text.substring(0,20+nwAccountNameLength)+"...";return text}function SetPageHeaderTextLength(text){var textLength=0;textLength=text.length;if(textLength>30)text=text.substring(0,28)+"...";return text}function SetToolTipForHeader(){if(__acSessionObject.TabName=="AccountPreferences"){$get("PageHeader").title="";return}if(__acSessionObject.TabName=="AllTab"){$get("PageHeader").title="";return}if(__acSessionObject.TabName=="Help"){$get("PageHeader").title="";return}if(__acSessionObject.TabName=="Report"){$get("PageHeader").title=__acSessionObject.NwAccountName;return}if(__acSessionObject){var page="";page=DecidePageForManageTab(__acSessionObject.NwAccountName,__acSessionObject.CampaignName,__acSessionObject.AdGroupName)}else return;if(page=="Account")$get("PageHeader").title=__acSessionObject.NwAccountName;else if(page=="Campaign")$get("PageHeader").title=__acSessionObject.CampaignName;else if(page=="AdGroup")$get("PageHeader").title=__acSessionObject.AdGroupName;else $get("PageHeader").title=__acSessionObject.NwAccountName}function setPopupInterval(objPopup,divPopup){this.timeOutId=window.setTimeout("setPopupDisplay("+objPopup+",'"+divPopup+"')",5)}function setPopupDisplay(objPopup,divPopup){var IE=document.all?true:false;!IE&&document.captureEvents(Event.MOUSEMOVE);document.onmousemove=getMouseXY;var tempX=0,tempY=0;function getMouseXY(e){var left,top,leftDiff,topDiff,botDiff,rightDiff;if(IE){tempX=event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;tempY=event.clientY+document.documentElement.scrollTop+document.body.scrollTop;left=$get(divPopup).style.pixelLeft;top=$get(divPopup).style.pixelTop}else{tempX=e.pageX;tempY=e.pageY;left=$get(divPopup).offsetLeft;top=$get(divPopup).offsetTop}if(tempX<0)tempX=0;if(tempY<0)tempY=0;if(divPopup=="crumbPop"){leftDiff=100;topDiff=20;rightDiff=500;botDiff=220}else{leftDiff=50;topDiff=20;rightDiff=110;botDiff=100}tempX<left-leftDiff&&terminatePopupDisplay(objPopup,divPopup);tempY<top-topDiff&&terminatePopupDisplay(objPopup,divPopup);tempX>left+rightDiff&&terminatePopupDisplay(objPopup,divPopup);tempY>top+botDiff&&terminatePopupDisplay(objPopup,divPopup)}}function terminatePopupDisplay(objPopup,divPopup){objPopup.SetPopupOff($get(divPopup));document.onmousemove="";window.clearTimeout(this.timeOutId)}function ShowErrorPopUpWthCord(message,left,top){if($get("divErrorPopUp").style.display=="none"){$get("errorMessage").innerHTML=message;$get("divErrorPopUp").style.display="block";$get("divErrorPopUp").style.left=left+"px";$get("divErrorPopUp").style.top=top+"px";var width=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(width>235)$get("divErrorPopUp").style.width="235px"}}function ShowFullNameInTitle(obj,msg){for(var temp="",cnt=0;cnt<msg.length;cnt++)if(cnt!=0&&cnt%30==0&&cnt!=msg.length-1){if(msg.substr(cnt-1,1)!=" "&&msg.substr(cnt,1)=="&")temp=temp+" ";temp=temp+"<BR>"+msg.substr(cnt,1);if(msg.substr(cnt,1)=="&"&&msg.substr(cnt+1,1)!=" ")temp=temp+" "}else{if(msg.substr(cnt-1,1)!=" "&&msg.substr(cnt,1)=="&")temp=temp+" ";temp=temp+msg.substr(cnt,1);if(msg.substr(cnt,1)=="&"&&msg.substr(cnt+1,1)!=" ")temp=temp+" "}msg=temp;if(msg.length<=5)msg="&nbsp;&nbsp;&nbsp;&nbsp;"+msg+"&nbsp;&nbsp;&nbsp;&nbsp;";var test=Sys.UI.DomElement.getBounds(obj),Left="",Top="";if(window.location.pathname.indexOf("MCCAccount.aspx")!=-1||window.location.pathname.indexOf("StarterEdition.aspx")!=-1||window.location.pathname.indexOf("LinkClient.aspx")!=-1||window.location.pathname.indexOf("VerifyRequest.aspx")!=-1){if(window.location.pathname.indexOf("LinkClient.aspx")!=-1){if(zoomMsg1=="Zoom In"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(77);Top=Sys.UI.DomElement.getBounds(obj).y+Number(35)}else if(zoomMsg1=="Zoom InYahoo"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(216);Top=Sys.UI.DomElement.getBounds(obj).y+Number(88)}else if(zoomMsg1=="Zoom InMasterID"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(216);Top=Sys.UI.DomElement.getBounds(obj).y+Number(88)}else if(zoomMsg1=="Zoom OutYahoo"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(300);Top=Sys.UI.DomElement.getBounds(obj).y+Number(185)}else if(zoomMsg1=="Zoom OutMasterID"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(300);Top=Sys.UI.DomElement.getBounds(obj).y+Number(185)}else if(zoomMsg1=="Zoom Out"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(300);Top=Sys.UI.DomElement.getBounds(obj).y+Number(213)}}else if(window.location.pathname.indexOf("VerifyRequest.aspx")!=-1)if(zoomMsg=="Zoom In"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(286);Top=Sys.UI.DomElement.getBounds(obj).y+Number(159)}else{Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(300);Top=Sys.UI.DomElement.getBounds(obj).y+Number(212)}else if(window.location.pathname.indexOf("MCCAccount.aspx")!=-1)if(zoomMsg=="Zoom In"){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(234);Top=Sys.UI.DomElement.getBounds(obj).y+Number(183)}else{Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(305);Top=Sys.UI.DomElement.getBounds(obj).y+Number(206)}else if(window.location.pathname.indexOf("StarterEdition.aspx")!=-1){if(zoomMsg=="Zoom In"){if(flagZoom==1){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(281);Top=Sys.UI.DomElement.getBounds(obj).y+Number(53)}else if(flagZoom==2){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(292);Top=Sys.UI.DomElement.getBounds(obj).y+Number(163)}else if(flagZoom==3){Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(286);Top=Sys.UI.DomElement.getBounds(obj).y+Number(121)}}else{Left=Sys.UI.DomElement.getBounds(obj).x+test.width-Number(320);Top=Sys.UI.DomElement.getBounds(obj).y+Number(245)}if(flagZoom==1){$get("errorMessageStarter")&&Sys.UI.DomElement.removeCssClass($get("errorMessageStarter"),"errorcontent");$get("errorMessageStarter")&&Sys.UI.DomElement.addCssClass($get("errorMessageStarter"),"ntext_blue1")}}$get("errorMessageStarter")&&Sys.UI.DomElement.removeCssClass($get("errorMessage"),"errorcontent");$get("errorMessageStarter")&&Sys.UI.DomElement.addCssClass($get("errorMessage"),"ntext_blue1");msg=zoomMsg}else{Left=Sys.UI.DomElement.getBounds(obj).x+Sys.UI.DomElement.getBounds(obj).width-Number(25);Top=Sys.UI.DomElement.getBounds(obj).y+Number(20);$get("errorMessageStarter")&&Sys.UI.DomElement.removeCssClass($get("errorMessage"),"errorcontent");$get("errorMessageStarter")&&Sys.UI.DomElement.addCssClass($get("errorMessage"),"tabTitlePopUp")}if(parseInt(Left)<0){Left=20;$get("nipple").style.left="5px"}else if(parseInt(Left)<15){Left=50;$get("nipple").style.left="5px"}if(window.location.pathname.indexOf("StarterEdition.aspx")!=-1)if(flagZoom==1){if($get("errorMessage"))$get("errorMessage").innerHTML=msg;if($get("divErrorPopUp"))$get("divErrorPopUp").style.display="block";if(isMoz==true){if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left-1+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top-1+"px"}else{if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top+"px"}if($get("errorMessage"))$get("errorMessageStarter").innerHTML=msg;if($get("divErrorPopUp"))$get("divErrorPopUpStarter").style.display="block";if(isMoz==true){if($get("divErrorPopUp"))$get("divErrorPopUpStarter").style.left=Left+13+"px";if($get("divErrorPopUp"))$get("divErrorPopUpStarter").style.top=Top+186+"px"}else{if($get("divErrorPopUp"))$get("divErrorPopUpStarter").style.left=Left+13+"px";if($get("divErrorPopUp"))$get("divErrorPopUpStarter").style.top=Top+186+"px"}}else{if($get("errorMessage"))$get("errorMessage").innerHTML=msg;if($get("divErrorPopUp"))$get("divErrorPopUp").style.display="block";if(isMoz==true){if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left-1+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top-1+"px"}else{if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top+"px"}var width=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(width>235)if($get("divErrorPopUp"))$get("divErrorPopUp").style.width="235px"}else{if($get("errorMessage"))$get("errorMessage").innerHTML=msg;if($get("divErrorPopUp"))$get("divErrorPopUp").style.display="block";if(isMoz==true){if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left-1+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top-1+"px"}else{if($get("divErrorPopUp"))$get("divErrorPopUp").style.left=Left+"px";if($get("divErrorPopUp"))$get("divErrorPopUp").style.top=Top+"px"}var width=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(width>235)if($get("divErrorPopUp"))$get("divErrorPopUp").style.width="235px"}}function ShowErrorPopUp(message,controlId){if(controlId==null)return;var Obj="";Obj=$get(controlId);if(navigator.appName=="Netscape")if(controlId.substring(0,3)=="lst")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(170);else if(controlId.substring(0,5)=="txtAR")var left=Sys.UI.DomElement.getBounds(Obj).x+Number(2),top=Sys.UI.DomElement.getBounds(Obj).y+Number(131);else if(controlId.substring(0,3)=="txt")var left=Sys.UI.DomElement.getBounds(Obj).x,scrollTop=document.body.scrollTop,top=Sys.UI.DomElement.getBounds(Obj).y+Number(29)+scrollTop;else if(controlId.substring(0,3)=="cmb")var left=Sys.UI.DomElement.getBounds(Obj).x,scrollTop=document.body.scrollTop,top=Sys.UI.DomElement.getBounds(Obj).y+Number(27)+scrollTop;else if(controlId.substring(0,3)=="Key")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(26);else if(controlId.substring(0,9)=="imgVerify")var left=Sys.UI.DomElement.getBounds(Obj).x-Number(17),top=Sys.UI.DomElement.getBounds(Obj).y+Number(12);else if(controlId.substring(0,3)=="end")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(29);else if(controlId.substring(0,5)=="Text1")var left=Sys.UI.DomElement.getBounds(Obj).x-Number(8),top=Sys.UI.DomElement.getBounds(Obj).y+Number(25);else var scrollTop=document.body.scrollTop,left=Sys.UI.DomElement.getBounds(Obj).x-Number(8),top=Sys.UI.DomElement.getBounds(Obj).y+Number(15)+scrollTop;else if(controlId.substring(0,3)=="lst")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(164);else if(controlId.substring(0,5)=="txtAR")var left=Sys.UI.DomElement.getBounds(Obj).x-Number(4),top=Sys.UI.DomElement.getBounds(Obj).y+Number(125);else if(controlId.substring(0,3)=="txt")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(27);else if(controlId.substring(0,3)=="cmb")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(25);else if(controlId.substring(0,3)=="Key")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(26);else if(controlId.substring(0,9)=="imgVerify")var left=Sys.UI.DomElement.getBounds(Obj).x-Number(17),top=Sys.UI.DomElement.getBounds(Obj).y+Number(13);else if(controlId.substring(0,3)=="end")var left=Sys.UI.DomElement.getBounds(Obj).x,top=Sys.UI.DomElement.getBounds(Obj).y+Number(27);else if(controlId.substring(0,5)=="Text1")var left=Sys.UI.DomElement.getBounds(Obj).x-Number(8),top=Sys.UI.DomElement.getBounds(Obj).y+Number(25);else var left=Sys.UI.DomElement.getBounds(Obj).x-Number(16),top=Sys.UI.DomElement.getBounds(Obj).y+Number(12);if($get("divErrorPopUp"))if($get("divErrorPopUp").style.display=="none"){if($get("nipple")!=null){Sys.UI.DomElement.removeCssClass($get("nipple"),"nippleright");Sys.UI.DomElement.addCssClass($get("nipple"),"nippleleft")}$get("errorMessage").innerHTML=message;$get("divErrorPopUp").style.position="absolute";$get("divErrorPopUp").style.display="block";$get("divErrorPopUp").style.left=Number(left)-Number(3)+"px";$get("divErrorPopUp").style.top=top+"px";var width=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(width>235)$get("divErrorPopUp").style.width="235px";if(window.location.pathname.indexOf("VerifyRequest.aspx")!=-1)$get("divErrorPopUp").style.width="350px"}}function ShowErrorPopUpInline(message,objElement){if($get("divErrorPopUp")){$get("divErrorPopUp").style.left="0px";$get("divErrorPopUp").style.top="0px";$get("divErrorPopUp").style.width="0px";$get("divErrorPopUp").style.width="auto";var left=Sys.UI.DomElement.getBounds(objElement).x,top=Sys.UI.DomElement.getBounds(objElement).y+Number(20),right=0,popUpWidth=0,isToolBoxControl=ToCheckParentNode(objElement);if($get("divErrorPopUp").style.display=="none"){$get("errorMessage").innerHTML=message;$get("divErrorPopUp").style.display="block";popUpWidth=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(popUpWidth>235){$get("divErrorPopUp").style.width="235px";popUpWidth=235}if(isToolBoxControl){Sys.UI.DomElement.removeCssClass($get("nipple"),"nippleleft");Sys.UI.DomElement.addCssClass($get("nipple"),"nippleright");var inputWidth=Sys.UI.DomElement.getBounds(objElement).width;right=left+inputWidth;$get("divErrorPopUp").style.left=right-popUpWidth+"px";$get("divErrorPopUp").style.top=top+"px"}else{Sys.UI.DomElement.removeCssClass($get("nipple"),"nippleright");Sys.UI.DomElement.addCssClass($get("nipple"),"nippleleft");left=left-Number(3);top=top;$get("divErrorPopUp").style.left=left+"px";$get("divErrorPopUp").style.top=top+"px"}}}}function HideErrorPopUp(){if(window.location.pathname.indexOf("StarterEdition.aspx")!=-1){$get("divErrorPopUpStarter").style.display="none";$get("divErrorPopUpTop").style.display="none"}if($get("divErrorPopUpTop"))$get("divErrorPopUpTop").style.display="none";if($get("divErrorPopUp"))$get("divErrorPopUp").style.display="none";if($get("errorMessage")){Sys.UI.DomElement.removeCssClass($get("errorMessage"),"tabTitlePopUp");Sys.UI.DomElement.addCssClass($get("errorMessage"),"errorcontent")}if($get("nipple")!=null){Sys.UI.DomElement.removeCssClass($get("nipple"),"nippleright");Sys.UI.DomElement.addCssClass($get("nipple"),"nippleleft")}}function HideErrorPopUphelpPopTopRight(){$get("helpPopTopRight").style.display="none"}function HideAdaptMapPopUp(){$get("toolTipPopUp").style.display="none";Sys.UI.DomElement.removeCssClass($get("errorMessage"),"tabTitlePopUp");Sys.UI.DomElement.addCssClass($get("errorMessage"),"errorcontent")}function ToCheckParentNode(objElement){var returnTag=false,ptNode=objElement.parentNode;if(ptNode!=null)try{while(ptNode.id!="child")if(ptNode!=null&&ptNode!="undefined"){ptNode=ptNode.parentNode;if(ptNode.id=="toolsPanel"){returnTag=true;break}}}catch(err){}return returnTag}var g_popup=null;function showHelpPopUp(div,HelpPage,Title){var DivToOpen=eval("document.getElementById('"+div+"')");g_popup=new PopupLayer(DivToOpen,"Set Winodw title here.");g_popup.show();alignLayer();g_popup.open(HelpPage,Title)}function alignLayer(){g_popup.Move("180","20")}function PauseComp(millis){var date=new Date,curDate=null;do curDate=new Date;while(curDate-date<millis)}function NavigateToSocial(navigateOn){window.location.href=navigateOn}var LightBoxControlD_NewAccount=[];function CreateNewAccount(elementId,OpenNetwork){if(restrictNavigationForNoCC()==true)return;var OnCancelURL="CloseWindow";__aCMasterCookie.deleteCookie("WizardState","/ac");if(LightBoxControlD_NewAccount[0]==null)LightBoxControlD_NewAccount[0]=$create(AdaptClick.LightBoxLink,{_url:"/ac/signup/CreateClickableAcc.aspx?wizardType=ClickableSignUpNext&OpenNetwork="+OpenNetwork,_height:"415",_width:"622",_boxElementId:"outerLightBox",_maskElementId:"pageMask",_boxClass:"lightBox",_maskClass:"pageMask",_linkHover:true},{},null,$get(elementId));LightBoxControlD_NewAccount[0].set_url("/ac/signup/CreateClickableAcc.aspx?OnCancelURL1="+OnCancelURL+"&wizardType=ClickableSignUp2&OpenNetwork="+OpenNetwork)}function adjustIFrameSize(iframeWindow){var iframeElement,height,width;if(iframeWindow.document.height){height=iframeWindow.document.height;width=iframeWindow.document.width}else if(iframeWindow.document.body.clientHeight){height=iframeWindow.document.body.clientHeight;width=iframeWindow.document.body.clientWidth}else if(document.all)if(iframeWindow.document.compatMode&&iframeWindow.document.compatMode!="BackCompat"){height=iframeWindow.document.documentElement.scrollHeight+5;width=iframeWindow.document.documentElement.scrollWidth+5}else{height=iframeWindow.document.body.scrollHeight+5;width=iframeWindow.document.body.scrollWidth+5}iframeElement=$get("lightboxIframe");if(iframeElement){iframeElement.style.height=height+"px";iframeElement.style.width=width+"px"}}function OnSignupErrorCallBack(){setStatusOFF();var supportPhoneNo="";if(typeof CustomerSupportPhone!="undefined")supportPhoneNo=CustomerSupportPhone;snifferMessage="We were not able to process your request.  Please contact support Toll Free at "+supportPhoneNo+".";ShowStripWithHTML(snifferMessage);parent.adjustIFrameSize&&parent.adjustIFrameSize(window)}function ShowStripWithHTML(HTMLMessage){$get("tr_onerror_sniffer").style.display="block";$get("signup_strip_message").innerHTML=HTMLMessage}function ignoreSpaces(string){var temp="";string=""+string;splitstring=string.split(" ");for(i=0;i<splitstring.length;i++)temp+=splitstring[i];return temp}function ShowErrorPopupRight(message,objElement){if($get("divErrorPopUp")){$get("divErrorPopUp").style.left="0px";$get("divErrorPopUp").style.top="0px";$get("divErrorPopUp").style.width="0px";$get("divErrorPopUp").style.width="auto";var left=Sys.UI.DomElement.getBounds($get(objElement)).x,top=Sys.UI.DomElement.getBounds($get(objElement)).y+Number(27),right=0,popUpWidth=0;$get("errorMessage").innerHTML=message;$get("divErrorPopUp").style.display="block";popUpWidth=Sys.UI.DomElement.getBounds($get("divErrorPopUp")).width;if(popUpWidth>235){$get("divErrorPopUp").style.width="235px";popUpWidth=235}Sys.UI.DomElement.removeCssClass($get("nipple"),"nippleleft");Sys.UI.DomElement.addCssClass($get("nipple"),"nippleright");var inputWidth=Sys.UI.DomElement.getBounds($get(objElement)).width;right=left+inputWidth;$get("divErrorPopUp").style.left=right-popUpWidth+"px";$get("divErrorPopUp").style.top=top+"px"}}function fn_setStatusON(){setStatusON("Loading...");parent.adjustIFrameSize&&parent.adjustIFrameSize(window)}function fn_setStatusONWithMessage(msg){setStatusON(msg);parent.adjustIFrameSize&&parent.adjustIFrameSize(window)}function fn_setStatusOFF(){setStatusOFF();parent.adjustIFrameSize&&parent.adjustIFrameSize(window)}function headerColor(eventContext,element){element.className="linkWhiteHover"}function rollovercolor(eventContext,element){element.className="linkWhite"}function ShowProgressImg(){$get("ImgProgress").style.display="block";$get("ImgProgress").style.position="fixed";$get("ImgProgress").style.left="45%";$get("ImgProgress").style.top="250px"}function HideProgressImg(){$get("ImgProgress").style.display="none"}function showBhelp(){var source;if(_wizard.wizardName()=="CreateNewPlacementCampaign")source="../Help/HelpAddNewPalcementCampaign.htm";if(_wizard.wizardName()=="CreateNewCampaign")source="../Help/HelpAddNewCampaign.htm";if(_wizard.wizardName()=="CreatePlacementAdgroup"||_wizard.wizardName()=="CreateNewAdgroup")source="../Help/HelpAddNewAdGroup.htm";if(_wizard.wizardName()=="CreateNewAd"||_wizard.wizardName()=="GenerateMultipleAds")source="../Help/HelpAddNewAd.htm";if(_wizard.wizardName()=="AddNewKeyword"||_wizard.wizardName()=="AddKeywordQuick")source="../Help/HelpAddNewKeyword.htm";if(_wizard.wizardName()=="EditNegativeKeyword")source="../Help/HelpEditNegativeKeyword.htm";if(_wizard.wizardName()=="RealignKeyword")source="../Help/HelpRealignKeyword.htm";if(_wizard.wizardName()=="AddPlacement")source="../Help/HelpAddPlacement.htm";parent.showHelpPopUp&&parent.showHelpPopUp("PopupMasterContainer",source,"Clickable Help")}function restrictNavigationForNoCC(){var customerStatus=__aCMasterCookie.getCookieValue("userCookie","CustomerStatus"),LowSpendCustomer=__aCMasterCookie.getCookieValue("userCookie","LowSpendCustomer");return customerStatus.trim()==EnmCustomerStatus.CustomerNoCreditCard||customerStatus.trim()==EnmCustomerStatus.ProspectTrialLockout||customerStatus.trim()==EnmCustomerStatus.CustomerManualNoCC||customerStatus.trim()==EnmCustomerStatus.ProspectManualNoCC||LowSpendCustomer=="True"?true:false}function putMask(){if(!$get("actpageMask"))return false;if(!$get("msgBoxOuter"))return false;var mask=$get("actpageMask");mask.style.visibility="visible";Sys.UI.DomElement.addCssClass(mask,"pageMask");mask.style.display="block";mask.style.top="0px";mask.style.left="0px";mask.style.position="absolute";mask.style.height=document.documentElement.scrollHeight+10+"px";if(!$get("msgBoxOuter"))return false;var msgBox=$get("msgBoxOuter");msgBox.style.visibility="visible";msgBox.style.display="block";setMessageHeader("Keyword Bulk Edit");setMessageBoxText("You have opened the 'Keyword Bulk Edit Tool' in another window. Please close that window to resume working in 'Manage' in this window. Any changes made in the 'Keyword Bulk Edit Tool' will be synchronized to 'Manage' once you close it. To go to the tool  <a href='javascript:void(0);' onclick='FocusManageAll();'>click here</a>. To close the tool <a href='javascript:void(0);' onclick='CloseManageAll();'>click here</a>.");return true}function hideMask(){if(!$get("actpageMask"))return false;var mask=$get("actpageMask");mask.style.visibility="hidden";mask.style.display="none";if(!$get("msgBoxOuter"))return false;var msgBox=$get("msgBoxOuter");msgBox.style.visibility="hidden";msgBox.style.display="none"}function setMessageHeader(messageHeader){$get("spHeader").innerHTML=messageHeader}function setMessageBoxText(messageText){$get("msgBoxMessageText").innerHTML=messageText}function OpenClickablePopup(pageName,partnerLocation){var left=window.parent.document.body.offsetWidth/2-550/2,strURL="";if(pageName=="TermsOfService"){strURL=partnerLocation+"Legal/TOS/TermsOfService.html";window.open(strURL,"Window1","menubar=no,width=570,height=280,left="+left+", scrollbars=yes, top=300, toolbar=no, resizable=yes")}if(pageName=="PrivacyPolicy"){strURL=partnerLocation+"Legal/PrivacyPolicy/PrivacyPolicy.html";window.open(strURL,"Window2","menubar=no,width=570,height=350,left="+left+", scrollbars=yes, top=250, toolbar=no, resizable=yes")}if(pageName=="Addon"){strURL="/ac/AccountPreferences/ffAddon.aspx";window.open(strURL,"Window2","width=750,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizabe=no,scrollbars=no, left = 275, top = 215")}}function renderWizardModalPopup(height,width,url){$get("wizardiframe").src=url;$get("wizardiframe").style.width=width+"px";$get("wizardiframe").style.height=height+"px";$find(wizardModalPopup).show()};
