var KB_SEARCH = function () {
	this.group_span = getElement( 'group_check_span' );
	this.type_doc_span = getElement( 'type_doc_check_span' );
	this.type_doc_check_span = getElement( 'in_type_doc_check_span' );
	this.in_type_doc_check = getElement( 'in_type_doc_check' );
	this.last_search_bokm_id;
	}
KB_SEARCH.prototype.searchRequest = function ( pp_id , bokm_id , search_word , group_check , type_doc_check ) {
	if( bokm_id == "search_bookmark" ) {
		//if( this.last_search_bokm_id != '' ) bokm_id = this.last_search_bokm_id;
		bokm_id = this.last_search_bokm_id;
		}
	this.last_search_bokm_id = bokm_id;
	return KB_CONTENT_OBJ.printContent( pp_id , '' , bokm_id , '' , '' , '' , search_word , group_check , type_doc_check , true ); 
	}
KB_SEARCH.prototype.setVisibility = function ( pp_id , bokm_id , bokm_name ) {
	if( this.group_span && this.type_doc_span && this.type_doc_check_span ) {
		if( pp_id != '' ) this.group_span.style.display = "block";
		else this.group_span.style.display = "none";
		if( bokm_id != '' && bokm_id != 'all_docs' && bokm_id != 'search_bookmark' ) {
			this.type_doc_span.style.display = "block";
			this.type_doc_check_span.innerHTML = "Искать <b>" + bokm_name + "</b>";
			}
		else {
			this.type_doc_span.style.display = "none";
			this.in_type_doc_check.checked = false;
			}	
		}
	}	
