
	function fill(thisValue) {
		jQuery('#search').val(thisValue);
		setTimeout("jQuery('#suggestions').hide();", 200);
	}

  function addElement(parentId, elementTag, elementId, elementClass, html)
  {
  	// Adds an element to the document
  	var p = document.getElementById(parentId);
  	var newElement = document.createElement(elementTag);
  	newElement.setAttribute("id", elementId);
  	newElement.setAttribute("class", elementClass);
  	newElement.innerHTML = html;
  	p.appendChild(newElement);
  }

  function removeElement(elementId) {
  	// Removes an element from the document
  	var element = document.getElementById(elementId);
  	element.parentNode.removeChild(element);
  }
  
  
function make_hover(elmnt){
	//elmnt.style.className = '';	
	//elmnt.style.color = 'red';
	if(elmnt.parentNode.className != 'stable'){
			elmnt.parentNode.className = 'selected';
		}
	}

function remove_hover(elmnt){
	if(elmnt.parentNode.className == 'selected'){
			elmnt.parentNode.className = '';		
		}
	}
