function addNewRow(id,newRow){
  if(document.getElementById(id)){
    document.getElementById(id).innerHTML=document.getElementById(id).innerHTML+newRow;
    }
  }

function show(Obj){  
  if(document.getElementById(Obj).style.display == 'block')
    document.getElementById(Obj).style.display = 'none';
     else
      document.getElementById(Obj).style.display = 'block';
    }

function ch_mark(Obj){
  if(document.getElementById(Obj).innerHTML=='+'){
    document.getElementById(Obj).innerHTML='–';
    }else{
      document.getElementById(Obj).innerHTML='+';
      }

  }

function bg(id,clas){
  document.getElementById(id).className=clas;
}           

function tofavs(){
  var title="БУмир.ком - бесплатные объявления"; 
  var url="http://bumir.com/";
  if(window.sidebar){
   window.sidebar.addPanel(title,url,"");
   }else if(window.external){
     window.external.AddFavorite(url,title);
     }else if(window.opera && window.print){
        alert("Ваш браузер не поддерживает автоматического добавления сайта в закладки.\nВоспользуйтесь, пожалуйста, функциями браузера, что бы добавить БУмир.ком в избранное...");
        return false;
	}
}

function openclose(id){
  if(document.getElementById(id).className=='normal'){
    document.getElementById(id).className='opened';     
    }else{
      document.getElementById(id).className='normal';     
      }
}           
