function Show_and_hide( ){
			
			// метод класса, который создает ссылки на объект
			this.do_link = function( o ){
				return document.getElementById( o );
			}	  
			// метод класса, который показывает или скрывает элемент
			this.show_and_hide = function( block,message ){
			//alert ("OK");					
				//this.do_link ( block ).style.display = "none";
				//alert (this.display_style ( block ));
				//alert (this.display_style(block));	
				if (this.display_style( block ) == "none"){ 
					this.do_style ( block,'');
					//this.do_link ( block ).style.display = "block";
					//this.print_message ( message,'скрыть' );
				}	
				else{ 
					this.do_style ( block,'none');
					//this.print_message ( message,'показать' );
					//alert (this.do_link ( message ).innerHTML);
				}	
			}
			
			this.print_message = function( message,text_message ){
				this.do_link ( message ).innerHTML=text_message;
			}
			
			// метод для проверки стиля блока
			this.display_style = function ( block ){
				return this.do_link ( block ).style.display; 
			}
			
			// метод для присвоения стиля блоку
			this.do_style = function ( block,type ){
				return this.do_link ( block ).style.display = type; 
			}
			
		}
		
		var sh = new Show_and_hide( );