// be van-e jelölve legalább egy a válaszlehetőségek közül
function check_poll(poll_form) {
//	var checked = false;
//	alert(document.poll_form.elements.length);
//	return checked;
return true;
}


// megnyit egy adott méretű, középre helyezett ablakot a felbontástól függően
// utolsó módosítás: 2004.02.21.
function popup(url,window_name,width,height,scrollbars,resizable) {

	if (url) {
		if (!window_name) window_name = "_blank";
		if (!width) width = 600;
		if (!height) height = 460;

		if (scrollbars) scrollbars = "1";
		else scrollbars = "0";

		if (resizable) resizable = "1";
		else resizable = "0";

		if (screen.availWidth) {
			if (screen.availWidth < width+40) width = screen.availWidth-40;
			if (screen.availHeight < height+40) height = screen.availHeight-40;
			pos_x = (screen.availWidth-width)/2;
			pos_y = (screen.availHeight-height)/2;
		}
		else {
			pos_x = 10;
			pos_y = 10;
		}
		window.open(url,window_name,'location=0,status=0,titlebar=1,toolbar=0,directories=0,menubar=0,scrollbars='+scrollbars+',resizable='+resizable+',left='+pos_x+',top='+pos_y+',width='+width+',height='+height);
	}

}


function resize_window(width,height) {
	if (width > screen.availWidth) width = screen.availWidth;
	if (height > screen.availHeight) height = screen.availHeight;
	self.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);
	self.resizeTo(width,height);
	focus();
}


