function onSearch(searchstring)
{
    if ((searchstring=="") || (searchstring=="Product name"))
    {
        alert("Please fill in a product name/keyword")
        return false;
    }
    else
    {
        return true;
    }
}

function chooseBrand(selectedBrand) {
	if (selectedBrand.value != 'choosebrand') { window.location=selectedBrand.value } 
}

function ToggleDisplay(objectid)
{
	var object=document.getElementById(objectid)
	if (object.style.display=="none")
	{
		object.style.display="block"
	}
	else
	{
		object.style.display="none"
	}
}

function submitForm(FormID)
{
	var f;
	
	f = document.getElementById(FormID);
	
	f.submit();
	
	return true;
}