var myrules = {	
	'input' : function( element )
	{
		element.onfocus = function()
		{
			this.className+=" sffocus";
		}
		
		element.onblur = function()
		{
			this.className = this.className.replace( new RegExp( "sffocus\\b" ), "" );
		}
	},
	
	'.ValidateMailOnBlur' : function( element )	
	{ 
		element.onblur = function() 
		{	
			ValidateMail( this.value ); 
			this.className = this.className.replace( new RegExp( "sffocus\\b" ), "" );
		}
				
		element.onfocus = function()
		{
			this.className+=" sffocus";
		}
		
		element.onchange = function()
		{
			$( "MXRequestID" ).value = "-1";
		}
	},
	
	'#txtBankCode' : function( element )	
	{ 
		element.onblur = function() 
		{	
			this.className = this.className.replace( new RegExp( "sffocus\\b" ), "" );
			
			if( this.value.length == 8 )
			{
				CheckBank( this.value );
			}
			else
			{
				$( "txtBank" ).innerHTML = "";
				$( "divBank1" ).style.visibility = "hidden";
				//$( "divBank2" ).style.visibility = "hidden";
			}
		}	
		
		element.onfocus = function()
		{
			this.className+=" sffocus";
		}
		
		element.onkeyup  = function()
		{
			if( this.value.length == 8 )
			{
				CheckBank( this.value );
			}
			else
			{
				$( "txtBank" ).innerHTML = "";
				$( "divBank1" ).style.visibility = "hidden";
				//$( "divBank2" ).style.visibility = "hidden";
			}
		}
	}/*,
	
	
	'#txtPostalCode' : function( element )
	{
		element.onblur = function() 
		{	
			MapPlz( this.value ); 
			this.className = this.className.replace( new RegExp( "sffocus\\b" ), "" );
		}	
		
		element.onfocus = function()
		{
			this.className+=" sffocus";
		}
		
		element.onchange = function()
		{
			$( "PLZCityMap" ).value = "-1";
			
		}
	},
	
	'#btnNext' : function( element )
	{
		element.onclick = function()
		{
			if( $( 'inhalt' ) != null && document.getElementsByTagName( "form" )[ 0 ] != null )
			{
				new Effect.Puff( document.getElementsByTagName( "form" )[ 0 ], { duration: 1.5 } );
				return true;
			}
		}
	},
	
	'#vsSummary' : function( element )
	{
		element.onmousemove = function()
		{
			new Effect.Pulsate( this, { endcolor: '#ceebfd', startcolor: '#ffffff', duration: 2 } );
		}
	}

	*/
	/**/
};

Behaviour.register(myrules);	