// library.js
// General Shared Library File for B2b Web Site
// Copyright (C) 1995 - 2003 Barchart.com. All Rights Reserved


function OpenDemo(p) {
  if(p == 1) {
    var k = 'http://sites.barchart.com/pl/demo';
    window.open(k, '_new', 'width=800,height=600,scrollbars,top=20,left=20');
  }
  else if(p == 2) {
    var k = 'http://www.barchart.com/barchart.ppt';
    window.open(k, '_new', 'width=800,height=600,scrollbars,top=20,left=20');
  }
  else if(p == 3) {
    var k = 'http://www2.barchart.com/market.asp?code=xaa';
    window.open(k, '_new', 'width=800,height=600,scrollbars,top=20,left=20');
  }
  else if(p == 4) {
    var k = 'http://sites.barchart.com/pl/bceqt';
    window.open(k, '_new', 'width=800,height=600,scrollbars,top=20,left=20');
  }
}


function verify(f) {
  if(f.name.value == '') {
	alert("You must supply your name in the \'name\' field.");
    return false;
  }
  else if (f.email.value == ""){
    alert("You must supply an email address in the \'email\' field.");
    return false;
  }
  else if (f.product.value == "") {
    alert("You must supply the products(s) you are interested in."); 
    return false;
  }
  else { return true; }
}


function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
defaultStatus="Barchart.com B2B - Your financial content provider"





