//<!-- All material on this site, including web pages, JavaScript, graphics and other content
//	 is Copyright (c)2008 Internet Exposure -->
// $Revision: 296 $

function $(id)
{
    return document.getElementById(id);
}

var wSearchFrame=null;

function OpenShopList()
{
    /*!!!ERA2
	if (window.name=="searchframe")
		wSearchFrame=window;
	else if (window.name=="infoframe")
		wSearchFrame=parent.searchframe;
	else if (window.name=="mainframe")
		location.replace("search.asp?shoplist=1");
	else if (window.name=="headerframe")
	{
		if (parent.mainframe.searchframe!=null)
			wSearchFrame=parent.mainframe.searchframe;
		else
			parent.mainframe.location.replace("search.asp?shoplist=1");
	}
	
    wSearchFrame = window;
	if (wSearchFrame!=null)
	{
		window.onerror=OpenShopListError;
		if (wSearchFrame.document.ResultsForm!=null)
		{
			wSearchFrame.document.ResultsForm.action = "shoplist.asp";
			wSearchFrame.document.ResultsForm.rnd.value = Math.random();
			wSearchFrame.document.ResultsForm.submit();
		} else
			wSearchFrame.location.replace("shoplist.asp?rnd=" + Math.random());
		window.onerror=ErrorsOn;
	}
    */
    location.replace("shoplist.asp");
}
/*
function OpenShopListError(s1, s2, s3)
{
	window.onerror=ErrorsOn;
	wSearchFrame.location.replace("shoplist.asp?rnd=" + Math.random());
	return true;
}

function ErrorsOn(s1, s2, s3)
{
	return false;
}
*/
	
function ShopKeeper(s)
{
    //parent.shopkeeperframe.location.replace("shopkeeper.asp?rnd=" + Math.random() + s);
    var ajax = new Ajax("shopkeeper.asp?rnd=0" + s, null);
    ajax.EvalResponse();
    return false;
}

function SetImg(sImgName, sImgIdent)
{
	document[sImgName].src = eval(sImgIdent + ".src");
}
