/* Version: 12.0.3208 */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ function G(o) { if(o&&typeof(o)=="string")o=document.getElementById?document.getElementById(o):null; return o&&typeof(o)=="object"?o:null; } function GS(o) { o=G(o); return o?o.style:null; } function GDsply(o) { o=GS(o); return o?o.display:""; } function SDsply(o,d) { o=GS(o); if(o)o.display=d; } function SDsplyH(o) { SDsply(o,"none"); } function SDsplyS(o) { SDsply(o,""); } function TDsply(o,d) { SDsply(o,(GDsply(o)==d?"none":d)); } function FVis(o) { return GDsply(o)!="none"; } function SWdth(o,d) { o=GS(o); if(o)o.width=d; } function SWdthF(o) { SWdth(o,"768"); } function SWdthNF(o) { SWdth(o,"100%"); } function TDB(o) { TDsply(o,"block"); return false; } function FSClk(e) { return e&&e.button<=1&&e.shiftKey; } function FSEnt(e) { return e&&e.keyCode==13&&e.shiftKey; } function GHlp(u) { var strScrollBars = (window.navigator.appName.toUpperCase().indexOf("NETSCAPE") >= 0) ? ",scrollbars=1" : "" ; window.open(u, '_hlp011', 'toolbar=0,status=0,menubar=0' + strScrollBars + ',resizable=1,width=260,height=' + Math.round(window.screen.availHeight*2/3)); return false; } function ChkSrchTxt(wz) { var ws=/^[\s]*$/; return wz&&!ws.test(wz); } function FocSrchTxt(o) { if(o&&o.value)o.select(); } function TrySearch(e) { if(oSrchFrm&&SelectAction()) { try {external.AutoCompleteSaveForm(oSrchFrm);} catch (err) {} oSrchFrm.submit(); } if(e&&e.stopPropagation)e.stopPropagation(); return false; } function EntTextbox(e) { if(e&&e.keyCode==13)return TrySearch(e); return true; } function TbrGet(tb) { tb=G(tb); if(tb&&tb.tagName=="TABLE") for(var tbTable=tb.rows[0].cells[0].firstChild; tbTable; tbTable=tbTable.nextSibling) if(tbTable.tagName=="TABLE")return tbTable.rows[0]; return null; } function FCIIRange(tr,i) { return tr&&tr.tagName=="TR"&&i!=null&&i>=0&&i> 6) + 192).toString(16).toUpperCase(); strEncoded += "%"; strEncoded += ( (iChr & 63) + 128).toString(16).toUpperCase(); } else { strEncoded += "%"; strEncoded += ( (iChr >> 12) + 224).toString(16).toUpperCase(); strEncoded += "%"; strEncoded += ( ((iChr >> 6) & 63) + 128).toString(16).toUpperCase(); strEncoded += "%"; strEncoded += ( (iChr & 63) + 128).toString(16).toUpperCase(); } } return strEncoded; } function StrReplaceParam(strUrl, strParam, strNewValue) { var strUpperUrl = strUrl.toUpperCase(); var strUpperParam = strParam.toUpperCase(); var iStart = strUpperUrl.indexOf('?' + strUpperParam); if (iStart < 0) iStart = strUpperUrl.indexOf('&' + strUpperParam); if (iStart < 0) return strUrl; var iEnd = strUpperUrl.indexOf('&', iStart+1); if (iEnd < 0) iStart--; var strRet = strUrl.substring(0, iStart+1); if (iEnd >= 0) strRet += strUrl.substring(iEnd+1, strUrl.length); if (typeof(strNewValue) != 'undefined' && null != strNewValue && strNewValue.length > 0) { var strSeparator = strRet.indexOf('?') < 0 ? '?' : '&'; if (strRet.charAt(strRet.length-1) == strSeparator) strSeparator=''; strRet += strSeparator + strParam + '=' + strNewValue; } return strRet; } function CheckElementID(strID) { if ('undefined' == typeof(document.getElementById(strID))) return false; if (null == document.getElementById(strID)) return false; return true; } function FeedbackWizCheckIDs() { if (CheckElementID('divFeedbackPanel1') && (CheckElementID('divFeedbackPanel2') || fIsSimpleFeedbackWiz) && (CheckElementID('divFeedbackPanel3') || fIsSimpleFeedbackWiz) && CheckElementID('imgRatingStar1') && CheckElementID('imgRatingStar2') && CheckElementID('imgRatingStar3') && CheckElementID('imgRatingStar4') && CheckElementID('imgRatingStar5') && (CheckElementID('tbFeedbackText') || fIsSimpleFeedbackWiz)) { return true; } return false; } function NavigateIFrameIE(strIFrameId, strLocation) { var ifrmSubmitTarget = frames[strIFrameId]; if (typeof(ifrmSubmitTarget) != 'undefined' && null != ifrmSubmitTarget) ifrmSubmitTarget.location.replace(strLocation); } function NavigateIFrameNetscape(strIFrameId, strLocation) { var ifrmSubmitTarget = document.getElementById(strIFrameId); if (typeof(ifrmSubmitTarget) != 'undefined' && null != ifrmSubmitTarget) { if (typeof(ifrmSubmitTarget.contentWindow) != 'undefined') ifrmSubmitTarget.contentWindow.location.replace(strLocation); else ifrmSubmitTarget.src = strLocation; } } function NavigateIFrame(strIFrameId, strLocation) { if (window.navigator.appName.toUpperCase().indexOf("NETSCAPE") >= 0) NavigateIFrameNetscape(strIFrameId, strLocation); else NavigateIFrameIE(strIFrameId, strLocation); } function FeedbackWizShowFirstPane() { document.getElementById('divFeedbackPanel1').style.display = 'block'; document.getElementById('divFeedbackPanel2').style.display = 'none'; document.getElementById('divFeedbackPanel3').style.display = 'none'; iFeedbackWizStarRated = 0; iRvasap = 0; FeedbackWizMouseOutStar(); FeedbackWizUpdateCounter(); } function FeedbackWizShowThankYouPane() { document.getElementById('divFeedbackPanel1').style.display = 'none'; document.getElementById('divFeedbackPanel2').style.display = 'none'; document.getElementById('divFeedbackPanel3').style.display = 'block'; } function FeedbackWizShowPane(iPane, iSubPane) { for (var i=1; i <= 4; i++) { var strPane = 'divFeedbackPanel' + i; if (!CheckElementID(strPane)) continue; if (i != iPane) { document.getElementById(strPane).style.display = 'none'; continue; } document.getElementById(strPane).style.display = 'block'; if (typeof(iSubPane) == 'undefined') continue; for (var j=1; j <= 3; j++) { var strSubPane = strPane + 'Sub' + j; if (!CheckElementID(strSubPane)) continue; if (j == iSubPane) document.getElementById(strSubPane).style.display = 'block'; else document.getElementById(strSubPane).style.display = 'none'; } } if (2 == iPane) { var tbFeedback = document.getElementById('tbFeedbackText'); if (null != tbFeedback && typeof(tbFeedback) != 'undefined') tbFeedback.focus(); } if (1 == iPane && iSubPane < 0) iRvasap = 0; } function FeedbackWizDoSubmit(fChangePanel) { if (typeof(window.navigator) != 'undefined' && typeof(window.navigator.onLine) != 'undefined') { if (!window.navigator.onLine) { alert(strYouAreNotOnlineErrMsg); return; } } if (!FeedbackWizCheckIDs()) return; if ('undefined' == typeof(strPageAssetId) || null == strPageAssetId || 0 >= sd = ""; if (1 == iRvasap) { strAPFeedbackId = GetCookie("apfbkid", ""); if (null != strAPFeedbackId && 36 == strAPFeedbackId.length) { strAPFeedbackId = "&" + "apfbkid" + "=" + EncodeUrlComponent(strAPFeedbackId); } else { strAPFeedbackId = ""; } mSetCookie("apfbkid", ""); iRvasap = 0; } else { iRvasap = 1; } var strFeedbackUrl = strFeedbackPageUrl + "?rating=" + iRating.toString() + strAPFeedbackId + '&AssetID=' + strPageAssetId + "&AssetVersion=" + strAssetVersion + "&" + strPageLoggingParams; var strComment = ''; if (fComment) { strComment = document.getElementById('tbFeedbackText').value; if (typeof(strComment) == 'undefined') strComment = ''; else if (null == strComment) strComment = ''; strComment = escape(strComment); if (strComment.length > 1024 * 4) strComment = strComment.substring(0, 1024 * 4); } if (strComment.length > 0) document.cookie = 'feedbackComment=' + strComment + ';path=/'; var iSubPanel = 3; if (5 == iRating) iSubPanel = 1; else if (1 == iRating) iSubPanel = 2; var strDelayedCmd = 'FeedbackWizDelayedSubmitAsst("' + strFeedbackUrl + '", ' + (fComment ? '4' : '2') + ', ' + iSubPanel + ');'; window.setTimeout(strDelayedCmd, 100); if (fComment) FeedbackWizShowPane(3, -1); if (1 == iRating || 5 == iRating || 3 == iRating) { var taTextArea = document.getElementById("tbFeedbackText"); if (typeof(taTextArea) == "undefined" || null == taTextArea || typeof(taTextArea.title) == "undefined") { return; } var strSpan = ""; if (5 == iRating) strSpan = "divFeedbackPanel2Sub1"; else if (1 == iRating) strSpan = "divFeedbackPanel2Sub2"; else strSpan = "divFeedbackPanel2Sub3"; var divLabel = document.getElementById(strSpan); if (typeof(divLabel) == "undefined" || null == divLabel || typeof(divLabel.innerHTML) == "undefined" || null == divLabel.innerHTML) { return; } taTextArea.title = divLabel.innerHTML; } } function FeedbackWizDelayedSubmitAsst(strFeedbackUrl, iPanel, iSubPanel) { var fWasOK = true; try { NavigateIFrame('submitTarget', strFeedbackUrl); } catch (e) { fWasOK = false; alert(strCannotSubmitFeedbackErrmsg); FeedbackWizShowPane(1, -1); } if (true == fWasOK) { if (0 != iPanel) { if (4 == iPanel) window.setTimeout('FeedbackWizShowPane(' + iPanel + ', ' + iSubPanel + ');', 1200); else FeedbackWizShowPane(iPanel, iSubPanel); } } else { FeedbackWizShowPane(1, -1); } } function FeedbackWizDelayedSubmit(strFeedbackUrl, fChangePanel) { var fWasOK = true; try { NavigateIFrame('submitTarget', strFeedbackUrl); } catch (e) { fWasOK = false; alert(strCannotSubmitFeedbackErrmsg); FeedbackWizShowFirstPane(); } if (true == fWasOK) { if (fChangePanel) window.setTimeout('FeedbackWizShowThankYouPane();', 1200); } else { FeedbackWizShowFirstPane(); } } function FeedbackWizGenerateFXHeader() { document.write('
 
'); document.write('
 
\n'); } function RgFeedbackWizGetImages() { var imgs = new Array(5); imgs[0] = document.getElementById("imgRatingStar1"); imgs[1] = document.getElementById("imgRatingStar2"); imgs[2] = document.getElementById("imgRatingStar3"); imgs[3] = document.getElementById("imgRatingStar4"); imgs[4] = document.getElementById("imgRatingStar5"); return imgs; } function FeedbackWizUpdateCounter() { goDisplayCount(650, 'tbFeedbackText', 'spnFeedbackCounter', 'btnFeedbackWizSubmit'); } function FeedbackWizUpdateCounterDelay() { if (typeof(window) != 'undefined' && null != window) window.setTimeout("FeedbackWizUpdateCounter()", 25); } function FeedbackWizMouseOverStar(iStar) { if (!FeedbackWizCheckIDs()) return; var imgs = RgFeedbackWizGetImages(); for (var i=0; i < imgs.length; i++) if (fFeedbackWizJustRated) { if (iStar > i) imgs[i].src = "/global/images/ratings/lg_output_full.gif"; else imgs[i].src = "/global/images/ratings/lg_output_empty.gif"; } else { if (iStar > i) imgs[i].src = "/global/images/ratings/lg_input_full.gif"; else imgs[i].src = "/global/images/ratings/lg_output_empty.gif"; } } function FeedbackWizMouseOutStar() { if (!FeedbackWizCheckIDs()) return; fFeedbackWizJustRated = false; var imgs = RgFeedbackWizGetImages(); for (var i=0; i < imgs.length; i++) { if (iFeedbackWizStarRated < 1 || iFeedbackWizStarRated > 5) { imgs[i].src = "/global/images/ratings/lg_output_empty.gif"; } else { if (iFeedbackWizStarRated > i) imgs[i].src = "/global/images/ratings/lg_output_full.gif"; else imgs[i].src = "/global/images/ratings/lg_output_empty.gif"; } } } function CommentOnThisTemplate() { var strNewUrl = strCommentOnThisTemplateLnk; var strAPFeedbackId = GetCookie("apfbkid", ""); if (null != strAPFeedbackId && 36 == strAPFeedbackId.length) strNewUrl += "&" + "apfbkid" + "=" + EncodeUrlComponent(strAPFeedbackId); mSetCookie("apfbkid", ""); location.href = strNewUrl; } function FeedbackWizStarClicked(iStar) { if (!FeedbackWizCheckIDs()) return; if (iFeedbackWizStarRated == iStar) return; iFeedbackWizStarRated = iStar; fFeedbackWizJustRated = true; iRvasap = 0; FeedbackWizUpdateCounter(); var imgs = RgFeedbackWizGetImages(); for (var i=0; i < imgs.length; i++) { if (i == iStar-1) { imgs[i].style.cursor = "default"; imgs[i].alt = rgStrYouRated[i]; } else { imgs[i].style.cursor = "hand"; imgs[i].alt = rgStrClickToRate[i]; } if (iStar > i) imgs[i].src = "/global/images/ratings/lg_output_full.gif"; else imgs[i].src = "/global/images/ratings/lg_output_empty.gif"; } FeedbackWizDoSubmit(false); if (fIsSimpleFeedbackWiz) strCommentOnThisTemplateLnk = StrReplaceParam(strCommentOnThisTemplateLnk, "Rating", iStar.toString()); for (var i=1; i <= 3; i++) { var divSub = document.getElementById("divFeedbackPanel2Sub" + i.toString()); if (typeof(divSub) != "undefined" && null != divSub) divSub.style.display = "block"; } } function FeedbackWizGenerateControl( strLabel1a, strLabel1b, strLabel1c, strLabel2, strLabel3, strLabel3Text, strLnkContactUsLink, strContactUsText, strContactUsUrl, strSubmit, strChangeMyFeedback, strFeedbackWizWidth, fShow1a, fShow1b, fShow1c, fAsstParam, strNotHelpful, strVeryHelpful) { mSetCookie("apfbkid", ""); var fAsst = false; var iDivHeight = 151; if (typeof(fAsstParam) != 'undefined' && fAsstParam) { fAsst = true; iDivHeight = 166; } var strLnkContactUsCellText = strLnkContactUsLink.replace('{0}', '' + strContactUsText + ''); strSubmit = strSubmit.replace("\'", "'"); strSubmit = strSubmit.replace('\"', '"'); if (fAsst && '100%' == strFeedbackWizWidth) document.write('
'); document.write('' + '
'); if (fIsSimpleFeedbackWiz) { document.write('
'); document.write(' '); } else { document.write('
'); document.write('
'); if (fShow1a) { document.write(' '); document.write(' '); document.write(' '); } } document.write(' '); if (fIsOn2Lines) document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); if (fIsSimpleFeedbackWiz) { if (fShow1c) { document.write(' '); document.write(' '); document.write(' '); } } else { if (fShow1c) { document.write(' '); document.write(' '); document.write(' '); } document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); } document.write(' '); document.write(' '); document.write('
'); document.write(' ' + strLabel1a + ''); document.write('
'); else if (fIsSimpleFeedbackWiz) document.write(' '); else if (fAsst) document.write(' '); else document.write(' '); if (fShow1b) document.write(' ' + strLabel1b + ''); if (!fIsOn2Lines) { document.write('
'); } else document.write(' '); if (fAsst) { document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
' + strNotHelpful + ''); } for (var i=1; i <= 5; i++) { document.write( ''); document.write( ''); document.write( ''); } if (fAsst) { document.write('' + strVeryHelpful + ' 
'); } document.write('
' + strLabel1c + '
'); if (fAsst) document.write(''); document.write('
'); if (fAsst) document.write(''); document.write('
'); if (fAsst) document.write(''); document.write('
'); document.write('
'); document.write('
'); if (!fIsSimpleFeedbackWiz) { document.write(''); document.write(''); } document.write('
'); var img0 = new Image(); img0.src = "/global/images/ratings/lg_output_full.gif"; var img1 = new Image(); img1.src = "/global/images/ratings/lg_output_empty.gif"; var img2 = new Image(); img2.src = "/global/images/ratings/lg_input_full.gif"; FeedbackWizUpdateCounter(); } function FeedbackWizGenerateControl_Buttons( strP1Question, strP1Yes, strP1No, strP1DontKnow, strP2QYes, strP2QNo, strP2QDontKnow, strP2Back, strP2Submit, strP3Label, strP4Label, strP4ContactUsLine, strP4ContactUsText, strP4ContactUsUrl, strP4ChangeMyFeedback, strP4ThankYou, strFeedbackWizWidth) { mSetCookie("apfbkid", ""); var strP4ContactUsCellText = strP4ContactUsLine.replace('{0}', '' + strP4ContactUsText + ''); if ('100%' == strFeedbackWizWidth) document.write('
'); document.write('' + '
'); document.write('
'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(' ' + strP1Question + ''); document.write('
'); document.write('   '); document.write( ''); if (strP1DontKnow.length > 0) document.write('  '); document.write('
 
'); document.write('
'); document.write(''); document.write(''); document.write('