function writeHead( title, show_desc ) {
	document.writeln( "<link rel=\"stylesheet\""
	  +" type=\"text/css\""
          +" href=\"http://depts.washington.edu/comgrnd/include/conf.css\">" );
	document.writeln( "<title>" + title + "</title>" );
	if( show_desc != null && show_desc == true ) {
		document.writeln( "<center>" );
		document.writeln( "<img src=\"http://depts.washington.edu/comgrnd/images/dclogo.jpg\"" +
	" alt=\"Creating a Disciplinary Commons in Computer Science\""
	+ " height=\"100\">");
		document.writeln( "</center>" );
	}
}

function writeFullFooter( date ) {
  document.writeln( "<hr>" );
  writeJoshCC();
  writeAcknowledgements();
  writeLastUpdated( date );
}

function writeFullUKFooter( date ) {
  document.writeln( "<hr>" );
  writeSallyCC();
  writeUKAcknowledgements();
  writeLastUpdated( date );
}

function writeAcknowledgements( ) {
	document.writeln( "This material is based upon\n"
	  + "work supported by the Institute of Technology of\n"
          + "the University of Washington, Tacoma (UWT),\n"
          + "a Founder's Endowment Grant from UWT, funding from\n"
          + "the State Board of Community and Technical Colleges\n"
          + "and a Special Projects Grant from ACM/SIGCSE.  Any opinions,\n"
          + "findings, and conclusions or recommendations expressed\n"
          + "in this material are those of the authors and do not\n"
          + "necessarily reflect the views of the funders.\n" );
}

function writeUKAcknowledgements( ) {
	document.writeln( "<div class=footer>This material is based upon\n"
	  + "work supported by a National Teaching Fellowship.  Any opinions,\n"
          + "findings, and conclusions or recommendations expressed\n"
          + "in this material are those of the authors and do not\n"
          + "necessarily reflect the views of the funders.\n" 
          + "</div>");
}

function writeLastUpdated( date ) {
	if( date != "" ) {
         document.writeln( "<div class=footer>Last updated: " + date +	"</div>");
        }
}

function writeJoshCC( ) {
  document.writeln("<div class=footer><!-- Creative Commons License -->");
  document.writeln("<p><a rel=\"license\"" +
       " href=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">");
  document.writeln("<img alt=\"Creative Commons License\"" +
       " border=\"0\"" +
       " src=\"http://creativecommons.org/images/public/somerights20.gif\" />" +
       "</a>");
  document.writeln("This work is licensed under a");
  document.writeln(" <a rel=\"license\"" +
       " href=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">" +
       " Creative Commons Attribution-NonCommercial-ShareAlike 2.5" +
       "License</a>.</p></div>");
  document.writeln("<!-- /Creative Commons License -->");
  document.writeln("<!--");
  document.writeln("<rdf:RDF xmlns=\"http://web.resource.org/cc/\"");
  document.writeln("xmlns:dc=\"http://purl.org/dc/elements/1.1/\"");
  document.writeln("xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
  document.writeln("<Work rdf:about=\"\">");
  document.writeln("<dc:title>Disciplinary Commons</dc:title>");
  document.writeln("<dc:date>2005</dc:date>");
  document.writeln("<dc:description>Text material developed for" +
   " workshop on creating a disciplinary commons in Computer Science" +
   " using Course Portfolios</dc:description>");
  document.writeln("<dc:creator><Agent>" +
      "<dc:title>Josh Tenenberg</dc:title>" +
      "</Agent></dc:creator>");
  document.writeln("<dc:rights><Agent>" +
      "<dc:title>Josh Tenenberg</dc:title>" + 
      "</Agent></dc:rights>");
  document.writeln("<dc:type rdf:resource=\"http://purl.org/dc/dcmitype/Text\" />");
  document.writeln("<dc:source rdf:resource=\"http://depts.washington.edu/comgrnd/\"/>");
  document.writeln("<license rdf:resource=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\" />");
  document.writeln("</Work>");
  document.writeln("<License rdf:about=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/Reproduction\" />");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/Distribution\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/Notice\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/Attribution\" />");
  document.writeln("<prohibits rdf:resource=\"http://web.resource.org/cc/CommercialUse\" />");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/DerivativeWorks\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/ShareAlike\" />");
  document.writeln("</License>");

  document.writeln("</rdf:RDF>");
  document.writeln("-->");
}

function writeSallyCC( ) {
  document.writeln("<div class=footer><!-- Creative Commons License -->");
  document.writeln("<p><a rel=\"license\"" +
       " href=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">");
  document.writeln("<img alt=\"Creative Commons License\"" +
       " border=\"0\"" +
       " src=\"http://creativecommons.org/images/public/somerights20.gif\" />" +
       "</a>");
  document.writeln("This work is licensed under a");
  document.writeln(" <a rel=\"license\"" +
       " href=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">" +
       " Creative Commons Attribution-NonCommercial-ShareAlike 2.5" +
       "License</a>.</p></div>");
  document.writeln("<!-- /Creative Commons License -->");
  document.writeln("<!--");
  document.writeln("<rdf:RDF xmlns=\"http://web.resource.org/cc/\"");
  document.writeln("xmlns:dc=\"http://purl.org/dc/elements/1.1/\"");
  document.writeln("xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
  document.writeln("<Work rdf:about=\"\">");
  document.writeln("<dc:title>Disciplinary Commons</dc:title>");
  document.writeln("<dc:date>2005</dc:date>");
  document.writeln("<dc:description>Text material developed for" +
   " workshop on creating a disciplinary commons in Computer Science" +
   " using Course Portfolios</dc:description>");
  document.writeln("<dc:creator><Agent>" +
      "<dc:title>Sally Fincher</dc:title>" +
      "</Agent></dc:creator>");
  document.writeln("<dc:rights><Agent>" +
      "<dc:title>Sally Fincher</dc:title>" + 
      "</Agent></dc:rights>");
  document.writeln("<dc:type rdf:resource=\"http://purl.org/dc/dcmitype/Text\" />");
  document.writeln("<dc:source rdf:resource=\"http://www.cs.kent.ac.uk/people/staff/saf/dc/\"/>");
  document.writeln("<license rdf:resource=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\" />");
  document.writeln("</Work>");
  document.writeln("<License rdf:about=\"http://creativecommons.org/licenses/by-nc-sa/2.5/\">");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/Reproduction\" />");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/Distribution\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/Notice\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/Attribution\" />");
  document.writeln("<prohibits rdf:resource=\"http://web.resource.org/cc/CommercialUse\" />");
  document.writeln("<permits rdf:resource=\"http://web.resource.org/cc/DerivativeWorks\" />");
  document.writeln("<requires rdf:resource=\"http://web.resource.org/cc/ShareAlike\" />");
  document.writeln("</License>");

  document.writeln("</rdf:RDF>");
  document.writeln("-->");
}

