function confirmLink(theLink, theSqlQuery) {
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function S(szoveg)
{
	window.status=szoveg;
	return true;
}

function O(url, width, height, windowName, feature)
{ 
	var x = Math.round((screen.availWidth - width) / 2);
	var y = Math.round((screen.availHeight - height) / 2);

	if (!windowName) windowName = '';
	if (!feature) feature = ', scrollbars=1';
	
	featureString = 'left=' + x + ',top=' + y + ',width=' + width + ',height=' + height + feature;

	return open (url, windowName, featureString);
}

function P()
{
	if (window.print)
		setTimeout('window.print();',200);
	else
		if (navigator.userAgent.indexOf("mac") != -1)
			alert("A cikk nyomtatásához nyomja meg a 'Cmd+p' gombokat !");
		else
			alert("A cikk nyomtatásához nyomja meg a 'Ctrl+p' gombokat!");
}

function MM_preloadImages() //v3.0
{
	if(document.images)
	{
		if(!document.MM_p) document.MM_p=new Array();
		var j=document.MM_p.length;
		var a=MM_preloadImages.arguments;
		for(var i=0; i<a.length; i++)
		{
			document.MM_p[j]=new Image;
			document.MM_p[j++].src=a[i];
		}
	}
}