var strLink = '';

function DoNothing(sMsg,sUrl,sLine)
{
	return true;
}
	
function CloseError(sMsg,sUrl,sLine)
{
	window.onerror = DoNothing;
	window.close();
	return true;
}
	
function CloseThisWindow()
{
	window.onerror = CloseError;
	window.opener.focus();
	window.close();
}

function OpenSitemap()
{
	window.onerror = DoNothing;
	w = window.open('/EwsSitemap.cfm','EwsSitemapWindow','width=250,height=500,resizable=yes,scrollbars=yes');
	w.focus();
}

function OpenerError(sMsg,sUrl,sLine)
{
	window.onerror = DoNothing;
	w = window.open(strLink,'EwsWindow');
	window.focus();
//	w.focus();
	return true;
}
	
function onClickSitemap(newLocation)
{
	window.onerror = OpenerError;
	strLink = newLocation;
	window.opener.location.href = newLocation;
//	window.opener.focus();
}

function OpenForum()
{
	window.onerror = DoNothing;
	w = window.open('/forum/index.cfm','EwsForumWindow','width=730,height=500,resizable=yes,scrollbars=yes');
	w.focus();
}

function OpenWindow(theURL,theName,theParams)
{
	window.onerror = DoNothing;
	w = window.open(theURL,theName,theParams);
	w.focus();
}

function OpenShopPopupWindow(theURL)
{
	window.onerror = DoNothing;
	w = window.open(theURL,'EwsShopPopup','scrollbars=yes,resizable=yes,width=620,height=500');
	w.focus();
}

