
function loadInThisWindow(newURL, loadType) 
{
	if (loadType == 0) 
	{
		window.location = newURL;
	}
	else 
	{
		window.location = newURL + '&' + document.pKeywordResults.SessionID.value + '&' + (new Date()).toString();
	}
	return false;
}


function loadInNewWindow(newURL, loadType) 
{
	if (loadType == 0)
	{
		window.open(newURL);
	}
	else 
	{
		var d = (new Date()).toString();
		if (d.lastIndexOf(':') != -1)
		{
			d = d.substring(0, d.lastIndexOf(':') + 3);
		}
		window.open(newURL + '&' + document.pKeywordResults.SessionID.value + '&' + escape(d));
	}
	return false;
}

// Replace the "thisSite" placeholder in relative urls
// with the siteId
function getRelativeUrl(url) {

	url = url.replace("thisSite", m_siteId);
	return url;
}


// go to the selected url in the submitted form
function goUrl(selectElem) {

	//var urlList = form.urlList;
	var urlIndex = selectElem.selectedIndex;
 
	location = getRelativeUrl(selectElem.options[urlIndex].value);
}

// Called when an anchor is clicked.
function linkClicked(atag)
{
	atag.href = getRelativeUrl(atag.href);
	return true;
}


function onImgStateChange(obj){};
function selectRegion(obj){};
