
	function setUnUsed(searchField)
	{
		var defaultValue;	
		switch (searchField.name)
		{
			case "Symbol":
				defaultValue = "Symbol(s)";
				break;
			case "value":
				defaultValue = "Keyword(s)";
				break;
		}
		if (searchField.value == defaultValue)
		{
			searchField.className = searchField.className + " unUsed";
		}
	}
	
	function checkUnUsed(searchField)
	{
		if (searchField.tagName.toLowerCase() == "input" && searchField.className.indexOf("unUsed") >= 0)
		{
			searchField.value = "";
		}

		return true;
	}
	
	function searchFieldOnFocus(searchField)
	{
		var index = searchField.className.indexOf("unUsed");
		if (index >= 0)
		{
			searchField.value = "";
			if (index == 0)
			{
				if (searchField.className.match("unUsed "))
				{
					searchField.className = searchField.className.replace("unUsed ", "");
				}
				else
				{
					searchField.className = searchField.className.replace("unUsed", "");
				}
			}
			else
			{
				searchField.className = searchField.className.replace(" unUsed", "");
			}
		}
	}
	
	function checkQuoteBoxForm () {
	
		var strSymbol = document.quotebox.Symbol.value;
		strSymbol = strSymbol.replace(/\ /g, "+");
		var strUrl = document.quotebox.Location.value;
		var vc = '';
		
		if(document.quotebox.vc)
		{
			vc = document.quotebox.vc.value;
		}
		
		if (strSymbol == "") {
			alert("Please enter a symbol");
			return false;
		}
		else {		
			strUrl = document.quotebox.Location.value + strSymbol + "&vc=" + vc + "&dist=dropmenu";
			window.location = strUrl;
			return false;
		}
	
	}	
