﻿    function ShowAuction(auctionID) {
        document.getElementById(auctionID).style.display = "block";
    }

    function HideAuction(auctionID) {
        document.getElementById(auctionID).style.display = "none";   
    }

    function stopRKey(evt) {
        var evt = (evt) ? evt : ((event) ? event : null);
        var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
        if ((evt.keyCode == 13)) { return false; }
    }

// document.onkeypress = stopRKey; 

 // this function shows the pop-up when user moves the mouse over the link
    function Show(evt, interval1, interval2, interval3) {

        var e = (window.event) ? window.event : evt;
        if (document.documentElement && !document.documentElement.scrollTop)
        // IE6 +4.01 but no scrolling going on
        {
            //      alert(document.documentElement.scrollTop);
            x = e.clientX + document.documentElement.scrollLeft;  // get the mouse left position
            y = e.clientY + document.documentElement.scrollTop + 10; // get the mouse top position
        }
        else if (document.documentElement && document.documentElement.scrollTop)
        // IE6 +4.01 and user has scrolled
        {
            //       alert(document.documentElement.scrollTop);
            x = e.clientX + document.documentElement.scrollLeft;  // get the mouse left position
            y = e.clientY + document.documentElement.scrollTop + 10; // get the mouse top position
        }
        else if (document.body && document.body.scrollTop) {
            //   alert(document.documentElement.scrollTop);
            x = e.clientX;   //+ document.body.scrollLeft;  // get the mouse left position
            y = e.clientY;   //+ document.body.scrollTop + 35; // get the mouse top position
        }

        var el = document.getElementById("time_change_content");
        if (el.hasChildNodes())
            el.removeChild(el.lastChild);
        var div1 = document.createElement("div");
        var para1 = document.createElement("p");
        var para2 = document.createElement("p");
        var para3 = document.createElement("p");

        para1.appendChild(document.createTextNode(interval1));
        para2.appendChild(document.createTextNode(interval2));
        para3.appendChild(document.createTextNode(interval3));

        div1.appendChild(para1);
        div1.appendChild(para2);
        div1.appendChild(para3);

        document.getElementById("time_change_content").appendChild(div1);
        document.getElementById("time_change").style.display = "block";
        document.getElementById("time_change").style.top = y + 'px';
        document.getElementById("time_change").style.left = x + 'px';
    }
    // this function hides the pop-up when user moves the mouse out of the link
    function Hide() {
        document.getElementById("time_change").style.display = "none";
    }

    function fbs_click() { u = location.href; t = document.title; window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436'); pageTracker._trackEvent('Banners', 'Click', 'FaceBook Upper'); return false; }