
function Chapter(aNumber, aTitle, aURL, aSGML_ID)
	{
		   //Properties
		   this.Number = aNumber;
		   this.Title  = EscapeChars(aTitle);
		   this.URL	   = aURL;
		   this.SGML_ID= aSGML_ID;
	}

//XSLT has some reserved character entities, we replace them here
function EscapeChars(aTitle){
	var ReFormattedTitle;
	ReFormattedTitle = aTitle.replace( /&apos;/g , "\'" );
	ReFormattedTitle = ReFormattedTitle.replace( /&lt;/g , "<" );
	ReFormattedTitle = ReFormattedTitle.replace( /&gt;/g , ">" );
	ReFormattedTitle = ReFormattedTitle.replace( /&quot;/g , '"' );
	ReFormattedTitle = ReFormattedTitle.replace( /&amp;/g , "&" );

	return ReFormattedTitle;
}


