function Search1881(url)
{
	var inputId = 'search1881text';
	var DHTML = (document.getElementById || document.all || document.layers);
	
	if (!DHTML)
		return;
	
	if (url)
	{
		var searchText;
		
		if (document.getElementById)
		{
  			searchText = document.getElementById(inputId);
		}
		else if (document.all)
		{
			searchText = document.all[inputId];
		}
		else if (document.layers)
		{
   			searchText = document.layers[inputId];
		}
		
		if (searchText)
		{
			var param = encodeURI(searchText.value);
			window.open(url+param,'searchwindow');
		}
	}
}
var doOnce = true;
function setQuery(link)
{
    var searchField = document.getElementById('searchFieldQuery');
    if(searchField != null && doOnce)
    {
        doOnce = false;
	    var searchValue = searchField.value;
	    if(searchValue.length > 0)
	    {
	        var href = link.href;
		    link.href = href + '?query=' + encodeURIComponent(searchValue);
	    }
	}
}
function fnTrapKD (btnId, e) 
{
   if (e.keyCode == 13)
   { 
     var btn = document.getElementById (btnId);
     e.returnValue = false;
     e.cancel = true;
     btn.click ();
   } 
}

function img_rep() {
    if (!document.getElementsByTagName('input')) return;
    var allInput = document.getElementsByTagName('input');
    for (i = 0; i < allInput.length; ++i) {
        if (allInput[i].type == 'image') {
			allInput[i].onmouseover = function () {
                this.src = this.src.replace(/\.gif/, '_over.gif');
            }
            allInput[i].onmouseout = function () {
                this.src = this.src.replace(/_over/, '');
            }
        }
    }
    
	
}


window.onload = function ()
{
img_rep();
}






