// JavaScript Document
function doSearchEnter(e)
{
	var KeyID = (window.event) ? e.keyCode : e.which;
	if(KeyID == 13)
	{
		document.getElementById('searchbarbutton').focus();
		//var searchvalue = document.getElementById('searchhartac').value;
		//alert("ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&","")));
		//window.location.href = "ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&",""));
		//window.open("ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&","")));
		//window.location.href = "home.aspx";
	}
}
function searchButton()
{
	var searchvalue = document.getElementById('searchhartac').value;
	window.location.href = "ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&",""))+"&PageProduct=1";
}
function doSearchEnterH(e)
{
	var KeyID = (window.event) ? e.keyCode : e.which;
	if(KeyID == 13)
	{
		document.getElementById('searchbarbuttonh').focus();
		//var searchvalue = document.getElementById('searchhartac').value;
		//alert("ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&","")));
		//window.location.href = "ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&",""));
		//window.open("ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&","")));
		//window.location.href = "home.aspx";
	}
}
function searchButtonH()
{
	var searchvalue = document.getElementById('searchhartach').value;
	window.location.href = "ProductDisplay.aspx?ProductSearch="+escape(searchvalue.replace("&",""))+"&PageProduct=1";
}
function doSearchFocus()
{
	var a= doSearchFocus.arguments;
	if(document.getElementById("searchhartac").value == 'Search')
	{
		document.getElementById("searchhartac").value = '';
	}
}
function doSearchFocusOut()
{
	var a= doSearchFocus.arguments;
	svariable= document.getElementById("searchhartac").value;
	if(document.getElementById("searchhartac").value == '')
	{
		document.getElementById("searchhartac").value = 'Search';
	}
}
function doSearchFocusH()
{
	var a= doSearchFocus.arguments;
	if(document.getElementById("searchhartach").value == 'Search')
	{
		document.getElementById("searchhartach").value = '';
	}
}
function doSearchFocusOutH()
{
	var a= doSearchFocus.arguments;
	svariable= document.getElementById("searchhartach").value;
	if(document.getElementById("searchhartach").value == '')
	{
		document.getElementById("searchhartach").value = 'Search';
	}
}
