function DigiCertRequestInfoPopup(){var t=document.getElementById("drpQty"),i=document.getElementById("ddlNumberOfServer"),r=document.getElementById("drpSAN"),u=document.getElementById("hrdProductID").value,f="?qty="+t.value+"&noSrv="+i.value+"&san="+r.value+"&pid="+u,n;showSSLStorePopUp("/digicert/digicertrequestinfopopup.aspx"+f,"DigiCert Products: More Information",620,645,!1);$("#popupContact").length>0&&(n=document.documentElement.clientHeight/2-$("#popupContact").height()/2,$("#popupContact").css({position:"",top:n}))}function GenerateLink(n){for(var i,s,y,t,r=0,u="",f="",o=!1,e=0;e<allrbtPrice.length;e++)if(i=allrbtPrice[e],i.type=="radio"&&i.id.indexOf("rbtPrice")>-1&&i.checked){s=i.value.split("|");r=s[0];break}if(document.getElementById("hdndrPoductIsSanEnable").value=="True"&&(u=parseInt($("#drpSAN").val())+parseInt($("#hdnSanMin").val())),document.getElementById("hdndrPoductIsWildcardSanEnable").value=="True"&&(f=parseInt($("#drpSANWC").val())),document.getElementById("hdndrPoductIsAllowWildcardCSR").value=="True"&&(o=parseInt($("#ddlAllowWildcardCSR").val())==1),parseInt(r)>0){var h=1,c=document.getElementById("drpQty"),l=document.getElementById("ddlNumberOfServer"),a=document.getElementById("drpCompetitiveUpgrade"),v=document.getElementById("ddlInstallationSupport"),p=$("#drpcWatchWeb").length>0?parseInt($("#drpcWatchWeb").val()):0;c&&(h=c.value);y="/CheckOut.ashx";t="?ID="+r+"&ProductID="+document.getElementById("hrdProductID").value+"&qty="+h;u>0&&(t+="&ExtSan="+u);f>0&&(t+="&ExtWildcardSan="+f);o&&(t+="&allowwildcardcsr=1");n&&(t+="&ReNew=true");l&&(t+="&ls="+l.value);a&&(t+=a.value==1?"&compupgrd=true":"&compupgrd=false");p==1&&(t+="&isaddcw=true");v&&v.value=="1"?(t+="&issupport=true",showSSLStorePopUp("/shoppingcart.aspx"+t,"Enter Installation Service Details",675,740,!1)):window.location.href=y+t}else alert("Please Select Product")}function UnCheckOtherRadio(n,t){n.checked=!0;$("div.newpricetwonebox").addClass("newpriceonebox").removeClass("newpricetwonebox");$(n).parent().parent().addClass("newpricetwonebox").removeClass("newpriceonebox");$(".prcsanbox").css("display","none");$("#dvSanPrice"+t).css("display","block");validationtype.indexOf("ev")>-1&&($(".sanapproval").css("display","none"),$("#dvEVApproval"+t).css("display","block"));$("#comodonote")&&(t==3||t==4?$("#comodonote").show("slow"):$("#comodonote").hide("slow"))}function SetPricingForDigiCert(){var i=1,e=$("input:radio[name='radio']:checked").attr("data"),r,s,u,f;if(e){var n=e.split("|"),o=n[0],l=parseInt(o)<12?1:parseInt(o)/12,a=parseFloat(n[1].replace("$","")).toFixed(2),v=n[2],b=n[3],y=n[5],t=1;t=parseInt($("#ddlNumberOfServer").val())>0&&parseInt($("#ddlNumberOfServer").val())!=9999?parseInt($("#ddlNumberOfServer").val()):1;r=0;parseFloat(n[4])>0?(s=$("#hdnSanMin").val(),u=$("#drpSAN").val(),r=u*n[4],$("#spntotalsan").html((t>1?"# Servers: <span>"+t+"<\/span>&nbsp;&nbsp;|&nbsp;&nbsp;":"")+"Total Domains: <span>"+(parseInt(u)+parseInt(s)+1)+"<\/span>")):$("#spntotalsan").html("Total Domains: <span>"+(parseInt($("#hdnSanMin").val())+1)+"<\/span>");var h=parseFloat(parseFloat(v.toString().replace("$",""))*parseFloat(i)).toFixed(2),k=h.toString().split("."),p=parseFloat(h*t-parseFloat(a.toString())*parseInt(l)*parseFloat(i)*t).toFixed(2),c=p.toString().split("."),w=((y*t+r)*parseInt(i)).toFixed(2);$("#divISPrice").hide();f=w.toString().split(".");$("#spTotalAmt").html(currSymbol+f[0]+$("#hdnNumberDecimalSeparator").val()+f[1]);$("#pSavePrice").html(currSymbol+c[0]+$("#hdnNumberDecimalSeparator").val()+c[1])}}function ChangePriceForWildCardCSRDomainForALL(n){var s=$("input:radio[name='radio']"),h,t,c,o;if(s!=undefined)for(h=s.length,t=0;t<h;t++)if(c=$($("input:radio[name='radio']")[t]),o=c.attr("data"),o){var r=o.split("|"),i=r[0],u=parseFloat(r[8]),f=parseFloat(r[2]);if(n==!0){var l=r[9],e=l/(i/12),a=u-l,v=(u/(i/12)-e)*100/(u/(i/12));$($($("input:radio[name='radio']")[t]).parent().parent()).children()[1].innerText=i/12+" Years @ "+currSymbol+roundNumberV1(e).toFixed(2)+" per year";$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#listpriceamountinsiderpt")[0].innerText=currSymbol+roundNumberV1(u).toFixed(2);$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#saveamountinsiderpt")[0].innerText="Save "+currSymbol+roundNumberV1(a).toFixed(2);$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#offpercentinsiderpt")[0].innerText=v.toFixed(0)+"% OFF"}else{var y=r[5],e=y/(i/12),a=f-y,v=(f/(i/12)-e)*100/(f/(i/12));$($($("input:radio[name='radio']")[t]).parent().parent()).children()[1].innerText=i/12+" Years @ "+currSymbol+roundNumberV1(e).toFixed(2)+" per year";$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#listpriceamountinsiderpt")[0].innerText=currSymbol+roundNumberV1(f).toFixed(2);$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#saveamountinsiderpt")[0].innerText="Save "+currSymbol+roundNumberV1(a).toFixed(2);$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#offpercentinsiderpt")[0].innerText="% OFF";$($($($("input:radio[name='radio']")[t]).parent().parent()).children()).find("#offpercentinsiderpt")[0].innerText=v.toFixed(0)+"% OFF"}}}function SetPricing(){var i=$("#drpQty").val(),c=!1,tt=$("input:radio[name='radio']:checked").attr("data"),rt,y,p,e,ft,o,r,s,et,h,ot,a,pt,k,d,v,g,nt,w,b;if(tt){var n=tt.split("|"),it=n[0],u=parseInt(it)<12?1:parseInt(it)/12,st=parseFloat(n[1].replace("$","")).toFixed(2),ht=n[2],wt=n[3],ct=n[5],lt=n[9],at=n[8],bt=n[10],rt="";n[7]!=undefined&&(rt=parseFloat(n[7].replace("$","")).toFixed(2));var vt=n[4],ut=n[6],t=1;if($("#hdndrPoductIsAllowWildcardCSR").val()=="True"&&$("#ddlAllowWildcardCSR").val()!=undefined&&($("#ddlAllowWildcardCSR").val()=="1"&&(c=!0),ChangePriceForWildCardCSRDomainForALL(c)),$("#ddlYear > [value="+u+"]").prop("selected",!0),y=0,p=0,parseFloat(n[4])>0){var yt=$("#hdnSanMin").val(),l=$("#drpSAN").val(),f=$("#hdnSanMax").val();if(parseInt(l)>=0&&$("#hdndrPoductIsWildcardSanEnable").val()!=undefined&&$("#hdndrPoductIsWildcardSanEnable").val()=="True"){for(e=0,e=parseInt(f);e>parseInt(f)-parseInt(l);e--)$('#drpSANWC option[value="'+e+'"],#drpProductStickySANWildcard option[value="'+e+'"]').remove();for(ft=$("#drpSANWC option:last-child").val(),o=0,o=parseInt(ft)+1;o<=parseInt(f)-parseInt(l);o++)$("#drpSANWC,#drpProductStickySANWildcard").append(new Option(o,o))}if(y=l*n[4],$("#hdndrPoductIsWildcardSanEnable").val()!=undefined&&$("#hdndrPoductIsWildcardSanEnable").val()=="True"){if(parseFloat(n[6])>0){if(r=$("#drpSANWC").val(),parseInt(r)>=0){for(s=0,s=parseInt(f);s>parseInt(f)-parseInt(r);s--)$('#drpSAN option[value="'+s+'"],#drpProductStickySAN option[value="'+s+'"]').remove();for(et=$("#drpSAN option:last-child").val(),h=0,h=parseInt(et)+1;h<=parseInt(f)-parseInt(r);h++)$("#drpSAN,#drpProductStickySAN").append(new Option(h,h))}p=r*ut;$("#spntotalwildcardsan").html((t>1?"# Servers: <span>"+t+"<\/span>&nbsp;&nbsp;|&nbsp;&nbsp;":"")+"Total WildCard Domains: <span>"+parseInt(r)+"<\/span>")}}else $("#spntotalwildcardsan").hide();ot=parseInt(r)>0?parseInt(r):0;$("#spntotalsan").html((t>1?"# Servers: <span>"+t+"<\/span>&nbsp;&nbsp;|&nbsp;&nbsp;":"")+"Total Domains: <span>"+(parseInt(l)+parseInt(yt)+1+ot)+"<\/span>")}else $("#spntotalsan").html("Total Domains: <span>"+(parseInt($("#hdnSanMin").val())+1)+"<\/span>"),$("#spntotalwildcardsan").hide();a=parseFloat(parseFloat(ht.toString().replace("$",""))*parseFloat(i)).toFixed(2);c==!0&&(a=parseFloat(parseFloat(at.toString().replace("$",""))*parseFloat(i)).toFixed(2));pt=a.toString().split(".");k=parseFloat(a*t-parseFloat(st.toString())*parseInt(u)*parseFloat(i)*t).toFixed(2);c==!0&&(k=parseFloat(a*t-parseFloat(rt.toString())*parseInt(u)*parseFloat(i)*t).toFixed(2));d=k.toString().split(".");v=((ct*t+y+p)*parseInt(i)).toFixed(2);c==!0&&(v=((lt*t+y+p)*parseInt(i)).toFixed(2));parseInt($("#ddlInstallationSupport").val())==1?($("#divISPrice").show(),v=(parseFloat(v)+parseFloat(supportPrice)*parseInt(i)).toFixed(2),g=(parseFloat(supportPrice)*parseInt(i)).toFixed(2).toString().split("."),$("#pISPrice").html(currSymbol+g[0]+$("#hdnNumberDecimalSeparator").val()+g[1])):$("#divISPrice").hide();nt=v.toString().split(".");$("#spTotalAmt").html(currSymbol+nt[0]+$("#hdnNumberDecimalSeparator").val()+nt[1]);$("#pSavePrice").html(currSymbol+d[0]+$("#hdnNumberDecimalSeparator").val()+d[1]);$(".pro-price").html($("#spTotalAmt").text());$("#divNote4yr").length>0&&(u>1?$("#divNote4yr").show():$("#divNote4yr").hide());w=parseFloat(vt/u);b=parseFloat(ut/u);w=roundNumberV1(w);b=roundNumberV1(b);$("#lblSANPrice").text(currSymbol+w.toFixed(2));$("#lblWCSANPrice").text(currSymbol+b.toFixed(2))}}function ChangeSelectionVal(n){var t;n.id=="drpSAN"&&(t=$("#drpSAN").val(),$("#drpSANSticky > [value="+t+"]").prop("selected",!0));n.id=="drpSANSticky"&&(t=$("#drpSANSticky").val(),$("#drpSAN > [value="+t+"]").prop("selected",!0))}function ChangeProductSANSelectionFlex(n){var t,i;n.id=="drpSAN"&&(t=$("#drpSAN").val(),$("#drpProductStickySAN > [value="+t+"]").prop("selected",!0));n.id=="drpSANWC"&&(t=$("#drpSANWC").val(),$("#drpProductStickySANWildcard > [value="+t+"]").prop("selected",!0));n.id=="drpProductStickySAN"&&(t=$("#drpProductStickySAN").val(),$("#drpSAN > [value="+t+"]").prop("selected",!0));n.id=="drpProductStickySANWildcard"&&(t=$("#drpProductStickySANWildcard").val(),$("#drpSANWC > [value="+t+"]").prop("selected",!0));n.id=="ddlAllowWildcardCSR"&&(i=$("#ddlAllowWildcardCSR").val(),$("#ddlAllowWildcardCSRProductSticky > [value="+i+"]").prop("selected",!0));n.id=="ddlAllowWildcardCSRProductSticky"&&(i=$("#ddlAllowWildcardCSRProductSticky").val(),$("#ddlAllowWildcardCSR > [value="+i+"]").prop("selected",!0))}function SetStickyPrice(){var t=$("#ddlYear").val(),n=parseInt(t)-1,i=$("#rbtPrice"+n).prop("checked",!0);UnCheckOtherRadio($("#rbtPrice"+n),n);SetPricing()}function ShowSiteSeal(n){var t,i="/productdetail/siteseal-popup-"+n+".aspx";n=="geotrust"?(t="GeoTrust® Site Seals",showSSLStorePopUp(i,t,1e3,560,!1)):n=="thawte"?(t="Thawte Trusted Site Seal",showSSLStorePopUp(i,t,1e3,632,!1)):n=="symantec"?(t="Norton Secured Seal (powered by DigiCert)",showSSLStorePopUp(i,t,1e3,440,!1)):n=="rapidssl"?(t="RapidSSL Site Seal",showSSLStorePopUp(i,t,1e3,445,!1)):n=="comodo"?(t="Comodo TrustLogo",showSSLStorePopUp(i,t,1e3,660,!1)):n=="certum"?(t="Certum SSL Seal",showSSLStorePopUp(i,t,1e3,447,!1)):n=="digicert"?(t="DigiCert SSL Seal",showSSLStorePopUp(i,t,1e3,485,!1)):n=="sectigo"&&(t="Sectigo TrustLogo",showSSLStorePopUp(i,t,1e3,660,!1))}function GetCurrencySymbol(){currSymbol=$("#hdnSymbol").val()}function FillPopup(){for(var n,e,t,i,r=0,f=0,u=0;u<allrbtPrice.length;u++)if(n=allrbtPrice[u],n.type=="radio"&&n.id.indexOf("rbtPrice")>-1&&n.checked){e=n.value.split("|");r=e[0];f=parseInt(n.id.toString().replace("rbtPrice",""));break}if(parseInt(r)>0){var o=1,s=document.getElementById("drpQty"),h=document.getElementById("ddlNumberOfServer"),c=document.getElementById("drpSAN");s&&(o=s.value);t="/shoppingcart.aspx?productid="+document.getElementById("hrdProductID").value+"&qty="+o;i=document.getElementById("hrdProductID").value;i>=201&&i<=210?showSSLStorePopUp("/product-update.aspx?pid="+i+"","Product Update",605,175,!1):(c&&(t+="&san="+c.value),h&&(t+="&ls="+h.value),f>=0&&(t+="&index="+r),showSSLStorePopUp(t,"","675","740",!1))}}function roundNumberV1(n){var t=2,i,r;if((""+n).includes("e")){i=(""+n).split("e");r="";+i[1]+t>0&&(r="+");var u=+i[0]+"e"+r+(+i[1]+t),f=Math.round(u),e=+(f+"e-"+t);return e.toFixed(2)}return+(Math.round(n+"e+"+t)+"e-"+t)}function fillQtyCombo(n){for(var i="",t=1;t<n;t++)i+='<option value="'+t+'">'+t+"<\/option>";$("#comboboxQty").append(i)}var allrbtPrice,strUrl,currSymbol,supportPrice,brandid;$(function(){allrbtPrice=document.getElementsByTagName("input")});$(document).ready(function(){$("#btnBuyNow1").removeAttr("disabled");$("#btnBuyNow2").removeAttr("disabled");$("#btnRenewNow1").removeAttr("disabled");$("#btnRenewNow2").removeAttr("disabled");rating.indexOf("dv")>-1?$("#spRatingTxt").text("DV Certificate Rating"):rating.indexOf("ov")>-1?$("#spRatingTxt").text("OV Certificate Rating"):rating.indexOf("ev")>-1?$("#spRatingTxt").text("EV Certificate Rating"):rating.indexOf("wc")>-1?$("#spRatingTxt").text("Wildcard Rating"):rating.indexOf("mdu")>-1?$("#spRatingTxt").text("Multi-Domain Rating"):rating.indexOf("cs")>-1?$("#spRatingTxt").text("Code-Signing Rating"):rating.indexOf("am")>-1?$("#spRatingTxt").text("Anti-Malware Rating"):$("#spRatingTxt").text("SSL Store Rating");$("#ddlNumberOfServer option:selected").text().trim()=="UL"||$("#ddlNumberOfServer option:selected").text().trim()=="N/A"||$("#ddlNumberOfServer").length==0?($("#dtServer").addClass("graybox"),$("#ddServer").addClass("graybox")):$("#dtServer").removeClass("graybox");$("#drpSAN option:selected").text().trim()=="N/A"?($("#dtSAN").addClass("graybox"),$("#ddSAN").addClass("graybox")):($("#dtSAN").removeClass("graybox"),$("#ddSAN").removeClass("graybox"));$("#drpSANWC option:selected").text().trim()=="N/A"?($("#dtSANWC").addClass("graybox"),$("#ddSANWC").addClass("graybox"),$("#spntotalwildcardsan").hide()):($("#dtSANWC").removeClass("graybox"),$("#ddSANWC").removeClass("graybox"),$("#spntotalwildcardsan").show());strUrl=window.location.href;GetCurrencySymbol(strUrl);SetPricing();$("#lnkCSR").click(function(){if($("#ddlCSRServer").val()!="0"){$("#divback").show();var n="{ProductID:"+$("#hrdProductID").val()+" ,WebServerID:"+parseInt($("#ddlCSRServer").val())+" ,WebServerType:1}";$.ajax({type:"POST",url:"/logoff.aspx/geturl?ign=1",data:n,contentType:"application/json;charset=utf-8",dataType:"json",success:function(n){n.d&&(window.open(n.d,"_blank"),$("#divback").hide())},error:function(){$("#divback").hide();alert("Error Occurred.")}})}else alert("Please Select WebServer")});$("#lnkInstall").click(function(){if($("#ddlInstServer").val()!="0"){$("#divback").show();var n="{ProductID:"+$("#hrdProductID").val()+" ,WebServerID:"+$("#ddlInstServer").val()+" ,WebServerType:2}";$.ajax({type:"POST",url:"/logoff.aspx/geturl?ign=1",data:n,contentType:"application/json;charset=utf-8",dataType:"json",success:function(n){n.d&&(window.open(n.d,"_blank"),$("#divback").hide())},error:function(){$("#divback").hide();alert("Error Occurred.")}})}else alert("Please Select WebServer")});$("#comodonote")&&$("#comodonote").hide();$("#pSavePrice").length||SetPricingForDigiCert()});$(function(){$("#prodtlaccordian").accordion({collapsible:!0,active:!1,heightStyle:"content"});$("#prodtlaccordianopen").accordion({collapsible:!0,active:0,heightStyle:"content"})})