	
	//³ªµµ ÇÑ¸¶µð »èÁ¦ ÆË¾÷Ã¢
	function comment_del(comtno, actionStr, targetStr)
	{
		var height = screen.height; 
		var width = screen.width; 
		var leftpos = width / 2 - 200; 
		var toppos = height / 2 - 100; 
		
		document.input_comment.action = actionStr;
		document.input_comment.comtno.value = comtno;
		window.open("", "passw", "width=270, height=160, toolbar=no, location=no, directories=no, status=no, menubar=no, scroolbars=no, resizable=no, left=" + leftpos + ',top=' + toppos);
		document.input_comment.target="passw";
		document.input_comment.submit();
	}

    function check_comment(uri)
    {
		var form = document.input_comment;
		
		if(form.check_comment.value=="yes")
		{
			alert("                      [¾Ë¸²]\n\n -³ªµµ ÇÑ¸¶µð- °¡ ÀÖ¾î »èÁ¦ ÇÒ ¼ö ¾ø½À´Ï´Ù. \n\n     »èÁ¦ ÇÏ½Ç·Á¸é °ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇÏ¼¼¿ä.");
			return;
		} 
		else 
		{
			if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) 
			{
				form.action = uri;
				form.submit();
			}
			return;
		}    
	}

	function check_comment_qna(uri)
    {
		var form = document.input_comment;
		
		if(form.check_comment.value=="yes")
		{
			alert("                      [¾Ë¸²]\n\n -³ªµµ ÇÑ¸¶µð- °¡ ÀÖ¾î »èÁ¦ ÇÒ ¼ö ¾ø½À´Ï´Ù. \n\n     »èÁ¦ ÇÏ½Ç·Á¸é °ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇÏ¼¼¿ä.");
			return;
		} 
		else if(form.answer.value != 0) 
		{
			alert("[¾Ë¸²] ´ä±ÛÀÌ ÀÖ¾î »èÁ¦ ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
			return
		}
		else 
		{
			if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) 
			{
				form.action = uri;
				form.submit();
			}
			return;
		}    
	}

	function check_comment_re(uri, no)
    {
		var form = document.input_comment;
		
		if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) 
		{
			form.re_no.value = no;
			form.action = uri;
			form.submit();
		}
		return;
	}
	
	function check_form(chkValue)
	{
		document.input_comment.rplybtn.disabled = true;

		if(document.input_comment.name.value == "") 
		{
			document.input_comment.name.focus();
			alert("[¾Ë¸²] ´Ð³×ÀÓÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			document.input_comment.rplybtn.disabled = false;
			return; 
		}

		if (chkValue == 0)
		{
			if(document.input_comment.passwd.value == "") 
			{
				document.input_comment.passwd.focus();
				alert("[¾Ë¸²] ºñ¹Ð¹øÈ£´Â »èÁ¦½Ã ÇÊ¿äÇÕ´Ï´Ù");
				document.input_comment.rplybtn.disabled = false;
				return; 
			}
		}
		
		if(document.input_comment.comment.value == "")
		{
			document.input_comment.comment.focus();
			alert("[¾Ë¸²] ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			document.input_comment.rplybtn.disabled = false;
			return; 
		}
		document.input_comment.submit();
	}

	function check_form_five(chkValue)
	{
		var f = document.input_comment;
		var chkPoint = f.point1.value + f.point2.value + f.point3.value + f.point4.value + f.point5.value;

		f.rplybtn.disabled = true;
		
		if(f.reple.value >= 1) {
			alert("[¾Ë¸²] ³ªµµÇÑ¸¶µð º°Á¡Æò°¡¸¦ ÀÌ¹Ì ÇÏ¼Ì½À´Ï´Ù.");
			return;
		}
		
		if (chkPoint != "00000" && (f.point1.value == "0" || f.point2.value == "0" || f.point3.value == "0" || f.point4.value == "0" || f.point5.value == "0"))
		{
			alert("[¾Ë¸²] º°Á¡Æò°¡´Â 5°³Ç×¸ñÀ» ¸ðµÎ Ã¼Å©ÇÏ¼Å¾ß ÇÕ´Ï´Ù");
			document.input_comment.rplybtn.disabled = false;
			return;
		}

		if(document.input_comment.name.value == "") 
		{
			document.input_comment.name.focus();
			alert("[¾Ë¸²] ´Ð³×ÀÓÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			document.input_comment.rplybtn.disabled = false;
			return false; 
		}
		
		if (chkValue == 0)
		{
			if(document.input_comment.passwd.value == "") 
			{
				document.input_comment.passwd.focus();
				alert("[¾Ë¸²] ºñ¹Ð¹øÈ£´Â »èÁ¦½Ã ÇÊ¿äÇÕ´Ï´Ù");
				document.input_comment.rplybtn.disabled = false;
				return false; 
			}
		}
		
		if(document.input_comment.comment.value == "")
		{
			document.input_comment.comment.focus();
			alert("[¾Ë¸²] ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			document.input_comment.rplybtn.disabled = false;
			return false; 
		}
		document.input_comment.submit();
	}

	function checkit() 
	{
		var v = document.form.passwd.value;
		
		if (v == "") 
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			document.form.passwd.focus();
		} 
		else 
		{
			document.form.submit();
		}
	}

	function delexe() 
	{ 
		opener.location.reload();
		self.close();
	}
	
	img_fill = new Image(14, 15);
	img_fill.src = "/img/common/icon_star_c.gif";
	img_empty = new Image(14, 15);
	img_empty.src = "/img/common/icon_star_b.gif";
	
	function check_star(menu, num) 
	{
		var obj;
		var zero;
		
		for(i=1; i<=5; i++)
		{
			obj = eval("document.star" + menu + "_" + i);
			
			if(num == 1 && obj.src == img_fill.src) {
				obj.src = img_empty.src;
				zero = true;
			} else { 
				if (i <= num) 
				{
					obj.src = img_fill.src;  
				} 
				else 
				{
					obj.src = img_empty.src;
				}
			}
		}
		
		if(zero) num = 0;
		
		obj = eval("document.input_comment.point"+menu);
		obj.value = num;
		document.input_comment.cntflag.value = "1";
	}


/*
	function rand_number(n)
	{
		var x;
		x=Math.round(Math.random()*100);
		x%=n;
		return x;
	}

	function banner_comment()
	{
		var img = new Array();
		
		img[0]='<a href=\"http://www.mportal.co.kr/mogame/pregame_view.php?board_name=corp2&bodno=1720&stype=&sw=&page=1\"><img src=\"http://www.mportal.co.kr/uploadimg/submain/comment_mobicle.gif\"></a>';
//		img[1]='<a href=\"http://re.mportal.co.kr/main/index.php\"><img src=\"http://www.mportal.co.kr/uploadimg/submain/sub_test3.gif\"></a>';
		
		var n=rand_number(img.length); 
		
		document.write(img[n]);
	}

*/
