var CAT_FILTER = function () {	
	this.cat_el = getElement( "nav_catalogue" );
	this.mark_el = getElement( "nav_marks" );
	}
CAT_FILTER.prototype.changeBothSelectLists = function ( pp_id , from_where , mark_mod_id ) {
	//alert( 1111 );
	result = false;
	if( pp_id != '' && pp_id != -1 ) {
		if( this.cat_el && this.mark_el ) {
			result = CAT_SERVER_FOR_FILTER_OBJ.loadFragmentInToElement( "/scripts/for_catFilter.php?nav_id_catalogue=" + pp_id + "&nav_type_data=catalogue&from_root=true&type=" + from_where + "&mark_mid=" + mark_mod_id, this.cat_el, "<small class=gray>Загрузка...</small>" ); 
			//if( result ) cat_el.disabled = false;
			result = CAT_SERVER_FOR_FILTER_OBJ.loadFragmentInToElement( "/scripts/for_catFilter.php?nav_id_catalogue=" + pp_id + "&nav_type_data=marks&from_root=true&type=" + from_where + "&mark_mid=" + mark_mod_id, this.mark_el, "<small class=gray>Загрузка...</small>" ); 
			//if( result ) mark_el.disabled = false;
			}
		}
	else if( pp_id == -1 ) {
		if( this.cat_el && this.mark_el ) {
			this.cat_el.innerHTML  = "<select name = 'nav_id_catalogue' disabled></select>";
			this.mark_el.innerHTML = "<select name = 'nav_id_mark' disabled></select>";
			}
		}
	return result;
	}
CAT_FILTER.prototype.changeMarksSelectList = function ( pp_id , from_where , mark_mod_id ) {
	result = false;
	if( pp_id != '' && pp_id != -1 ) {
		if( this.mark_el ) {
			result = CAT_SERVER_FOR_FILTER_OBJ.loadFragmentInToElement( "/scripts/for_catFilter.php?nav_id_catalogue=" + pp_id + "&nav_type_data=marks&type=" + from_where + "&mark_mid=" + mark_mod_id, this.mark_el, "<small class=gray>Загрузка...</small>" );
			}
		}
	else if( pp_id == -1 ) {
		root_pp_id = document.forms.filter_form.nav_id_root.value;
		if( this.mark_el && root_pp_id != -1 ) {
			result = CAT_SERVER_FOR_FILTER_OBJ.loadFragmentInToElement( "/scripts/for_catFilter.php?nav_id_catalogue=" + root_pp_id + "&nav_type_data=marks&type=" + from_where + "&mark_mid=" + mark_mod_id, this.mark_el, "<small class=gray>Загрузка...</small>" );
			}
		}
	return result;
	}