var isBackend = false;

function popup(url, winWidth, winHeight, sb) 
{
	winTop = (screen.height - winHeight) / 2;
	winLeft = (screen.width - winWidth) / 2;
	window.open(url,"","width=" + winWidth + ",height=" + winHeight + ",top=" + winTop  + ",left=" + winLeft  + ",resizable=no,scrollbars=" + sb + ",toolbar=no");
}

function switchPanel(obj, panel)
{
	if (obj.checked)
	{
		$(panel).show();
	}
	else
	{
		$(panel).hide();
	}
}

var currentFontSize = 12;
function incrementDecrementFont(step, object1, object2)
{		
	if ((currentFontSize+step) <= 9 || (currentFontSize+step) >= 18) 
	{	
		return false;
	}
	else
	{	
		$('decrText').className = 'decrease_font';
		$('incrText').className = 'increase_font';
		currentFontSize += step;
		document.getElementById(object1).style.fontSize = currentFontSize + 'px';
		if(object2) document.getElementById(object2).style.fontSize = currentFontSize + 'px';
	}
	
	if ((currentFontSize+step) <= 9)
	{			
		$('decrText').className = 'decrease_font_max';
	}
	
	if ((currentFontSize+step) >= 15)
	{
		$('incrText').className = 'increase_font_max';
	}
}
