function SearchState(id)
{
	window.location.href = "http://www.requiem.nl/zoek-requiem-uitvaartondernemer.aspx?state=" + id.toString();
}

function OnSetFontSize(size)
{
	var expr,
		url,
		m;
	
	url = window.location.href;
	expr = /(.)(fontsize=\w+)/i;
	if ((m = url.match(expr)) == null)
		url += (window.location.search.length == 0 ? "?" : "&") + "fontsize=" + size;
	else
		url = url.replace(expr, m[1] + "fontsize=" + size);

	window.location.href = url;
}		

function go(id, count1, count2, returnUrl, target)
{
	var xmlRequest;
	
	xmlRequest = new XmlRequest();
	xmlRequest.ServerPage = applicationPath + "XmlHttp/CountStats.aspx";
	xmlRequest.Execute(
	"<root>" + 
		"<id>" + id + "</id>" +
		"<count1>" + count1 + "</count1>" +
		"<count2>" + count2 + "</count2>" +
	"</root>");
	if (typeof(target) == "string")
		window.open(returnUrl, "", "", target);
	else
		window.location.href = returnUrl;
}
