function authorChange(type, author_id, article_id, _title, author)
{
	document.getElementById("author_img_" + type).src = 'images/author/' + author_id + "_s.jpg";
	document.getElementById("author_article_title_" + type).innerHTML = '<a href="' + article_id + '">' + _title + "</a>";
	document.getElementById("author_name_" + type).innerHTML = author;
}
function submitSearchForm(F)
{
	if(!F.ss2.checked)
		return true;
	
	window.location = baseURL + "search_result.php?search_key=" + F.q.value;
	return false;
}
function changeMostlyTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("mostly_caption").className = 'caption caption1';
		document.getElementById("last_minute").style.display = 'block';
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else if(idx == 2)
	{
		document.getElementById("mostly_caption").className = 'caption caption2';
		document.getElementById("last_minute").style.display = 'none';
		document.getElementById("mostly_readed").style.display = 'block';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else
	{
		document.getElementById("mostly_caption").className = 'caption caption3';
		document.getElementById("last_minute").style.display = 'none';
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'block';
	}
}
function resizeIFrame(idx)
{
	var _height = document.getElementById(idx).contentWindow.document.body.scrollHeight;

	document.getElementById(idx).height = _height;
}