// 
// File:	FormFactory.js
// Author:	Rob Allen
// Created:	January 15, 2002
//
// Purpose:	To provide access to a plethora of web forms through a factory method. This class
// 		is 'aware' of each of the different form types, hiding such details from the 
// 		form's consumer. Each form must support a minimum, common, well-known interface.
//
// Copyright (c) 2002, ThoughtByDesign. All rights reserved.
// 
// This computer program is protected by copyright law and international treaties.
// Unauthorized reproduction or distribution of this program, or any portion of it,
// may result in severe civil and criminal penalties, and will be prosecuted to the
// maximum extent possible under the law.
// 
// Modification History: 
//	RLA, 1/15/2002, Creation and initial definition
// 


// Empty ctor ok. All methods are static.
function FormFactory() {
}


// returns a reference to a form of the requested formType (must be one of a set of 
// predefined constants)
//
FormFactory.getForm = function(formType,title) {

	switch (formType) {
		case FormFactory.k_formType_simple:
			return new SimpleForm(title);
			break;
	} // switch()
} // getForm()


FormFactory.k_formType_simple = "simpleForm";
FormFactory.k_formType_ = "";


