//' object that contains one single reference
//' reference consists of :
//'		the Help ID (strId), 
//'		a reference to the document ID (intDoId) 
//'		a reference to the paragraph ID (intCoId)
function Reference(strId, intRoomId, intDeskId, intBookId, intDoId, intCoId) {
	this.id=strId;
	this.room_id=intRoomId;
	this.desk_id=intDeskId;
	this.book_id=intBookId;
	this.do_id=intDoId;
	this.co_id=intCoId;
}
Reference.prototype.toUrl=Reference_toUrl;

//' function to convert a reference to a url
function Reference_toUrl() {
	if (this.co_id>0) {//' cdc 01-08-2001 kan geen # meegeven want indien dat wel wordt gedaan
					//'	dan wordt #.. achteraan gezet in ie5 dus de variabelen achter ? wordt gelijk
					//'	achter .htm gezet--> /../../blabla.htm?var1=..&var2=..#..  , in ie6 is het 
		return "do_" + this.do_id + ".htm#a_" + this.co_id;
	} else {
		return "do_" + this.do_id + ".htm";
	}
}

