function showTooltip()
{
	
}
function DisplayHelp(selection)
{
	var comments;

	if(selection=='Description')
	{
		comments = 'Minimum 3 chars each.  (Ex: Pacific, Sani, Sidewalk) This is NOT an address search.';
	}
	if(selection=='WorkOrder')
	{
		comments = 'Minimum 3 characters. (EX: DC1, AB3, LD3)';
	}
	if (selection == 'ReferenceNumber')
	{
		comments = 'Minimum 2 characters.  (EX: 120, 3605, 8610)';
	}
	if (selection == 'Barcode')
	{
		comments = '(EX:  19001, 571423, 586072)';
	}
	document.getElementById("pHelp").innerText = comments;
	document.getElementById("SearchStr").value = "";	
	document.getElementById("SearchStr").focus();	
}
function ReloadList(SearchType, SearchString)
{
	if (SearchType == "WorkOrder" || SearchType == "ReferenceNumber")
	{
		ResultFrame.location.href = "grid.aspx?SearchType=" + SearchType + "&SearchString=" + SearchString;
	}
}
function Go()
{
	var SearchType = document.getElementById("SearchType").value;
	if (SearchType != "Description" && SearchType != "Barcode")
	{
		var strString = document.getElementById("SearchStr").value;
		//document.getElementById("post").value = "";
		document.getElementById("post").value = "NewSearchWORef";
		//document.getElementById("barcode").value = "";
		//ResultFrame.location.href = "grid.aspx?SearchType=" + SearchType + "&SearchString=" + strString;
	}
	else
	{
		document.getElementById("pHelp").innerText = "Loading...";
		document.getElementById("post").value = "NewSearch";
	}
	
	if (window.event.keyCode!="13") 
	{ 
		FindDrawing.submit();
	}
}
function CheckKey() 
{ 
	if (window.event.keyCode=="13") 
	{ 
		Go();
	} 
} 

