﻿var disableButtons	= function(){
	$( "button" ).attr( "disabled",true );
	return true;
}
var initInputFocus	=	function(){
	$( "textarea,input[type=text],input[type=password]" ).each(function(){
		var $this	=		$(this);
		$this.addClass("textInput")
			.focus( function(){ $this.addClass( "focus" ) } )
			.blur( function(){ $this.removeClass( "focus") } );
	});
}
var initGlobal	=	function(){
	$( "form" ).submit( disableButtons );
	initInputFocus();
}
$( initGlobal );
