function del_one() {
	var i;
	var e;
	return confirm("\nBIZTOS, HOGY VÉGLEG TÖRÖLNI AKARJA?\n(Nem lehet többet visszaállítani.)");
}

function showimage(file,width,height,name)
{
	var scrollbars = 0;
	var xbig = (screen.availWidth < width) ? 1 : 0;
	var ybig = (screen.availHeight < height) ? 1 : 0;
	if (xbig) {
		width = screen.availWidth - 20;
		if (!ybig) { height += 20; }
		scrollbars = 1;
	}
	if (ybig) {
		height = screen.availHeight - 40;
		if (!xbig) { width += 20; }
		scrollbars = 1;
	}
	width += 4;
	height += 6;
	var xPos = (screen.availWidth / 2) - (width / 2) - 5;
	var yPos = (screen.availHeight / 2) - (height / 2) - 10;

//	alert(screen.availWidth + "\n" + screen.availHeight + "\n" + width + "\n" + height + "\n" + xPos + "\n" + yPos);
	picture = window.open('',name,'top='+yPos+',left='+xPos+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrollbars+',resizable=0,width='+width+',height='+height);
	picture.document.open();
	picture.document.write('<html><head><title></title></head><body bgcolor="#ECE9E0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	picture.document.write('<center><a href="javascript:window.close()"><img src="'+file+'" border="0" alt="Bezár" style="border: 1px black solid;"></a></center>');
	picture.document.write('</body></html>');
	picture.document.close();
	return false;
}

function select_all(id)
{
	var obj = document.getElementById(id);
	var i;
	for (i = 0; i < obj.options.length; i++)
	{
		obj.options[i].selected = true;
	}
	return false;
}

function select_none(id)
{
	var obj = document.getElementById(id);
	var i;
	for (i = 0; i < obj.options.length; i++)
	{
		obj.options[i].selected = false;
	}
	return false;
}

function send_data(id)
{
	var e = document.getElementById(id);
	if (e)
	{
		e.submit();
		return true;
	}
	return false;
}