	window.addEvent('domready', function(){	
			var tooltip = new Tips($$('#Tips'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
	
				onShow: function(toolTip) {
					this.fx.start(1);
				},
				onHide: function(toolTip) {
					this.fx.start(0);
				}
			});
			


		
		$$( 'input.phone' ).addEvent( 'keypress',function( e ) {
				e = new Event( e );
				if( isKeyNumeric( e ) ) autotab( e );
						
		} );
						
		
		
		$$( 'input.postal' ).addEvent( 'keypress',function( e ) {
	  			e = new Event( e );
	  			var total = 0;
	  				
				$each( $$( 'input.postal' ),function( item ) {  
	  					total += item.getValue(  ).length;
	  					item.value = item.value.toUpperCase(  );
   				} );
   					
				switch( ( total % 2 ) == 0 )
   				{
   						case true:
   							if( isKeyAlpha( e ) ) autotab( e );
   							break;
   						case false:
   							if( isKeyNumeric( e ) ) autotab( e );
   							break;
   				}
   		} );
   		
   			
			var autotab = function( e ) {
					
					if( ( e.target.value.length + ( window.ie ? 0 : 1 ) ) >= e.target.getProperty( 'maxlength' ).toInt(  ) && ( sibling = e.target.getNext(  ) ) != null ) sibling.focus(  );	
		 	}
		 			
		 			
			var isKeyNumeric = function( e ) {
		 			if( e.key.test( /backspace|tab|delete|up|down|left|right/ ) ) return false;
		 			
					if( !e.key.test( /[0-9]/ ) ) { 
		 					e.stop(  );
		 					return false;
		 			}
		 			return true;
			}
						
			var isKeyAlpha = function( e ) {
		 			if( e.key.test( /backspace|tab|delete|up|down|left|right/ ) ) return false;
	  				
					if( !e.key.test( /[a-zA-Z]/ ) ) { 
		 					e.stop(  );
							return false;				
					}				
							return true;			
			}				
		 			
				
		});
	
	