    function sendMessage(vid, type)
    {
        var url = window.location;
        if (type == null || type == "info") {
            window.open("SendMessage.aspx?carid=" + vid + "&type=info&url=" + url, "SendMessage", "toolbar=no,menu=no,width=350px,height=500px"); }
        else {
            window.open("SendMessage.aspx?carid=" + vid + "&type=fw&url=" + url, "SendToFriend", "toolbar=no,menu=no,width=350px,height=550px"); }
    }
    function addToFavs(){
        var title = document.title;
        var url = window.location;
        if (window.sidebar) // firefox
            window.sidebar.addPanel(title, url, "");
        else if(window.opera && window.print){ // opera
            var elem = document.createElement('a');
            elem.setAttribute('href',url);
            elem.setAttribute('title',title);
            elem.setAttribute('rel','sidebar');
            elem.click();
        } 
        else if(document.all)// ie
            window.external.AddFavorite(url, title);
    }
    function CreateLogo()
    {
        var sTagData = ""; //"<object classid='clsid:d27cdb6e-ae6d-11cf-96444553540000b8-' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab' width='510' height='223' id='Header' align='middle'>";
        //sTagData += "<param name='allowScriptAccess' value='sameDomain' />";
        //sTagData += "<param name='movie' value='Header.swf' />";
        //sTagData += "<param name='quality' value='high' />";
        //sTagData += "<param name='bgcolor' value='#ffffff' />";
        sTagData += "<embed src='/Header.swf' quality='high' bgcolor='#ffffff' width='530' height='223' name='Header' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
        //sTagData += "</object>"
        document.getElementById("ctl00_tdLogo").innerHTML = sTagData;
        //document.write(sTagData)
    }
   function ShowHide(e)
   {
        var ctl = document.getElementById(e);
        if (ctl.style.display == "")
            ctl.style.display = "none";
        else
            ctl.style.display = "";
   }