﻿   
function handleEnter(e,txtCtl)
{
	
	var characterCode;
	if(e && e.which)
	{
		e = e;
		characterCode = e.which;
	} 
	else 
	{
		e = event;
		characterCode = e.keyCode;
	}

	if(characterCode == 13)
	{
		//window.location.href='showpage.aspx?contentid=985&value='+document.getElementById('txtsearch').value;
		window.location.href='search.shtm?query='+document.getElementById(txtCtl).value;
		return false;
	} 
	else
	{
		return true;
	}
}

function gsearch(txtCtl)
{
    
    if (document.getElementById(txtCtl).value!='')
    {
	    window.location.href='search.shtm?query='+document.getElementById(txtCtl).value;
	}
}

