function switchDisplay(objId){
	obj = document.getElementById(objId);
	arrow = document.getElementById(objId+'_image');
	if(obj.style.display == 'none') {
		obj.style.display = 'block';
		arrow.innerHTML='-';
	}
	else {
		obj.style.display = "none";
		arrow.innerHTML='+';
	}
}


var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")

//--- при наборі підраховує скільки залишилось символів
function textCounter(field, countfield, maxlimit)
{
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}

//--- підсвітка малюнків, банерів і т.д.
  function highlightit(obj)  {
    if (obj.filters.alpha.opacity < 100)
     obj.filters.alpha.opacity +=5;
    else
		clearInterval(highlighting);
  };
  //---------------	
  function low(obj)  {
    clearInterval(highlighting);
    obj.filters.alpha.opacity = 10;
  };
  //----------------
  function high(obj) {
    theobject = obj;
	if (obj.filters.alpha.opacity == 10)
		highlighting=setInterval("highlightit(theobject)", 30);
  };
