/** Form Field Validation implementet with Strategy-Pattern
* @requires class.js
*/

/** @class */
Validate = Class(
/** @lends Validate */
{	
	/** 
	* @param strategy {String} Names the corresponding Class  
	* @param input {Object} HTML Element 
	* @returns {Integer} Returns True or False if Input is Valid, -1 if strategy does not exist.
	*/
	isValid: function(strategy, input)
	{
		/** Calling strategie */
		return ( typeof window[strategy] == "function") && (typeof window[strategy].prototype == 'object' )? new window[strategy]().isValid( input ) : -1;			
	}
})
