function winPOPnomenu(url,windowName,winWidth,winHeight,ScrollYes) {
	if(ScrollYes != 1) ScrollYes = 0;
	etcString = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + 
				ScrollYes + 
				",copyhistory=0,width=" + 
				winWidth + 
				",height=" + 
				winHeight;
	popWin = window.open(url,windowName,etcString);
	popWin.focus()
	}

function writeWidth(backgroundImg,bgColor,subtractWidth,classTag,alignTag) {
	tdStr = "<td valign=top";
	if (backgroundImg) tdStr = tdStr + " background=" + backgroundImg;
	else if (bgColor) tdStr = tdStr + " bgcolor=" + bgColor;
	if (classTag) tdStr = tdStr + " class=" + classTag;
	if (alignTag) tdStr = tdStr + " align=" + alignTag;
	
	if (Winwidth > 0) {
		tdWidth = Winwidth - subtractWidth;
		if(tdWidth < 420) tdWidth = 420;
		tdStr = tdStr + " width=" + tdWidth + ">";
		}
	else tdStr = tdStr + " width=99%>";
	
	return tdStr;
	}
	
function redirect(whichselected,selectedval,prepend) {
	if (selectedval != 0) {
		if(whichselected == "region")
			if(isNaN(selectedval))
				redirecturl = prepend + "region/index.cfm?action=" + selectedval + "&n=h";
			else	
				redirecturl = prepend + "region/index.cfm?action=region&rid=" + selectedval + "&n=h";
		else
			redirecturl = prepend + "category/index.cfm?" + selectedval + "&n=h";
		}
		
		location.href = redirecturl;
	}
	


