function moveone(intDistance) {
	var strThisPath = String(window.location);
	var MatchExp = new RegExp("\/","i");
	var i = strThisPath.length - 1;

// remove trailing hash mark (#) from current URL, if found
	if (String(strThisPath.substr(strThisPath.length - 1,strThisPath.length))=='#') {
		strThisPath = String(strThisPath.substr(0,strThisPath.length - 1));
	}
	var strThisPage = String(strThisPath.substr(i, strThisPath.length));

	while(i>0)
	{
		if (!MatchExp.test(strThisPage)) {
			strThisPage = String(strThisPath.substr(i, strThisPath.length));
		}
		i = i - 1;
	}

	strThisPage = strThisPage.substr(1, strThisPage.length - 9);

	var strThisPageNum = String(strThisPath.substr(strThisPath.length - 8, strThisPath.length));
	var intThisNum = Number(strThisPageNum.substr(0,3));
	var strThatNum = intThisNum + intDistance;
	if (strThatNum < 10) {
		strThatNum = "00" + strThatNum;
	} else {
		if (strThatNum < 100) {
			strThatNum = "0" + strThatNum;
		}		
	}
	window.location.href = strThisPage + strThatNum + ".html";
}

function SetReturnAndGo(locgoto, returnto) {
	setCookie('glassreturn', '/putti/selput.html');
	window.location.href = locgoto;
}

