var oTemplate = new Template();

function Template() {
	this.oDDM = new DropDownMenu('DDMHorzMenu');
	
	this.initBeforeLoad = function(){
	}
	
	this.initAfterLoad = function() {
		this.oDDM.enableMenu();
	}
	
	this.fontSizer = function(action) {
		var oFontSizer = new FontSizer();
		if (action == 'dec') {
			oFontSizer.dec();
		} else {
			oFontSizer.inc();
		}			
	}
	
	this.validForm = function(formObj) {
		if(formObj.UserName.value=="") {
			alert("Please enter User Name");
			formObj.UserName.focus();
			return false;
		}	
		
		if(formObj.Password.value=="") {
			alert("Please enter Password");
			formObj.Password.focus();
			return false;
		}
		
		return true;	
	}
}

