function HitMatch(intDocumentID
                 ,intMenuItemID
				 ,strTitle
                 ,strCoId
				 ,strPopup_url
				 ,strPopup_strFeats
				 ,strPopup_name
				 ,strBookName
				 ,blnTabSet
				 ,strParentTabset
				 ) {
	this.intDocumentID = intDocumentID;
	this.intMenuItemID = intMenuItemID;
	this.strTitle = strTitle;
	this.intPropertyHits = 0;
	this.intContentHits = 0;
	
	//added by Ramon, for openening popups (knop alinea documents)
	this.strCoId = strCoId;
	this.strPopup_url = strPopup_url;
	this.strPopup_strFeats = strPopup_strFeats;
	this.strPopup_name = strPopup_name;
	this.strBookName=strBookName;
	this.tabSet=blnTabSet;
	this.parentTabset=strParentTabset;	
	//temp alert
	/*alert("HitMatch added: " 
	     +"intDocumentID: " + intDocumentID
         +"intMenuItemID: " + intMenuItemID
		 +"strTitle: " + strTitle
		 +"strCoId: " + strCoId
		 +"strPopup_url: " + strPopup_url
		 +"strPopup_strFeats: " + strPopup_strFeats
		 +"strPopup_name: " + strPopup_name
		 );*/
}

HitMatch.prototype.contains					= HitMatch_contains;
HitMatch.prototype.addHit					= HitMatch_addHit;
HitMatch.prototype.getPropertyHitCount		= HitMatch_getPropertyHitCount;
HitMatch.prototype.getContentHitCount		= HitMatch_getContentHitCount;
HitMatch.prototype.getMenuItemID			= HitMatch_getMenuItemID;
HitMatch.prototype.getDocumentID			= HitMatch_getDocumentID;
HitMatch.prototype.getTitle					= HitMatch_getTitle;
HitMatch.prototype.getStrCoId				= Hitmatch_getStrCoId;
HitMatch.prototype.getStrPopup_url			= Hitmatch_getStrPopup_url;
HitMatch.prototype.getStrPopup_strFeats		= Hitmatch_getStrPopup_strFeats;
HitMatch.prototype.getStrPopup_name			= Hitmatch_getStrPopup_name;
HitMatch.prototype.getBookName			= Hitmatch_getBookName;
HitMatch.prototype.isTabSet			= Hitmatch_isTabSet;
HitMatch.prototype.getParentTabset			= Hitmatch_getParentTabset;

function HitMatch_contains(intDocumentID, intMenuItemID) {
	return this.intDocumentID == intDocumentID && this.intMenuItemID == intMenuItemID;
}

function HitMatch_addHit(blnPropertyHit) {
	if (blnPropertyHit) this.intPropertyHits++;
	else this.intContentHits++;
}

function HitMatch_getPropertyHitCount() {
	return this.intPropertyHits;
}

function HitMatch_getContentHitCount() {
	return this.intContentHits;
}

function HitMatch_getMenuItemID() {
	return this.intMenuItemID;
}

function HitMatch_getDocumentID() {
	return this.intDocumentID;
}

function HitMatch_getTitle() {
	return this.strTitle;
}

function Hitmatch_getStrCoId() {
	return this.strCoId;
}

function Hitmatch_getStrPopup_url() {
	return this.strPopup_url;
}
function Hitmatch_getStrPopup_strFeats() {
	return this.strPopup_strFeats;
}
function Hitmatch_getStrPopup_name() {
	return this.strPopup_name;
}
function Hitmatch_getBookName() {
	return this.strBookName;
}
function Hitmatch_isTabSet() {
	return (this.tabSet);
}
function Hitmatch_getParentTabset() {
	return this.parentTabset
}

