    //if (top == self) self.location.href = "index.html"

    function turnOnDisplay(i) {
      var e = document.getElementById(i);
      if (e) {
        e.style.display = 'block';
        e.backgroundPosition = 'top';
      } else {
        alert ("Error: turnOnDisplay#1");
      }
    }

    function turnOffDisplay(i) {
      var e = document.getElementById(i);
      if (e) {
        e.style.display = 'none';
      } else {
        alert ("Error: turnOffDisplay#1");
      }
    }

    function toggleDisplay(i) {
      var e = document.getElementById(i);
      if (e) {
        if ('none' == e.style.display) {
          e.style.display = 'block';
          e.backgroundPosition = 'top';
        } else if ('none' != e.style.display) {
          e.style.display = 'none';
        } else {
          alert ("error: Unknown display '" + e.style.display + "'");
          e.style.display = 'block';
          e.backgroundPosition = 'top';
        }
      } else {
        alert ("Error: toggleDisplay#1");
      }
    }

// I got this from http://www.web-source.net/web_development/currency_formatting.htm
// I don't think much of the code but I did not have the time to look for a real solution
  function CommaFormatted(amount) {
    var delimiter = ","; // replace comma if desired
    var a = amount.split('.',2)
    var d = a[1];
    var i = parseInt(a[0]);
    if(isNaN(i)) { 
      return ''; 
    }
    var minus = '';
    if(i < 0) { 
      minus = '-'; 
    }
    i = Math.abs(i);
    var n = new String(i);
    var a = [];
    while(n.length > 3) {
      var nn = n.substr(n.length-3);
      a.unshift(nn);
      n = n.substr(0,n.length-3);
    }
    if(n.length > 0) { 
      a.unshift(n); 
    }
    n = a.join(delimiter);
    if(d.length < 1) { 
      amount = n; 
    } else { 
      amount = n + '.' + d; 
    }
    amount = minus + amount;
    return amount;
  }

// I got this from http://www.web-source.net/web_development/currency_formatting.htm
// I don't think much of the code but I did not have the time to look for a real solution
  function CurrencyFormatted(amount) {
    var i = parseFloat(amount);
    if(isNaN(i)) { i = 0.00; }
    var minus = '';
    if(i < 0) { minus = '-'; }
    i = Math.abs(i);
    i = parseInt((i + .005) * 100);
    i = i / 100;
    s = new String(i);
    if(s.indexOf('.') < 0) { s += '.00'; }
    if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
    s = minus + s;
    return s;
  }

  function formatPrice(amount) {
    amount = CurrencyFormatted(myAngleiron_price);
    amount = CommaFormatted(temp);
    return amount;
  }

