function ClearSearchForm(form)  {
  form.q.value = "";
}

// Show/hide elements

function toggleVisibility(id,action) {

  if (action == "show") { var state = "block"; }
  if (action == "hide") { var state = "none"; }

  //safe function to show an element with a specified id
		  
  if (document.getElementById) { // DOM3 = IE5, NS6

    document.getElementById(id).style.display = state;
  }
  else {
    if (document.layers) { // Netscape 4
      document.id.display = state;
    }
    else { // IE 4
      document.all.id.style.display = state;
    }
  }
}