function pageJump(pageIndex)
{
	var newUrl = 'http://' + window.location.hostname + window.location.pathname + "?mode=pagination&recno=" + pageIndex;
	window.location.href = newUrl;
}

function pagerJump(record, index, path)
{
	var newUrl = 'http://' + window.location.hostname + window.location.pathname + "?object_id=" + record + "&recno=" + index + "&path=" + path;
	window.location.href = newUrl;
}

function permPageJump(base, id, page, search, mode)
{
	var newUrl;
	head = 'http://' + base;
	if(!base)
	{
		head = "";
	}
	if(!search)
	{
		newUrl = head + '/permalink/' + id + ':' + page;
		if(mode)
		{
			newUrl = newUrl + '?mode=' + mode;
		}
	}
	else
	{
		//newUrl = 'http://' + base + '/widgets/pager.php' + '?object_id=' + id + '&recno=' + page + '&search=' + search;
		newUrl = head + '/permalink/' + id + ':' + page + '?search=' + search;
		if(mode)
		{
			newUrl = newUrl + '&mode=' + mode;
		}
	}
	window.location.href = newUrl;
}
