function ShowAboutUs()
{
	window.location.href = "GeneralDisplayPage.aspx?HeaderSelection=AboutUs";
}

function ShowConditionsPage()
{
	window.location.href = "GeneralDisplayPage.aspx?HeaderSelection=Conditions";
}

function ShowHomePage()
{
	window.location.href = "GeneralDisplayPage.aspx?HeaderSelection=HomePage"
}

function ShowContactUs()
{
	window.location.href = "Index.aspx?ContactUs=true&HeaderSelection=ContactUs"
}

function ShowLoginRegister()
{
	window.location.href = "Index.aspx?LoginRegister=true&HeaderSelection=LoginRegister";
}

function ShowEditBasket()
{
	window.location.href = "Index.aspx?ViewBasket=true&ShowProducts=false&HeaderSelection=EditBasket";
}

function ShowGoToCheckout()
{
	window.location.href = "CheckOutSummaryPage.aspx?GoToCheckout=true&HeaderSelection=GoToCheckout";
}

function ShowLinksPage()
{
	window.location.href = "Index.aspx?LinksPage=true&HeaderSelection=LinksPage";
}

function ChangeBorderToBlue(obj)
{
	obj.style.borderColor="Blue";
	obj.style.borderWidth="2";
}

function ChangeBorderToWhite(obj)
{
	obj.style.borderColor="#dedcd0";
	obj.style.borderWidth="2";
}

function ChangeBorderToGray(obj)
{
	obj.style.borderColor="#dedcd0";
	obj.style.borderWidth="2";
}

function ChangeBorderToGray(obj)
{
	obj.style.borderColor="#dedcd0";
	obj.style.borderWidth="2";
}

// string must be in the format '#dedcd0'
function ChangeBorderColour(obj, val)
{
	obj.style.borderColor=val;
	obj.style.borderWidth="2";
}

function SelectSubCategory(category)
{
	window.location.href = "Index.aspx?ShowProducts=true&Category=" + category;
}

function SelectItems(category, subCategory)
{
	window.location.href = "Index.aspx?Category=" + category + "&SubCategory=" + subCategory + "&ShowProducts=true";
}

function clickButton(e, buttonId)
{
	if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
	{
		if(window.event.keyCode == 13)
		{
			document.getElementById(buttonId).click();
			
			return false;
		}
	}
	if(navigator.appName.indexOf("Netscape")>(-1))
	{
		if(e.keyCode == 13)
		{
			document.getElementById(buttonId).click();
			
			return false;
		}
	}
}
