function HandleGetContactInformationSucess(n){n!=null&&n.d==null&&(n.d=n);n.d!=null&&($(".scfForm .scfShortText input:text,.scfForm .scfSingleLineTextBorder input:text,.scfForm .scfEmailBorder input:text,.scfTelephoneBorder input:text").each(function(){var t=$(this).parent().parent().children("label").text();(t.toLowerCase()=="firstname"||t.toLowerCase()=="first name *")&&n.d.FirstName!="undefined"&&n.d.FirstName!=null&&n.d.FirstName!=""?($(this).removeClass("FormDefault"),$(this).attr("value",n.d.FirstName)):(t.toLowerCase()=="lastname"||t.toLowerCase()=="last name *")&&n.d.LastName!="undefined"&&n.d.LastName!=null&&n.d.LastName!=""?($(this).removeClass("FormDefault"),$(this).attr("value",n.d.LastName)):t.toLowerCase().indexOf("email")>-1&&n.d.EmailAddress!="undefined"&&n.d.EmailAddress!=null&&n.d.EmailAddress!=""?($(this).removeClass("FormDefault"),$(this).attr("value",n.d.EmailAddress)):(t.toLowerCase()=="phonenumber"||t.toLowerCase()=="phone number *")&&n.d.PhoneNumber!="undefined"&&n.d.PhoneNumber!=null&&n.d.PhoneNumber!=""?($(this).removeClass("FormDefault"),$(this).attr("value",n.d.PhoneNumber)):(t.toLowerCase()=="company"||t.toLowerCase()=="company *")&&n.d.Company!="undefined"&&n.d.Company!=null&&n.d.Company!=""&&($(this).removeClass("FormDefault"),$(this).attr("value",n.d.Company))}),$("#_formCheckboxCountries").val().indexOf(n.d.Country)!=-1&&$(".scfCheckbox").each(function(){$(this).text().toLowerCase().indexOf(_globalEmailNotificationsAgreeText)!=-1&&$(this).show()}),$("#_gdprCountries").val().indexOf(n.d.Country)!=-1&&$(".scfCheckbox").each(function(){var n=$(this).find("label").data("gdpr");(n==_globalGDPRFieldTC||n==_globalGDPRFieldCP)&&$(this).show()}),$(".scfForm .scfShortText select,.scfForm .scfDropListBorder select").each(function(){var t=$(this).parent().parent().children("label").text();t.toLowerCase()=="job title *"&&n.d.JobTitle!="undefined"&&n.d.JobTitle!=null&&n.d.JobTitle!=""&&$(this).val(n.d.JobTitle);t.toLowerCase()=="industry"&&n.d.Industry!="undefined"&&n.d.Industry!=null&&n.d.Industry!=""&&$(this).val(n.d.Industry);t.toLowerCase()=="databases your organization or team manage"&&n.d.NoOfDBsManaged!="undefined"&&n.d.NoOfDBsManaged!=null&&n.d.NoOfDBsManaged!=""&&$(this).val(n.d.NoOfDBsManaged);t.toLowerCase()=="country *"&&n.d.Country!="undefined"&&n.d.Country!=null&&n.d.Country!=""?$(this).val(n.d.Country):t.toLowerCase()=="state *"&&n.d.Country!="undefined"&&n.d.Country!=null&&n.d.Country!=""?n.d.Country.toLowerCase()=="united states"||n.d.Country.toLowerCase()=="unitedstates"?n.d.State!="undefined"&&n.d.State!=null&&$(this).val(n.d.State):($(this).parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).hide()})):t.toLowerCase()=="province *"&&n.d.Country!="undefined"&&n.d.Country!=null&&n.d.Country!=""&&(n.d.Country.toLowerCase()=="canada"?n.d.State!="undefined"&&n.d.State!=null&&($(this).val(n.d.State),$(this).parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).show()})):($(this).parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).hide()})))}))}function HandleGetContactInformationError(){}var _globalEmailNotificationsAgreeText="i agree to receive e-mail notifications",_globalGDPRFieldTC="termsconditionsgdpr",_globalGDPRFieldCP="contactpermissiongdpr";$(document).ready(function(){function u(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function f(n){return typeof n=="string"&&!n.trim()||typeof n=="undefined"||n===null||n.trim().length==0}var r,i,n,t;$(".scfHiddenField").each(function(){$(this).hide();$(this).find("input:text").each(function(){var n=u("gclid");f(n)||$(this).val(n)})});$(".scfCheckbox").each(function(){($(this).text().toLowerCase()=="includesqldm"||$(this).text().toLowerCase().indexOf("roadblockinclude")!=-1)&&$(this).hide();var n=$(".scfForm .scfDropList[formdefault~='Country']").val();$(this).text().toLowerCase().indexOf(_globalEmailNotificationsAgreeText)!=-1?($(this).find("label").html("I agree to receive e-mail notifications. See our <a href='https://www.ideracorp.com/Legal/PrivacyShield' target='_blank' style='color: #81bb2e; text-decoration: underline;'>Privacy Policy<\/a> for more details"),$(this).hide(),$("#_formCheckboxCountries").val().indexOf(n)!=-1&&$(this).find("input[type='checkbox']").attr("checked",!1)):$(this).text().toLowerCase().indexOf(_globalGDPRFieldTC)!=-1?($(this).find("label").attr("data-gdpr",_globalGDPRFieldTC),$(this).find("label").html("I have read, understand and agree to Idera’s <a href='https://www.ideracorp.com/Legal/Terms-of-Use' target='_blank' style='color: #81bb2e; text-decoration: underline;'>terms and conditions<\/a> and <a href='https://www.ideracorp.com/Legal/PrivacyShield' target='_blank' style='color: #81bb2e; text-decoration: underline;'>privacy statement<\/a>."),$(this).hide(),$(this).find("input[type='checkbox']").attr("checked",!1)):$(this).text().toLowerCase().indexOf(_globalGDPRFieldCP)!=-1&&($(this).find("label").attr("data-gdpr",_globalGDPRFieldCP),$(this).find("label").html("I agree to receive Idera marketing communications via email and phone calls."),$(this).append("<label style='display: inline-block; margin-top: 15px;'>You can always update your communications preferences later.<\/label><label style='display: inline-block; margin: 15px 0;'>Idera, Inc. may share your information with its subsidiaries and its partners. For further details how your data is used and stored, please review our <a href='https://www.ideracorp.com/Legal/PrivacyShield' target='_blank' style='color: #81bb2e; text-decoration: underline;'>Privacy Policy<\/a>.<\/label>"),$(this).hide(),$(this).find("input[type='checkbox']").attr("checked",!1))});$(".scfForm .scfShortText input:text,.scfForm .scfSingleLineTextBorder input:text,.scfForm .scfEmailBorder input:text,.scfTelephoneBorder input:text").each(function(){var n=$(this).parent().parent().children("label").text(),t;$(this).attr("FormDefault",n);$(this).addClass("FormDefault");t="";elementId=$(this).attr("id");$("#"+elementId+"_text").text(n+" *");$(this).attr("placeholder",n+" *")});$(".scfForm .scfShortText input:text,.scfForm .scfSingleLineTextBorder input:text,.scfForm .scfEmailBorder input:text,.scfTelephoneBorder input:text").focus(function(){var n=$(this).attr("FormDefault"),t=$(this).attr("value");t==n&&($(this).attr("value",""),$(this).removeClass("FormDefault"));$(this).addClass("Selected")});$(".scfForm .scfShortText input:text,.scfForm .scfSingleLineTextBorder input:text,.scfForm .scfEmailBorder input:text,.scfTelephoneBorder input:text").blur(function(){var t=$(this).attr("FormDefault"),n=$(this).attr("value");n==""?($(this).attr("value",""),$(this).addClass("FormDefault")):($(this).removeClass("FormValidatorCalloutHighlight"),n=n.replace("&","and"),$(this).attr("value",n));$(this).removeClass("Selected")});r=!1;i=!1;$(".scfForm .scfShortText select,.scfForm .scfDropListBorder select").each(function(){var n=$(this).parent().parent().children("label").text(),u,t;$(this).attr("FormDefault",n);n.toLowerCase()!="industry"&&n.toLowerCase()!="databases your organization or team manage"&&(u="",elementId=$(this).attr("id"),$("#"+elementId+"text").text(n+" *"),$(this).find("option[value='"+n+"']").text(n+" *"));n.toLowerCase()=="country"&&(t=$(this).parent().children("select").val(),t.toLowerCase()=="country"?i=!0:t.toLowerCase()=="usa"||t.toLowerCase()=="united states"||t.toLowerCase()=="unitedstates"?i=!0:t.toLowerCase()=="canada"?r=!0:(i=!0,r=!0));i==!0&&r==!1?($(".scfForm .scfDropList[formdefault~='Province']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).hide()}),$(".scfForm .scfDropList[formdefault~='State']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).show()})):r==!0&&i==!1?($(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).hide()}),$(".scfForm .scfDropList[formdefault~='Province']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).show()})):r==!0&&i==!0&&($(".scfForm .scfDropList[formdefault~='Province']").parent().hide(),$(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){($(this).text().toLowerCase()=="province *"||$(this).text().toLowerCase()=="state *")&&$(this).hide()}))});$(".scfForm .scfRadioButtonListLabel").each(function(){var n=$(this).text();elementId=$(this).attr("id");$("#"+elementId).text(n+" *")});$(".scfCaptchTop").css("margin-bottom","20px");$(".ui-widget-dd").focus(function(){var n=$(this).parent().attr("FormDefault"),t=$(this).attr("value");t==n&&($(this).attr("value",""),$(this).removeClass("FormDefault"));$(this).addClass("Selected")});$(".country-span > .ui-combobox > .ui-widget-dd").focus(function(){$(this).attr("value","");$(this).addClass("Selected")});$(".scfCaptchTop").prepend("<div id='generalTermsAndConditions' style='text-align: left;'><label style='display: inline-block; margin-top: 15px;'>By registering, you confirm that you agree to the processing of your personal data by IDERA as described in the <a href='https://www.ideracorp.com/Legal/PrivacyShield' target='_blank' style='color: #81bb2e;'>Privacy Policy<\/a>. <label style='display: inline-block; margin: 15px 0;'>Idera, Inc. may share your information with its subsidiaries and its partners. For further details how your data is used and stored, please review our <a href='https://www.ideracorp.com/Legal/PrivacyShield' target='_blank' style='color: #81bb2e;'>Privacy Policy<\/a>.<\/label><\/div>");$(".scfForm select[formdefault~='Country']").change(function(){$("#generalTermsAndConditions").hide();$(".scfCheckbox").each(function(){$(this).text().toLowerCase().indexOf(_globalEmailNotificationsAgreeText)!=-1&&($(this).hide(),$(this).find("input[type='checkbox']").attr("checked",!0));var n=$(this).find("label").data("gdpr");(n==_globalGDPRFieldTC||n==_globalGDPRFieldCP)&&($(this).hide(),$(this).find("input[type='checkbox']").attr("checked",!1))});var n=$(this).parent().children("select").val();n.toLowerCase()=="usa"||n.toLowerCase()=="united states"||n.toLowerCase()=="unitedstates"||n.toLowerCase()=="country"?($(".scfForm .scfDropList[formdefault~='Province']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).hide()}),$(".scfForm .scfDropList[formdefault~='State']").parent().children("select").val("State"),$(".scfForm .scfDropList[formdefault~='State']").children().first().val("State"),$(".scfForm .scfDropList[formdefault~='State']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).show()}),$("#generalTermsAndConditions").show()):n.toLowerCase()=="canada"?($(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).hide()}),$(".scfForm .scfDropList[formdefault~='Province']").parent().children("select").val("Province"),$(".scfForm .scfDropList[formdefault~='Province']").children().first().val("Province"),$(".scfForm .scfDropList[formdefault~='Province']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).show()}),$(".scfCaptchTop").css("margin-top","20px")):($(".scfForm .scfDropList[formdefault~='Province']").parent().hide(),$(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){($(this).text().toLowerCase()=="province *"||$(this).text().toLowerCase()=="state *")&&$(this).hide()}),$("#_gdprCountries").val().indexOf(n)<=0&&$("#generalTermsAndConditions").show());$("#_formCheckboxCountries").val().indexOf(n)!=-1&&$(".scfCheckbox").each(function(){$(this).text().toLowerCase().indexOf(_globalEmailNotificationsAgreeText)!=-1&&($(this).find("input[type='checkbox']").attr("checked",!1),$(this).show())});$("#_gdprCountries").val().indexOf(n)!=-1?($(".scfCheckbox").each(function(){var n=$(this).find("label").data("gdpr");(n==_globalGDPRFieldTC||n==_globalGDPRFieldCP)&&($(this).find("input[type='checkbox']").attr("checked",!1),$(this).show())}),$(".scfCaptchTop").css("margin-bottom","20px")):$(".scfCaptchTop").css("margin-bottom","20px")});try{$.IderaServices.GuestInfomation.GetContactInformation(HandleGetContactInformationSucess,HandleGetContactInformationError)}catch(e){}n=$("#ClientCountry").attr("value");t=$("#ClientState").attr("value");n!=""&&t!=""&&$(".scfForm .scfDropList[formdefault~='Country'] option[value='"+n+"']").length>0&&($(".scfForm .scfDropList[formdefault~='Country']").val(n),$(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).hide()}),n.toLowerCase()=="canada"&&($(".scfForm .scfDropList[formdefault~='State']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).hide()}),t!="undefined"&&t!=""?$(".scfForm .scfDropList[formdefault~='Province']").parent().children("select").val(t):$(".scfForm .scfDropList[formdefault~='Province']").parent().children("select").val("Province"),$(".scfForm .scfDropList[formdefault~='Province']").children().first().val("Province"),$(".scfForm .scfDropList[formdefault~='Province']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).show()})),(n.toLowerCase()=="usa"||n.toLowerCase()=="united states"||n.toLowerCase()=="unitedstates")&&($(".scfForm .scfDropList[formdefault~='Province']").parent().hide(),$("label").each(function(){$(this).text().toLowerCase()=="province *"&&$(this).hide()}),t!="undefined"&&t!=""?$(".scfForm .scfDropList[formdefault~='State']").parent().children("select").val(t):$(".scfForm .scfDropList[formdefault~='State']").parent().children("select").val("State"),$(".scfForm .scfDropList[formdefault~='State']").children().first().val("State"),$(".scfForm .scfDropList[formdefault~='State']").parent().show(),$("label").each(function(){$(this).text().toLowerCase()=="state *"&&$(this).show()})),$("#_formCheckboxCountries").val().indexOf(n)!=-1&&$(".scfCheckbox").each(function(){$(this).text().toLowerCase().indexOf(_globalEmailNotificationsAgreeText)!=-1&&$(this).show()}),$("#_gdprCountries").val().indexOf(n)!=-1&&$(".scfCheckbox").each(function(){var n=$(this).find("label").data("gdpr");(n==_globalGDPRFieldTC||n==_globalGDPRFieldCP)&&$(this).show()}))});$("form").submit(function(){var n=$(".scfForm .scfDropList[formdefault~='Country']").parent().children("select").val();n=="Country"&&$(".scfValidationSummary").is(":visible")?$(".scfValidationSummary ul").append("<li class='CountryCls'>Country value is not valid<\/li>"):$(".CountryCls").remove();n!=null&&n.toLowerCase()=="united states"&&$(".scfForm .scfDropList[formdefault~='State']").parent().children("select").val()=="State"&&$(".scfValidationSummary").is(":visible")?$(".scfValidationSummary ul").append("<li class='StateCls'>State value is not valid<\/li>"):$(".StateCls").remove();n!=null&&n.toLowerCase()=="canada"&&$(".scfForm .scfDropList[formdefault~='Province']").parent().children("select").val()=="Province"&&$(".scfValidationSummary").is(":visible")?$(".scfValidationSummary ul").append("<li class='ProvinceCls'>Province value is not valid<\/li>"):$(".ProvinceCls").remove()});$(document).ready(function(){$(".scfForm .scfEmailBorder input.scfEmailTextBox").blur(function(){var n=$(".scfForm .scfEmailBorder input.scfEmailTextBox").val(),t;(n.startsWith(" ")||n.endsWith(" "))&&($(".scfForm .scfEmailBorder input.scfEmailTextBox").val(n.trim()),t=$(".scfForm .scfEmailBorder input.scfEmailTextBox").next().next(),t.text()==="Enter a valid email address."&&t.hide())});$(".scfForm input[type='text'], .scfForm input[type='password']").blur(function(){$(this).val()==""?$(this).addClass("textFieldError"):$(this).removeClass("textFieldError")});$(".scfForm select.scfDropList").change(function(){$(this).css({color:"inherit"});$(this).val()=="Country"||$(this).val()=="State"||$(this).val()=="Province"?$(this).addClass("textFieldError"):($(this).removeClass("textFieldError"),$(this).attr("style","font-family: 'proxima_nova_rgbold'; color: #00a1dd !important"))});$(".scfForm input[type='submit']").click(function(n){var t=0,r,i;$(".scfForm input[type='text'], .scfForm input[type='password']").each(function(){$(this).removeClass("textFieldError");$(this).val()==""||$(this).val()==null?($(this).addClass("textFieldError"),t=1):$(this).hasClass("scfSingleLineTextBox")&&/([bcdfghjklmnpqrstvwxyz]{6})/i.test($(this).val().toLowerCase())==!0?($(this).addClass("textFieldError"),t=1):$(this).hasClass("scfTelephoneTextBox")&&/^[\s()+-]*([0-9][\s()+-]*){6,20}$/.test($(this).val())==!1&&($(this).addClass("textFieldError"),t=1)});$(".scfCheckbox").each(function(){$(this).is(":visible")&&($(this).find("label").css("color",""),$(this).find("input[type='checkbox']").is(":checked")||($(this).find("label").first().css("color","#f5861f"),t=1))});$(".scfForm select.scfDropList").each(function(){$(this).removeClass("textFieldError");$(this).val()=="Country"?($(".scfForm select.scfDropList").addClass("textFieldError"),t=1):($(".scfForm .scfDropList[formdefault~='Country']").val()=="United States"&&$(this).val()=="State"||$(".scfForm .scfDropList[formdefault~='Country']").val()=="Canada"&&$(this).val()=="Province")&&($(this).addClass("textFieldError"),t=1);$(this).val()=="Job Title"&&($(".scfForm select.scfDropList").addClass("textFieldError"),t=1);$(this).val()=="Industry";$(this).val()=="Databases your organization or team manage"});grecaptcha&&grecaptcha.getResponse().length>0||(t=1);var f=$("#BusinessEmail").val()=="true",e=$(".scfForm .scfEmailBorder input.scfEmailTextBox").val().toLowerCase(),u=["@gmail","@yahoo","@hotmail","@aol","@msn"];if(f){for(r=!1,i=0;i<u.length;i++)e.indexOf(u[i])!=-1&&(r=!0);r&&!confirm('Just checking — is this your primary business email address?\nIf no, click "Cancel" to update. If yes, click "OK" to proceed.')&&(t=1)}t==1&&(n.preventDefault(),$(this).attr("data-popup-submit","true"))})});GuestInfoServiceProxy=function(){this._baseURL="/Services/GuestInfoService.svc/";this._callType="POST"};GuestInfoServiceProxy.prototype={DoAjax:function(n,t,i,r){t||(t={});$.ajax({type:this._callType,url:this._baseURL+n,data:t,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){typeof i!="undefined"&&i(n)},error:function(n,t,i){typeof r!="undefined"&&r(n,t,i)}})},GetContactInformation:function(n,t){this.DoAjax("GetContactInformation",null,n,t)}},function(n){n.IderaServices=function(){};n.IderaServices.GuestInfomation=new GuestInfoServiceProxy}(jQuery)