function info(url, width, height)
{
	var str = "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,alwaysRaised=0,hotkeys=0";
	if (window.screen)
	{
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	window.open(url, "info", str).focus();
}

function check(stat)
{
	var len = document.forms[0].elements.length;
	for( var i=0; i < len; i++ )
	{
		chbox = document.forms[0].elements[i];
		if(chbox.type == "checkbox")
			chbox.checked = stat;
	}
	
}

/*function check(stat) {
	var len = document.forms[0].elements.length;
	var checkedNum = 0;
	for( var i=0; i < len; i++ ) {
		chbox = document.forms[0].elements[i];

		if(chbox.type == "checkbox")
		{
			checkedNum++;
		}
	}
	alert("Disabled in demo-version. Check " +checkedNum+ " elements. This function work is downloadable version.");
}*/
