function newWindow(url, name, params)
{
	if (name == null) name = 'new'; 
	if (params == null) 
	params = 'scrollbars,top=0,left=0';
	if(navigator.appName == 'Netscape')
	{
		params = 'scrollbars,top=0,left=0,width='+screen.width+',height='+screen.height;
		obj = window.open(url, name, params);
	}
	else
	{
		obj = window.open(url, name, params);	
		obj.resizeTo(screen.availwidth,screen.availheight);
	}
	obj.focus();
}
function resize_iframe()
{
	document.getElementById("glu").style.height=(screen.height-200);
}
function search(site_url)
{
	var str = '';
	str = str + site_url + 'search';
	if (document.getElementById('method').value && document.getElementById('method').value != 'main')
	{
		str = str + '/' + document.getElementById('method').value;
	}		
	if (document.getElementById('kwds').value)
	{
		str = str + '/keywords/' + document.getElementById('kwds').value;
	}
	if (document.getElementById('match').value && document.getElementById('match').value == 'any')
	{
		str = str + '/match/' + document.getElementById('match').value;
	}	
	window.location = str;
	
}

function showhide(id)
{
	obj = document.getElementById(id);
	if (obj.style.display == 'none')
	{
		obj.style.display = '';
	}
	else
	{
		obj.style.display = 'none';
	}
}