// This is a legacy script for Locator functionality. 
//It's called by the Locator control, so it has to 
//stick around in the global namsepace

function exitSite(from, destination, windowName, options, goesto, pid, sSite)
{
	while (destination.indexOf('+') != -1)
		destination = destination.replace('+', 'FPSMBplusFPSMB');

	if (destination.indexOf("golink.asp") != -1)
		newWindow = window.open(destination + '&FPFrom=' + from, windowName, options);
	else
		newWindow = window.open('/' + sSite + '/leaving.asp?FPDest=' + escape(destination) + '&FPFrom=' + escape(from) + '&goto=' + escape(goesto) + '&pid=' + pid, windowName, options);
}