function GoVmExp()
{
	location.href = "/main_vm.html";
}

function Star_View(idx, type)
{
	if (type == 2)
		location.href = "/gallery/detail_A.html?idx=" + idx;
	else
		location.href = "/gallery/detail_B.html?idx=" + idx;
}

function Evt_View(idx, alive)
{
	if (alive == 1)
		alert("이벤트가 종료되었습니다.");
	else
		location.href = "/event/view.html?el_idx=" + idx;
}

function Evt_Callback(idx)			// 이벤트 콜백 발송 페이지 팝업
{
	fn_winopen_center("/popup/pop_event.html?el_idx=" + idx, "_blank", 400, 255, "no");
}

function Mpeg_View(idx)
{
	fn_winopen_center("/sketch/player.html?ml_idx=" + idx, "mpeg_pop", 490, 402, "no");
}

function Go_FAQ()
{
	location.href = "/board/faq.html";
}

function Go_Poll(flag, idx, tc, pg)
{
		if (flag == 1)
			location.href = "/board/poll.html";
		else
			location.href = "poll.html?pl_idx=" + idx + "&tc=" + tc + "&pg=" + pg;
}

function Go_StarPhotoView(sl_idx, spl_idx, pnum, pg)
{
	location.href = "/gallery/photo.html?sl_idx=" + sl_idx + "&spl_idx=" + spl_idx + "&pnum=" + pnum + "&pg=" + pg;
}

function Making_View(dl_idx, pg, tc)
{
	UpdateRequest("/diary/making_proc.html", "dl_idx=" + dl_idx + "&pg=" + pg + "&tc=" + tc);
}

function Notice_View(idx, pg, tc, searchkey, searchstr)
{
	UpdateRequest("/board/notice_proc.html", "ni_idx=" + idx + "&pg=" + pg + "&tc=" + tc + "&searchkey=" + searchkey + "&searchstr=" + escape(searchstr));
}

function Poll_Update(pg, tc)
{
	var pl_idx = document.getElementById("pl_idx").value;

	for(i = 0; i < document.getElementsByName("poll_answer").length; i++) {
		if (document.getElementsByName("poll_answer")[i].checked == true)
		{
			var poll_answer = document.getElementsByName("poll_answer")[i].value;
		}
	}

	UpdateRequest("/board/poll_proc.html", "pl_idx=" + pl_idx + "&poll_answer=" + poll_answer + "&pg=" + pg + "&tc=" + tc);
}

function AuthNum_Check(tc, mdn)
{
	UpdateRequest("/common/file/authnum_check.html", "tc=" + tc + "&mdn=" + mdn);
}

function Go_Contest_Detail(kind, il_idx, pg, tc, searchstr)
{
	UpdateRequest("/contest/contest_view_proc.html", "kind=" + kind + "&il_idx=" + il_idx + "&pg=" + pg + "&tc=" + tc + "&searchstr=" + escape(searchstr));
}