			//<![CDATA[
			function test(obj){
				var sel=obj.getElementsByTagName('select')[0];
				var ix=sel.selectedIndex;
				var txt=sel.options[ix].text;
				if((ix==0)||(txt=='')){
					alert('Please select a size from the drop-down size menu by clicking on the blue V shaped arrow to the right of "size" and then on an available size that drops down');
					return false;
				}else{				
                    _utmLinkPost(obj); // no point in calling this function unless this form validates
					return true;
				}
			}
function extractPageName(hrefString)
{
	var arr = hrefString.split('/');
	return  (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase();               
}

function setActiveMenu(arr, crtPage)
{
	for (var i=0; i<arr.length; i++)
	{
		if(extractPageName(arr[i].href) == crtPage)
		{
			if (arr[i].parentNode.tagName != "DIV")
			{
				arr[i].className = "current";
				arr[i].parentNode.className = "current";
			}
		}
	}
}

function setPage()
{
	hrefString = document.location.href ? document.location.href : document.location;

	if (document.getElementById("nav")!=null)
		setActiveMenu(document.getElementById("nav").getElementsByTagName("a"), extractPageName(hrefString));
}
         	//]]>
