
      function getCurrentSpotAsk(){
          $.ajax({
              type: "POST",
              url: "currentSpotAsk.php",
              data: "",
              success: function(html) {
                  $("#currentSpotAsk").html(html);
              }
          });
      }

      function getCurrentSpotBid(){
          $.ajax({
              type: "POST",
              url: "currentSpotBid.php",
              data: "",
              success: function(html) {
                  $("#currentSpotBid").html(html);
              }
          });
      }

      /* Script taken from leemessenger.co.uk - Please do not remove this line */

      function getSpot() {
          if ( !document.getElementById ) return false;

          getCurrentSpotAsk();
          getCurrentSpotBid( );

          holdtime = 1;
          //
          movement = setTimeout("getSpot()",1000*60*holdtime); // 3 seconds
      }

      /* Custom onload function */
      function addLoadEvent(func) {
          var oldonload = window.onload;
          if (typeof window.onload != 'function') {
              window.onload = func;
          } else {
              window.onload = function() {
                  oldonload();
                  func();
              }
          }
      }

      /* trigger onload */
      addLoadEvent(getSpot);
      //-->
