// print.js
function widgets(onOff) 
{
	if (location.href.indexOf("widgetsoff=YES") >= 0) 
	{
		var p = location.href.indexOf("widgetsoff=YES");
		location.href = location.href.substring(0,p) + "widgetsoff="+onOff + location.href.substring(p+14);
	}
	else if (location.href.indexOf("widgetsoff=NO") >= 0) 
	{
		var p = location.href.indexOf("widgetsoff=NO");
		location.href = location.href.substring(0,p) + "widgetsoff="+onOff + location.href.substring(p+13);
	}
	else if (location.href.indexOf("?") < 0)
		location.href = location.href + "?widgetsoff="+onOff;
	else
		location.href = location.href + "&widgetsoff="+onOff;
		
	return false;
}

function PrintviewWin(url)
{
	var win;
	var w=670;
	var h=500;
	x=screen.width/2;
	x=x-w/2;
	y=screen.height/2;
	y=y-h/2;
	
	win = window.open(url,"Printview","width=" + w + ",height=" + h + ",left=" + x +",top="+ y +",resizable=yes,scrollbars=yes,toolbar=yes");
	if (win)
		win.focus();
}

//alert("test");

