//--------------- ³í¹® °Ë»ö ----------------
function Journal_Frm(vol,num)
{
	theForm = document.Journal_form;
	if(!theForm.mod.value)
	{
		if(theForm.year1.value !="" && theForm.year2.value !="")
		{	
			if(theForm.year1.value > theForm.year2.value)
			{
				alert("There is an error on your year of publication selection.");
				theForm.year1.focus(); 
				return false;
			}
		}
	}
	else
	{
		theForm.Vol.value = vol;
		theForm.Num.value = num;
	}
/*
	if(!theForm.sub_box.checked && !theForm.aut_box.checked && !theForm.sos_box.checked && !theForm.key_box.checked && !theForm.pub_box.checked && !theForm.abs_box.checked)
	{	
		alert("Ãâ·Â°á°ú¸¦ Àû¾îµµ ÇÑ°¡Áö´Â ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù!");
		theForm.sub_box.focus(); 
		return false;
	}
	if(!radioCheck(theForm.sort))
	{
		alert("Á¤·Ä±âÁØÀ» ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù!");
		theForm.sort[0].focus();
		return false;
	}
*/
	theForm.action = "list.html";
	theForm.submit();
}

//--------------- ±ÇÈ£¼öº° °Ë»ö ----------------
function Vol_Frm()
{
	window.location = "main.html?mod=vol";
}

//--------------- ÀüÃ¼ ¼±ÅÃ ----------------
function Allcheck()
{
	theForm = document.Journal_form;
	for( var i=0; i < theForm.elements.length; i++)
	{
		var check = theForm.elements[i];
		check.checked = true;
	}
	return;
}

//--------------- ÀüÃ¼ ¼±ÅÃ Ãë¼Ò ----------------
function Allnocheck()
{
	theForm = document.Journal_form;
	for( var i=0; i < theForm.elements.length; i++)
	{
		var check = theForm.elements[i];
		check.checked = false;
	}
	return;
}

//--------------- ¼±ÅÃ Ç×¸ñ º¸±â ----------------
function Select_check()
{
	var check_nums = document.Journal_form.elements.length;
	for(var i = 0; i < check_nums; i++)
	{
		var checkbox_obj = eval("document.Journal_form.elements[" + i + "]");
		if(checkbox_obj.checked == true)
		{
			 break;
		}
	}

	if(i == check_nums)
	{
		alert("select list.");
		return;
	}
	else
	{
		document.Journal_form.action="view.html";
		document.Journal_form.submit();
	}
}

//--------------- ÇÑ°³ º¸±â ----------------
function View(no)
{
	document.Journal_form.uid.value = no;
	document.Journal_form.action="view.html";
	document.Journal_form.submit();
}

//--------------- ¸®½ºÆ® ÆäÀÌÁö·Î ÀÌµ¿ ----------------
function List_go()
{
	document.Journal_form.action="list.html";
	document.Journal_form.submit();
}

//--------------- °Ë»ö ¸ÞÀÎ ÆäÀÌÁö·Î ÀÌµ¿ ----------------
function Main_go()
{
	document.Journal_form.action="main.html";
	document.Journal_form.submit();
}
function radioCheck(oN){
	for(i=0;i<oN.length;i++){
		if(oN[i].checked){ return true; }
	}
	return false;
}

//--------------- ·Î±×ÀÎ Ã¼Å© ----------------
function session_err()
{
	alert("The Korean Ophthalmological Society Members only.");
	return;
}