	// *******************************************
	// metascripts.js
	// Handles drawing of all metadata.html pages
	// JJK 6/24/99
	// *******************************************

	// need this for version update script
	function setVersionWName( string_in ) {
  		theVersion = getVersionVar(string_in);
	}


	// gets URL at level just above "devmodules"
	function getRoot() {
   		var newStringM = new String( document.URL );
   		var searchedForStringM = "devmodules";
   		newStringM = 
		   newStringM.substring( 0, newStringM.indexOf( searchedForStringM ) );

		return newStringM;
	}

	// Write HTML to start off page
	document.writeln("<BLOCKQUOTE>");
	document.writeln("<H1>Module Metadata</H1>");
	document.writeln("<P>");
	document.writeln("<TABLE WIDTH=90% BORDER=0 CELLSPACING=4 cellpadding=10>");

	// Methods to set the variables
	var theTitle;
	function setTitle( string_in ) {
		theTitle = string_in;
	}

	var theDescription;
	function setDescription( string_in ) {
		theDescription = string_in;
	}

	var theVersion;
	function setVersion( string_in ) {
		theVersion = getVersionVar(string_in);
	}

	var theFormat;
	function setFormat( string_in ) {
		theFormat = string_in;
	}

	var theResourceID;
	function setResourceID( string_in ) {
		theResourceID = string_in;
	}

	var theKeywords;
	function setKeywords( string_in ) {
		theKeywords = string_in;
	}

	var theDate;
	function setPubDate( string_in ) {
		theDate = string_in;
	}

	var theAuthors;
	function setAuthors( string_in ) {
		theAuthors = string_in;
	}

	var theOtherContributors;
	function setOtherContributors( string_in ) {
		theOtherContributors = string_in;
	}

	var theEducationalObjectives;
	function setEducationalObjectives( string_in ) {
		theEducationalObjectives = string_in;
	}

	var thePrerequisites;
	function setPrerequisites( string_in ) {
		thePrerequisites = string_in;
	}

	var theUseTime;
	function setUseTime( string_in ) {
		theUseTime = string_in;
	}

	// Helper methods to write individual TABLE rows
	function writeMetadata( type, string_in ) {
		document.writeln( "<TR><TD ALIGN=RIGHT VALIGN=TOP BGCOLOR=\"linen\"><H4>" );
		document.writeln( type + "</TD><TD BGCOLOR=fffae8><H5>" + string_in + "</TD></TR>" );
	} // end writeMetadata()

	function writeLinkedMetadata( type, string_in, link ) {
		document.writeln( "<TR><TD ALIGN=RIGHT VALIGN=TOP BGCOLOR=\"linen\"><H4>" + type + "</TD>" );
		document.writeln( "<TD BGCOLOR=fffae8><H5><A HREF=\""  + link +  "\">" + string_in + "</A></TD></TR>" );
	} // end writeVersion()

	// does it all below
	function writeAllMetadata() {
		writeMetadata( "Title", theTitle );
		writeMetadata( "Description", theDescription );
		writeLinkedMetadata( "Version", theVersion, "webhtml/versionkey.html" );
		writeMetadata( "Format", theFormat );
		writeLinkedMetadata( "Publisher", "Project Links at RPI \&lt;info@links.math.rpi.edu&gt;", "mailto:info@links.math.rpi.edu" );
		writeLinkedMetadata( "Resource Identifier", theResourceID, "." );
		writeMetadata( "Keywords", theKeywords );
		writeMetadata( "Date", theDate );
		writeMetadata( "Authors", theAuthors );
		writeMetadata( "Other Contributors", theOtherContributors );
		writeMetadata( "Language", "en-US (US English)" );
		writeMetadata( "Resource Type", "Tutorial" );
		writeMetadata( "Educational Objectives", theEducationalObjectives );
		writeMetadata( "Granularity", "Unit" );
		writeMetadata( "Learning Level", "College" );
		writeMetadata( "Organization", "Hyperdimensional" );
		writeMetadata( "Pedagogy", "Guided Discovery" );
		writeMetadata( "Prerequisites", thePrerequisites );
		writeMetadata( "Presentation", "Verbal, Images, Multi-User" );
		writeMetadata( "User Support", "Yes" );
		writeMetadata( "Use Time", theUseTime );
		writeMetadata( "Price Code", "0" );
		writeMetadata( "Rights Management", "Use Rights: Use +" );
		writeLinkedMetadata( "Platform", "Project Links base technical requirements", "webhtml/techreq.html" );

		document.writeln( "</TABLE></P></BLOCKQUOTE>" );
	}
