﻿function webtrendsTrack(DCSuri, ti) {
    dcsMultiTrack('DCS.dcsuri', DCSuri, 'WT.ti', ti, 'WT.dl', '0');
}

function FireAtlasTag(pixel) {
    var timestamp = new Date();
    var qs = "?qstr=random=" + Math.ceil(Math.random() * 99999999) + timestamp.getUTCFullYear() + timestamp.getUTCMonth() + timestamp.getUTCDate() + timestamp.getUTCHours() + timestamp.getUTCMinutes() + timestamp.getUTCSeconds() + timestamp.getUTCMilliseconds();
    var uri = pixel + qs;

    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = uri;
    document.getElementsByTagName('head')[0].appendChild(script);
}

function bingRedirect() {
    window.location.href = 'http://www.bing.com/search?q=' + document.getElementById("tbSearchText").value;
}

function mscomRedirect() {
    window.location.href = 'http://search.microsoft.com/results.aspx?q=' + document.getElementById("tbSearchText").value;
}
