function popup_window(url,w,x,y) {
    var newwindow = window.open(url,w,'width='+x+',height='+y+',scrollbars=1,status=0,menubar=0,location=0,resizable=1')
    if (window.focus) {newwindow.focus()}
    return false;
}

// Cookie kezelő függvények - http://www.quirksmode.org/js/cookies.html
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

function fChange_cikk(pixels) {
		var aObjs = new Array(
							  document.getElementById("cikk_txt_change")
							  );

		for (i = 0; i < aObjs.length; i++) {

			if ( ! aObjs[i].style.fontSize ) {
				aObjs[i].style.fontSize = '13px';
			}

			if (pixels == 0) {
				aObjs[i].style.fontSize = '13px';
				aObjs[i].style.lineHeight = '17px';
			} else {
				aObjs[i].style.fontSize = parseInt(aObjs[i].style.fontSize.replace(/px/, ''))+pixels+'px';
				aObjs[i].style.lineHeight = parseInt(aObjs[i].style.fontSize.replace(/px/, ''))+4+'px';	
			}
		}
	}