function openPopUp_520x390(href, target)
{
	window.open(href, target, 'width=520, height=390, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_600x450(href, target)
{
	window.open(href, target, 'width=600, height=450, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function blinkIt()
{
	if(!document.all)
		return;
	else
	{
		for(i=0; i<document.all.tags('blink').length; i++)
		{
			s=document.all.tags('blink')[i];
			s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
		}
	}
}
function SymError()
{
	return true;
}
function deleteConfirm()
{
	var restart = confirm("Bu Kayıtı Silmek İstediğinizden Emin misiniz?");
	if(restart)
		return true;
	else
		return false;
}
function onlyNumber()
{
	if (event.keyCode < 48 || event.keyCode> 57) event.returnValue = false;
}
function changeSize(elm, _size, class_name)
{
	document.getElementById(elm).className = class_name + ' ' + class_name + '_' + _size;
	Set_Cookie('text_size', _size, 30, '', '', '');
}
function authorChange(author_id, author_name, article_id, article_link, _title, _spot)
{
	document.getElementById("author_img").src = './images/author/' + author_id + "_s.jpg";
	document.getElementById("author_article_name").innerHTML = author_name;
	document.getElementById("author_article_title").innerHTML = '<a href="' + article_link + '">' + _title + "</a>";
	document.getElementById("author_article_short_content").innerHTML = '<a href="' + article_link + '">' + _spot + "</a>";
}
function authorSelectChanged(authorId)
{
	if(authorId != "")
		window.location = "author_article_detail.php?authorId=" + authorId;
	return false;
}
function changeMostlyTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("mostly_readed_caption").className = 'caption';
		document.getElementById("mostly_readed").style.display = 'block';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else
	{
		document.getElementById("mostly_readed_caption").className = 'caption caption2';
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'block';
	}
}
function changeCirculationTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("circulation_caption").className = 'caption caption2';
		document.getElementById("circulation").style.display = 'block';
		document.getElementById("raiting").style.display = 'none';
	}
	else
	{
		document.getElementById("circulation_caption").className = 'caption';
		document.getElementById("circulation").style.display = 'none';
		document.getElementById("raiting").style.display = 'block';
	}
}
function heightOptimizer()
{
	var _height = document.getElementById('base_middle').offsetHeight;
	
	if(_height < document.getElementById('base_right').offsetHeight)
		_height = document.getElementById('base_right').offsetHeight;
	
	document.getElementById('base_right').style.height = _height + "px";
	document.getElementById('base_middle').style.height = _height + "px";
	//document.getElementById('base').style.height = _height + "px";
}
function goGazette(idx)
{
	if(idx == "")
		return false;
	
	window.open("newspaper.php?newspaper=" + idx, "", "");
	return true;
}