function ShowHiden(obj1,flag){//закрывает или открывает объект
    if (typeof(obj1)!='object') {
    if (document.getElementById(obj1)!=null)
		obj1=document.getElementById(obj1);
	}
    if (typeof(obj1)=='object') {
    if (flag==0){//открываем
       with (obj1.style) {visibility='hidden'; display='none';};
    }else{//закрываем
       with (obj1.style) {visibility='visible'; display='inline';};
    }; };
}
