function setFrameSource(frameId, source) {
    var frame = document.getElementById(frameId);
    if (frame == null && document.all != null) {
        document.all[frameId];
    }
    if (frame == null && window.frames != null) {
        frame = window.frames[frameId];
    }
    if (frame != null && source != null) {
        if (frame.contentDocument != null) {
            frame.contentDocument.location.replace(source);
        } else if (frame.contentWindow != null) {
            frame.contentWindow.document.location.replace(source);
        } else {
            frame.src = source;
        }
    }
}



function track(lang, path) {
    if (lang != null || path != null) {
        //alert("track: " + lang + " " + path);
        
        try {
            //wt
            var wt = "/tracking/" + lang + path + ".htm";
            dcsMultiTrack("DCS.dcsuri", wt, "WT.ti", lang + path);
        } catch (e) {
            //ignore
        }
        
        //ga
        try {
            var ga = "/analytics/" + lang + path + ".htm";
            setFrameSource("analyticscontent", ga);
        } catch (e) {
            //ignore
        }
    }
}