function lfnCommonVar() {
    s.prop1 = lsProp1;
    s.prop2 = lsProp2;
    s.prop3 = lsProp3;
    s.prop4 = "Homes";
    s.prop5 = lsProp5;
    s.prop12 = s.prop5 + "|" + s.prop4;
    s.prop16 = "MEN";
    s.prop17 = s.prop4 + "|" + s.prop16;
    s.prop21 = "MENMEDIA" + "|" + s.prop16;
    s.pageName = PageName1;
    s.channel = lsChannel;
    s.hier1 = PageName1.replace(/\//g, '|');
    s.eVar15 = s.channel;
    s.eVar16 = s.prop1;
    s.eVar17 = s.prop2;
    s.eVar18 = s.prop3;
    s.eVar19 = lsGender;
    s.eVar22 = lsPostCode;
}
function lfnSetSection() {
    //DM_addEncToLoc("Section", Section);
    //DM_tag()
}
function lfnSetUpdateProfilePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetUnSubscribePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetErrorPage() {
    try {
        lfnSetSection();
        //lfnCommonVar();
        s.prop4 = "Homes";
        s.prop5 = lsProp5;
        s.prop12 = s.prop5 + "|" + s.prop4;
        s.prop16 = "MEN";
        s.prop21 = "MENMEDIA" + "|" + s.prop16;
        s.pageType = "errorPage";
        s.eVar19 = lsGender;
        s.eVar22 = lsPostCode; 
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetSavePropertiesHomePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event6";
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetSaveSearchPage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event26";
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetLoginHomePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event19";
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetRegisterConfirmHomePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event18";
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetRegisterHomePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetHomePage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        WriteFooter();
    }
    catch (Err) {
    }
}
function removePoundSign(a) {
    return lsPrice = a.substring(1, a.length)
}
function lfnViewProperty() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.prop3 = lsProp3;
        s.prop10 = lsprop10
        if (lsscAdd != "") {
            s.events = "event6";
        } else {
            s.events = "event3";
        }
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetAgentResult() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event4";
        if (lsLocation.trim() != "") {
            s.prop6 = lsLocation;
            s.prop24 = lsLocation;
        } else {
            s.prop6 = "";
            s.prop24 = "no search term";
        }
        s.prop7 = lsChannel;
        //s.prop21 = drpSearchArea;
        s.prop34 = s.prop7 + '|' + s.prop6;
        if (lsAgentName.toLowerCase() != "all") {
            s.prop43 = lsAgentName
        } else {
            s.prop43 = lsAgentName
        }
        if (lscount == "0") {
            s.prop25 = "zero";
        } else {
            s.prop25 = lscount;
        }
        s.eVar3 = s.prop6;
        s.eVar5 = s.prop24;
        s.eVar11 = s.prop34;
        s.eVar28 = s.prop43;

        if (lscount == "0")
            s.prop8 = 'location:'.concat(s.prop6, '|agent:', s.prop43, '|neworresale:', drpNeworresale, '|addedwithin:', drpAddedWithin, '|propertytype:', drpPropertyType, '|area:', drpSearchArea, '|min:', s.prop38, '|max:', s.prop39, '|bedrooms:', s.prop40, '|buyingrenting:', lsBuyingRenting);

        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetNoSearchResultPage() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.prop8 = 'location:'.concat(s.prop6, '|agent:', s.prop43, '|neworresale:', drpNeworresale, '|addedwithin:', drpAddedWithin, '|propertytype:', drpPropertyType, '|area:', drpSearchArea, '|min:', s.prop38, '|max:', s.prop39, '|bedrooms:', s.prop40, '|buyingrenting:', lsBuyingRenting);
        WriteFooter();
    }
    catch (Err) {
    }
}
function lfnSetResult() {
    try {
        lfnSetSection();
        lfnCommonVar();
        s.events = "event4";
        s.prop7 = lsChannel;
        //s.prop21 = drpSearchArea;
        if (lsLocation.trim() != "Location i.e. Postcode or town ".trim()) {
            s.prop6 = lsLocation;
            s.prop24 = lsLocation;
        } else {
            s.prop6 = "";
            s.prop24 = 'no search term';
        }
        if (lscount == "0") {
            s.prop25 = "zero";
        } else {
            s.prop25 = lscount;
        }
        s.prop34 = s.prop7 + '|' + s.prop6;
        if (drpMinPrice != "No Min" && drpMinPrice != "") {
            drpMinPrice = removePoundSign(drpMinPrice);
            drpMinPrice = drpMinPrice + " pounds"
        }
        if (drpMaxPrice != "No Max" && drpMaxPrice != "") {
            drpMaxPrice = removePoundSign(drpMaxPrice);
            drpMaxPrice = drpMaxPrice + " pounds"
        }
        s.prop38 = drpMinPrice;
        s.prop39 = drpMaxPrice;
        s.prop40 = drpBedrooms;
        s.eVar3 = s.prop6;
        s.eVar5 = s.prop24;
        s.eVar11 = s.prop34;
        s.eVar24 = s.prop38;
        s.eVar25 = s.prop39;

        if (lscount == "0")
            s.prop8 = 'location:'.concat(s.prop6, '|agent:', s.prop43, '|neworresale:', drpNeworresale, '|addedwithin:', drpAddedWithin, '|propertytype:', drpPropertyType, '|area:', drpSearchArea, '|min:', s.prop38, '|max:', s.prop39, '|bedrooms:', s.prop40, '|buyingrenting:', lsBuyingRenting);

        WriteFooter();
    }
    catch (Err) {
    }
}
function WriteFooter() {
    var a = s.t();
    if (a) {
        document.write(a)
    }
}
