
if (typeof FF == 'undefined')
{
	var FormFactory = new Function('');
	var FF = new FormFactory();
}

FormFactory.prototype.setSelect = function(elm, val)
{
	jQuery('#' + elm).val(val);
	return jQuery('#' + elm).get(0);
}

FormFactory.prototype.setFFHTML = function(elm, val)
{
}

FormFactory.prototype.noSubmitOnEnter = function(e)
{
	var key;
	
	if (window.event)
		key = window.event.keyCode;
	else
		key = e.which;
	
	if (key == 13)
		return false;
	
	return true;
}
