function changePage(selectObj,newURL)
{
	newURL += selectObj.options[selectObj.selectedIndex].value;
	if (selectObj.options[selectObj.selectedIndex].value != "")
		window.location.href = newURL;
}


function redirect(newURI)
{
	gotopage=newURI.options[newURI.selectedIndex].value
	if (gotopage!="")
		window.location.href=gotopage
}


// open new window

function newWindow(newPage,newWidth,newHeight,newLeft,newTop)
{
	thisWindowSize = "width=" + newWidth + ",height=" + newHeight + ",left=" + newLeft + ",top=" + newTop + ",scrollbars=yes";
	thisWindow = window.open(newPage, 'newWin', thisWindowSize);
	thisWindow.focus();
}


// keeps the amount of text in a text box to the prescribed amt. of characters

function limitText(limitField, limitCount, limitNum)
{
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}



// these will scroll through a pictorial using javascript

function changeFeatured (li_num)
{
	var workingImage = document.getElementById(num);
	workingImage.style.display = 'none';
	num = li_num;
	var workingImage = document.getElementById(num);
	workingImage.style.display = 'block';
	return false;
}

function nextFeatured ()
{
	if (document.getElementById(num+1))
		changeFeatured (num+1);
	else
		changeFeatured (1);
	return false;
}

function prevFeatured ()
{
	if (document.getElementById(num-1))
		changeFeatured (num-1);
	else
	{
		var nl = document.getElementById('sbImage').getElementsByTagName('img');
		changeFeatured (nl.length-3); // -3 to account for 3 images in the navigation section
	}
	return false;
}
