// add to Whitepaper descriptions
function WriteWhitepaperInfo()
{
  document.write(
    "<br><ul style='margin-left:2em; padding-left:0;'><li><a href='formats.php'>Whitepapers are in PDF format, and require Adobe Reader.</a></li><li>You must be logged into an account to purchase downloadable products.</li><li>Clamshell Beach Press allows instructors to distribute these whitepapers to students for $1.00 per copy, with royalty fees sent to <a href='../mailingaddress.php'>Clamshell Beach Press</a>.</li><li>Some (but not all) downloadable whitepapers are also available on the <a href='product_info.php?products_id=29'>Operations and Management Whitepapers and Workbooks CD</a>. These files are updated often.  The downloadable whitepapers will always be the latest versions of these files.</li></ul>");
}

// add to Casestudy descriptions
function WriteCasestudyInfo()
{
  document.write(
    "<br><ul style='margin-left:2em; padding-left:0;'><li><a href='formats.php'>Case Studies are in PDF format, and require Adobe Reader.</a></li><li>You must be logged into an account to purchase downloadable products.</li><li>Clamshell Beach Press allows instructors to distribute these teaching cases to students for $1.00 per copy, with royalty fees sent to <a href='../mailingaddress.php'>Clamshell Beach Press</a>.</li></ul>");
}

// add to Excel Workbook descriptions
function WriteExcelworkbookInfo()
{
  document.write(
    "<br><ul style='margin-left:2em; padding-left:0;'><li><a href='formats.php'>Excel workbooks require MS Excel 2000 or later.</a></li><li>You must be logged into an account to purchase downloadable products.</li><li>Clamshell Beach Press allows instructors to distribute these Excel Workbooks to students for $1.00 per copy, with royalty fees sent to <a href='../mailingaddress.php'>Clamshell Beach Press</a>.</li><li>Some (but not all) downloadable Excel workbooks are also available on the <a href='product_info.php?products_id=29'>Operations and Management Whitepapers and Workbooks CD</a>. These files are updated often.  The downloadable Excel workbooks will always be the latest versions of these files.</li></ul>");
}

function WriteAuthorSubjectPages(author, subject, pages)
{
  var str = '';
  if (author.length <= 0) author = "Professor Arthur V. Hill, Carlson School of Management, University of Minnesota";
  str += '<br>Author: ' + author;
  if (subject.length > 0) str += '<br>Subject: ' + subject;
  if (pages > 0) str += '<br>Length: ' + pages + ' pages';
  document.write(str);
}

function WriteAuthorSubjectPagesTable(author, subject, pages)
{
  var str = "<table cellpadding='0' cellspacing='0'><tr><td>&nbsp;</td><td>&nbsp</td></tr>";
  if (author.length <= 0) author = "Professor Arthur V. Hill, Carlson School of Management, University of Minnesota";
  if (author.length > 0)
  {
    str += "<tr><td class='productDesc' valign='top'>Author: </td><td class='productDesc'>" + author + "</td></tr>";
  }
  if (subject.length > 0)
  {
    str += "<tr><td class='productDesc' valign='top'>Topic: </td><td class='productDesc'>" + subject + "</td></tr>";
  }
  if (pages > 0)
  {
    str += "<tr><td class='productDesc' valign='top'>Length: </td><td class='productDesc'>" + pages + "</td></tr>";
  }
  str += "</table>";
  document.write(str);
}
