function show(id)
{
    document.getElementById(id).style.display="block";
}

function hide(id)
{
    document.getElementById(id).style.display="none";
}

function popup(width, height, url, title)
{
    var opened_win = window.open(url, title,"status=1, height="+height+", width="+width+", resizable=0, scrollbars=1");
    if(!opened_win)
    {
        alert("Browserul dvs. nu permite deschiderea ferestrelor de gen pop-up\nPentru a tipari acest articol trebuie sa permiteti deschiderea pop-upurilor");
    } else {
        opened_win.focus();
        var win_x = (screen.width - width)/2;
        var win_y = (screen.height - height)/2;
        opened_win.moveTo(win_x,win_y);
    }
}

function IncreaseFontSize(){
    var dw = document.getElementById('article_body');
    if (dw == undefined){
        return;
    }

    var fs = dw.style.fontSize;
    var pi;

    if (fs == ''){
        pi = 12;
    } else {
        pi = parseInt(fs);
    }
    pi+= 1;

    if (pi < 20 || fs == ''){
        dw.style.fontSize = pi+'px';
    }
}
function decreaseFontSize(){
    var dw = document.getElementById('article_body');
    if (dw == undefined){
        return;
    }

    var fs = dw.style.fontSize;
    var pi;

    if (fs == ''){
        pi = 12;
    } else {
        pi = parseInt(fs);
    }
    pi-= 2;

    if (pi > 11 || fs == ''){
        dw.style.fontSize = pi+'px';
    }
}

function show_tab(id1,id2,tab)
{
	document.getElementById(id1).style.display = 'block';
	document.getElementById(id2).style.display = 'none';
	
	if(tab == 'editorial') {
		document.getElementById('editorial').className = 'on';
		document.getElementById('comenteaza').className = 'off';
	} else {
		document.getElementById('editorial').className = 'off';
		document.getElementById('comenteaza').className = 'on';
	}
	
	
}








