function printDisclaimer() {
	/* deprecated
//  document.write('<CENTER>\n<HR size=1>\n');
  document.write('<table width=100% cellpadding=0 cellspacing=0><tr><td align=center class=footer>\n');
  document.write('Data provided by <A target="new" HREF="http://www.ddfplus.com">ddfplus</A> and subject to\n');
  document.write('<A HREF="?page=ddfplus">terms of use</A>. \n');
  document.write('Site by Barchart.com. Copyright 2006.\n');
  document.write('<A HREF="?page=agreement">User Agreement Applies</A>.<BR>\n');
  document.write('Data is exchange delayed. 10 minutes for CME, CBOT, KCBT, WCE, and MGEX. 30 minutes for NYBOT and NYMEX.<P>\n');
  document.write('Data and information is provided for informational purposes only, and is not intended for trading purposes. \n');
  document.write('</td></tr></table>\n');
  document.write('</CENTER>\n');
  */
}

var query_string = (new String(document.location.search)).substring(1);
var page = '';
var sym = '';
var mode = '';

var pairs = query_string.split('&');

for (var i = 0; i < pairs.length; i++) {
  var ary = pairs[i].split('=');
  if (ary[0] == 'page') {
    page = ary[1];
  }
  else if (ary[0] == 'sym') {
    sym = ary[1];
  }
  else if (ary[0] == 'mode') {
    mode = ary[1];
  }
  else if (ary[0] == 'view') {
    page = ary[1];
  }
}

//document.write('<style>\n');

//document.write('  .bcTxtBox {\n');
//document.write('    font-family: Verdana, Tahoma, Arial; background-color: #ffffe0; color: #191979; border: groove 1px #eeeeee; font-size:11px;\n');
//document.write('  }\n');

//document.write('  .bcText {\n');
//document.write('    font-family: Verdana, Tahoma, Arial; font-size:11px;\n');
//document.write('  }\n');

//document.write('  .bcLink {\n');
//document.write('    font-family: Verdana, Tahoma, Arial; font-size:11px; color: #191979; text-decoration: underline;\n');
//document.write('  }\n');

//document.write('  .bcLink:visited {\n');
//document.write('    font-family: Verdana, Tahoma, Arial; font-size:11px; text-decoration: underline;\n');
//document.write('  }\n');

//document.write('  .bcLink:hover {\n');
//document.write('    font-family: Verdana, Tahoma, Arial; font-size:11px; color: #191979; text-decoration: none;\n');
//document.write('  }\n');

//document.write('  .bcBut {\n');
//document.write('    cursor: hand; border-right: #000000 1px solid; border-top: #000000 1px solid; padding-left: 1px; font-weight: bold; font-size: 11px; border-left: #000000 1px solid; color: #440000; border-bottom: #000000 1px solid; font-family: Tahoma, Arial; background-color: #f4f5f6;\n');
//document.write('  }\n');

//document.write('  </style>\n');

//if (page != 'spreads') {
//  document.write('| <a href="?page=quote" class=bcLink>Quotes</a> | <a href="?page=spreads" class=bcLink>Spreads</a> | <a href="?page=ccharts" class=bcLink>Custom Charts</a> |<p>');
//}

var mydomain = document.domain.split('.');
var nodisc = false;

if((mydomain[1] == 'barchart') || (mydomain[1] == 'mgex')) {

  document.write('<SCR' + 'IPT LANGUAGE="JavaScript" SRC="');
  if (page == 'quote') {
    document.write('http://sites.barchart.com/pl/mgex/quote.htx?' + query_string);
  }
  else if (page == 'quote2') {
    document.write('http://sites.barchart.com/pl/mgex/quote2.htx?' + query_string);
  }
  else if (page == 'front') {
    document.write('http://sites.barchart.com/pl/mgex/frontpg_js.htx?' + query_string);
  }
  else if (page == 'chart') {
    document.write('http://customer1.barchart.com/cgi-bin/mri/mgexchart.htx?data=a&' + query_string);
  }
  else if (page == 'spreads') {
    document.write('http://sites.barchart.com/pl/mgex/spreads.htx?' + query_string);
  }
  else if (page == 'mspreads') {
    document.write('http://sites.barchart.com/pl/mgex/mspreads.htx?' + query_string);
  }
  else if (page == 'mspread') {
    document.write('http://customer1.barchart.com/cgi-bin/mri/mspread.htx?' + query_string);
  }
  else if (page == 'optqte') {
    document.write('http://sites.barchart.com/pl/mgex/optqte.htx?' + query_string);
  }
  else if (page == 'ccharts') {
    document.write('http://sites.barchart.com/pl/mgex/ccharts.htx?' + query_string);
  }
  else if (page == 'agreement') {
    document.write('http://content.barchart.com/shared/agreement.php');
  }
  else if (page == 'ddfplus') {
    document.write('http://sites.barchart.com/pl/mgex/ddfplus.htx?' + query_string);
  }
  document.write('"></SCR' + 'IPT>\n');
}
else {
  document.write('!!! Unauthorized Access !!!');
}

if (!nodisc) {
  document.write('<SCR' + 'IPT LANGUAGE="JavaScript" SRC="http://content.barchart.com/shared/disclaimer.php"></SCR' + 'IPT>\n');
}
