<!--
	function ChkDigit() {return ((event.keyCode >= 48) && (event.keyCode <= 57))}
	function ChkNull(aVal) { for (i=0; i<aVal.length ; i++) { tmp = aVal.substring(i, i+1); if ((tmp != ' ')&&(tmp != '\r')&&(tmp != '\n')&&(tmp != '\t')&&(tmp != '\b')&&(tmp != '\v')&&(tmp != '\f')) { return false;}} return true;}
	function ChkNumber(aVal) { var tmp = "1234567890"; var strLength = aVal.length; for (i=0; i<strLength ; i++) {if (tmp.indexOf(aVal.substring(i, i+1)) < 0) { return false;}} if (aVal.length == 0) {return false; } else {return true;}}
	function ChkString(str, compstr) { var tmp = compstr; var tmpLength = tmp.length; for (i=0; i<tmpLength ; i++) {if (tmp.indexOf(str.substring(i,i+1)) < 0) return false;} return true;}
	function ChkEmail(eMailValue) {var cStr1 = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@.-_"; if (ChkString(eMailValue,cStr1) == false) return false; var StrLength = eMailValue.length; var AtLength = 0; var DotLength = 0; for (var i = 0 ; i < StrLength ; i++) {compStr = eMailValue.charAt(i); if (compStr == "@") AtLength ++; if (compStr == ".") DotLength ++;} if (AtLength != 1 || DotLength < 1) return false; var tmpLength = 0; tmpLength = eMailValue.indexOf("@"); if (tmpLength < 1) return false; return true;}
	function setPageBack() {history.back();}
	function WindowsClose() {window.close();}
	function wOpen(URL, wName, wWidth, wHeight) {var x;  var y; var wFeatures; x = (screen.width - wWidth) / 2; y = (screen.height - wHeight) / 2; wFeatures = 'width='+wWidth+',height='+wHeight+',top='+y+',left='+x+',scrollbar=1,resizeable=no,status=no'; window.open(URL,wName,wFeatures);}

	function LenthCheck(fmm, aVal)
	{
		var msg = new String(fmm.value);
		var stopPoint = 0; 
		var stopState = true; 
		var strLength = 0;
		for (i = 0; i < msg.length; i ++) {
			if (msg.charCodeAt(i) > 255) strLength += 2; 
			if (msg.charCodeAt(i) > 255) strLength ++; 
			else strLength ++; 
			if (stopState) {
				if (strLength > aVal) {
					stopPoint = i --; 
					stopState = false; 
				}
			}
		}
		if (strLength > aVal) {
			alert(aVal+" Byte ±îÁö¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.");
			var mmc = fmm.value ;  
			fmm.value = mmc.substr(0 , stopPoint); 
		}
		sByte.innerHTML = strLength;
	}

	function FrameResize(idx)
	{
		eval("td_id"+idx).height = eval("frame_id"+idx).document.body.scrollHeight;
		eval("td_id"+idx).width = eval("frame_id"+idx).document.body.scrollWidth; 
	}

	function pcs_recommend()
	{
		document.sForm.action = "/common/recommend/content_recommend.asp"; 
		document.sForm.target = "vote_process"; 
		document.sForm.submit();
	}

	function pcs_scrap()
	{
		document.sForm.action = "/common/scrap/content_scrap.asp"; 
		document.sForm.target = "vote_process"; 
		document.sForm.submit();
	}

	function viewImgResize()
	{
		var p_height, p_width;
		p_width = document.view_img.width ;
		if (p_width > 450) p_width = 450 ;

		document.all.view_img.width = p_width ;
	}

	function viewImgResize2(gIdx)
	{
		var p_height, p_width;
		var xi = parseInt(gIdx); 
		for (var xi=0; xi<gIdx; xi++) {
			p_width = document["view_img"+xi].width ;
			if (p_width > 450) p_width = 450 ;

			document.all["view_img"+xi].width = p_width ;
		}
	}

	function ChkimgExt(upFile) 
	{
		var index = upFile.lastIndexOf("\\");

		if(index != -1)
		{
			var fname = upFile.substring(index+1);
			index = fname.lastIndexOf(".");
			if(index == -1)
			{
				alert("ÆÄÀÏ¸íÀÌ Àß¸ø µÇ¾ú½À´Ï´Ù.\n\n ´Ù½Ã È®ÀÎÇÏ½Ê½Ã¿ä.");
				return false;
			}
			var fext = fname.substring(index+1).toLowerCase();

			if( (fext != "jpg") && (fext != "gif") )
			{
				alert("ÀÌ¹ÌÁö ÆÄÀÏÀº jpg, gif¸¸ »ç¿ë °¡´ÉÇÕ´Ï´Ù.\n\n´Ù½Ã µî·ÏÇØ ÁÖ½Ê½Ã¿ä.");
				return false;
			}
		}	
		return true;
	}
//-->