function ieHover() {
	var _hoverEl = ["navigation","hover-ie"];
	var _elHoverClass = ["li","ul"];
	
	for (var z=0; z<_hoverEl.length; z++) {
		
		var _el = document.getElementById(_hoverEl[z]);
		if (_el){
			var _nodes = _el.getElementsByTagName(_elHoverClass[z]);
			for (var i=0; i<_nodes.length; i++)
			{
				if (_nodes[i].getElementsByTagName('div')[0]) {
					_nodes[i].onmouseover = function() 
					{
						
						this.className += " hover";
					}
					_nodes[i].onmouseout = function()
					{
						this.className = this.className.replace(" hover", "");
					}
				}
			}
		}
	}
	
}

if (window.attachEvent && !window.opera){
	window.attachEvent("onload", ieHover);
}

function KeyDownHandler(btn, e)
{
  // process only the Enter key
  if({ 13:1}[e.which||e.keyCode])
  {
    // cancel the default submit
    e.returnValue=false;
    e.cancel = true;
    // submit the form by programmatically clicking the specified button
    btn.click();
  }
}

function validateSearch(tbSearch, tbDefaultValue)
{	
	if(tbSearch.value == '') 
	{	  
	  return false;
	}		
	if(tbSearch.value == tbDefaultValue) 
	{	  
	  return false;
	}	
	return true;
}