<!--POST
var preheader = "Share these 10 tips to become their cold winter hero.";
var preheaderUrl = "https://www.honeywellhome.com/us/en/canada-products-and-deals";
var eMail = user.attr("eMail");
var firstName = user.attr("firstName");
var disclaimer = "";
var customerid = user.attr("id");
var language = "EN"; // EN or FR
var englishMMID = ""; // links to English version
var frenchMMID = ""; // links to French version
var messageName = "Message 1 of 3"; // on right side of preheader
var seriesNumber = "1"; // 1, 2, 3 or 4; progress bar


function init(val,def){if(!val)return def; return val;}

function myTrim(x) {
    return x.replace(/^\s+|\s+$/gm,'');
}

var listID = "2987";
var mmid = masterinfo.getID();
var sqlName = "getListId";

//get list id to get source code
//multitable.setID(sqlName, mmid);
//if (multitable.getNext(sqlName)){
//  listID = multitable.getValue(sqlName, "listid");
//}

list.setListId(2987);
if (listID!="") {
  EventContext.addEventContext("listLoadId", listID);
}

var sourceCode = "";

sourceCode = init(list.attr(9),"") + ""; //get source code from list attr

if (typeof(sourceCode)=="string") {
    sourceCode = myTrim(sourceCode); //trim off the leading/trailing spaces
}    

// set up tracking and get values for dynamic portions of email
var campaignCode = sourceCode.substr(0,10);
var customerType = sourceCode.substr(11,2);
var persona = sourceCode.substr(13,1);
var appType = sourceCode.substr(15,1);
var purchaseChannel = sourceCode.substr(16,1);
var newMover = sourceCode.substr(17,1);
var htmlVersion = sourceCode.substr(18,3); // get full HTML version, example "01A"
var htmlVersionLetter = htmlVersion.substr(2,1); // get just the letter of HTML version, example "A"
var countryCode = sourceCode.substr(21,2);
var language = sourceCode.substr(23,1);
//var demandResponseCode = sourceCode.substr(23,3);
var audience = sourceCode.substr(24,3);
var ymvt = user.attr("Cust_Type");

var trackingCode = "utm_source=email_4a&utm_medium=email&utm_campaign=new_hive_heating_season_102020&utm_content=" + audience + "&ymvt=" + ymvt + "&utm_term=existing_customer";

// replace country code, no source codes this time
var countryCode = user.attr("countrycode");

if (countryCode == "CA") {
  retailCTA = "https://www.honeywellhome.com/us/en/find-a-retailer-ca";
} else {
  retailCTA = "https://www.resideo.com/us/en/find-a-retailer";
}

var d = new Date(); var currentYear = d.getFullYear();

// GREETING
var greeting = "";

if (language == "EN") {
  if (firstName == null || firstName == "" || firstName == " ") {
    greeting = "Learn more about your Honeywell thermostat"
  } else {
    greeting = firstName + ", learn more about your Honeywell thermostat";
}
} else if (language == "FR") {
  if (firstName == null || firstName == "" || firstName == " ") {
    greeting = ""
  } else {
    greeting = firstName + ", learn more about your Honeywell thermostat";
  }
}

POST--><insert><name>Event_Context</name></insert>Honeywell Home

View this Honeywell Home email with images:
@HTML_PREVIEW_LINK&msgVersion=web

To ensure you receive our future emails, please add
HoneywellHome@email.honeywellhome.com to your address book now.

Privacy Policy:
https://corporate.resideo.com/privacy/english

Unsubscribe:
http://email.honeywellhome.com/honeywellPrefCenter.jsp

(C) `currentYear` Resideo Technologies, Inc. All rights reserved.
The Honeywell Home trademark is used under license from Honeywell International, Inc.
These products are manufactured by Resideo Technologies, Inc., and its affiliates.
901 E 6th St. Austin, TX 78702