function hide_search_form()
{
	document.getElementById("search_form").style.display = "none";
	document.getElementById("search_form_trigger").innerHTML = '<a href="#" onclick="show_search_form(); return false;">Дополнительно+</a>';
}
function show_search_form()
{
	document.getElementById("search_form").style.display = "block";
	document.getElementById("search_form_trigger").innerHTML = '<a href="#" onclick="hide_search_form(); return false;">Дополнительно -</a>';
}

function swapColor(id, bgcolor, color) {
  if (bgcolor != '') { document.getElementById(id).style.backgroundColor = bgcolor; }
  if (color != '') { document.getElementById(id).style.color = color; }
}



function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}


function markmenu(elmnt)
{
document.getElementById(elmnt).className='inner_spam_menu_selected';
}
function unmarkmenu(elmnt)
{
document.getElementById(elmnt).className='inner_spam_menu';
}







function swapDecoration(id, decoration) {
  document.getElementById(id).style.textDecoration = decoration;
}

function gotoUrl(url) {
  window.location.href = url;
}

function setCheckedTrue(id, bool) {
  if (bool != 1) {
    document.getElementById(id).checked = true;
  }
}

function setCheckedFalse(id, bool) {
  if (bool != 1) {
    document.getElementById(id).checked = false;
  }
}

