/******************************************************************************
* pbV5RefLinkedListUtils.js
*******************************************************************************

*******************************************************************************
*                                                                             *
* Copyright 2000-2002								                          *
*                                                                             *
******************************************************************************/

function PbV5LinkedListUtils()
{
	this._ctrls = new Array();
}
PbV5LinkedListUtils.prototype = {

registerLinkedListCtrl:function(formName,fieldName,subFieldIndex)
{
	var i = this._ctrls[formName+"_"+fieldName];
	if (i == null || i<subFieldIndex)
		this._ctrls[formName+"_"+fieldName] = subFieldIndex;
},

onChange:function(formName,fieldName,subFieldIndex)
{
	if (this._ctrls[formName+"_"+fieldName]>subFieldIndex)
		document.forms[formName].submit();
}

}

var pbV5LinkedListUtils = new PbV5LinkedListUtils();
