function tartalom_click()
{
	var h  = document.getElementById('tartalom_head');
	var c  = document.getElementById('tartalom_content');
	c.style.display=(c.style.display=='none')?'block':'none';
	h.style.display=(c.style.display=='none')?'block':'none';
}

function handleAdLayer()
{
	var theTime = new Date();
    if  (
    		((theTime.getMonth() ==  8) && (theTime.getDate() >= 10)) ||
        	((theTime.getMonth()  >  8) && (theTime.getMonth() < 11)) ||
        	((theTime.getMonth() == 11) && (theTime.getDate() <= 20))
        )
    {
    	//                      J     J+    JAB   CEG   HMJ   ONK   ATB   HRM
	    var akcIds = new Array('171','339','454','396','170','173','168','172','472');
    }
    else
    {
        var akcIds = new Array();
    }
    var dst = document.getElementById('adlayer');
    var imgdst = document.getElementById('akciokep');
    if (dst)
    {
    // id-t megszerezzuk
    var found = false;
    var s = document.location.toString();
    var pos1 = s.indexOf('_')
    var pos2 = s.lastIndexOf('_')
    if ((pos1 != -1) && (pos2 != -1)) {
        var id = s.substring(pos1+1,pos2);
    } else {
        pos1 = s.indexOf('idx=');
        var id = s.substring(pos1+4,s.length);
    }
    if (id != '0')
    {
        for (i=0; i<akcIds.length; i++)
        {
            if (id == akcIds[i])
            {
                found = true;
            }
        }
    }
	    if (found)
	    {
/*	        dst.innerHTML = '<a href="akcio2007osz.php" target="_blank"><div class="reklam"><span>17" LCD monitor</span><br/> éves előfizetésekhez ajándékba!</div></a>';
	        imgdst.innerHTML = '<img src="/img/adv/monitor.jpg">';
	        var totalInp  = document.getElementById('total');
	        dst.style.display='block';*/
	    }
	}
}

function fillGrossPrice(net,vat)
{
// QuickFix 20080402, KCs.
var g = (parseInt(net)*((100+parseInt(vat))/100));
if (gp = document.getElementById('xcnettoar')) gp.innerHTML = '<div class="afa">+ '+vat+'% áfa</div>(' + g.toString()+')';
}

function fullScreen(theURL) {
	window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}
