	function SetTextAndBGColor(layername,bgcolor,textcolor) {
		document.all[layername].style.backgroundColor='#'+bgcolor;
		document.all[layername].style.color='#'+textcolor;
	}
	function SetTextAndBGColor2(layername,bgcolor,textcolor) {
		document.all[layername].style.backgroundColor=bgcolor;
		document.all[layername].style.color='#'+textcolor;
	}
	function SetBGColor(layername,bgcolor) {
		document.all[layername].style.backgroundColor='#'+bgcolor;
	}

	function SetBGR(layername,backgroundfile) {
		document.all[layername].style.background='URL('+backgroundfile+')';
	}

	function SetLocation(url) {
		if (url == '/barrikada') {
			document.location = url+'/news';
		} else {
			document.location = url;
		} 
	} 
function divSt(name)
{
	var t=document.getElementById(name);
	  if (t.style.display=='none') { 
          t.style.display='block';
		  
		  t.style.padding='20px';
		  
         }
      else {
	      t.style.display='none';
				  t.style.backgroundColor='transparent';
		  t.style.padding='0';
		  t.style.border='none';
	     }
}
	function OpenWindow(WinURL,WinHandle) {
		window.open(WinURL,WinHandle,'toolbar=yes,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
//		return false;
	}

function imgOpen(imgURL,imgWidth,imgHeight,Title) {

var features;
  var top = (screen.height - imgHeight)/2, left = (screen.width - imgWidth)/2;
  if(top < 0) top = 0;
  if(left < 0) left = 0;
  features = ',top=' + top + ',left=' +left;

var imgWndw=window.open('','_blank','width='+imgWidth+',height='+
  imgHeight+',toolbar=no,menubar=no,location=no,status=no,'+
  'resizable=yes,scrollbars=no'+features);
var imgTitle=(Title)?Title:imgURL+": "+imgWidth+'x'+imgHeight;
with (imgWndw.document){
  open();
  write('<ht'+'ml><he'+'ad><ti'+'tle>'+imgTitle+'</ti'+'tle>'+
  '</he'+'ad><bo'+'dy leftmargin="0" topmargin="0" '+
  'rightmargin="0" bottommargin="0" marginwidth="0" '+
  'marginheight="0"><img src="'+imgURL+'" width="'+imgWidth+
  '" height="'+imgHeight+'" border="0" alt="'+imgTitle+
  '"></bo'+'dy></ht'+'ml>');
  close();
}
return false
}

