<!-- Begin
function LogCheck() {
	var FormName=document.LogForm;
	if(FormName.u_id.value=='') {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù..');
		FormName.u_id.focus();
		return false;
	}
	if(FormName.u_pass.value=='') {
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù..');
		FormName.u_pass.focus();
		return false;
	}
	//act_ok=1;
  if(FormName.ssl_con.checked==true) 
    FormName.action="https://www.comic19.com/member/loginProcessing.php";
  else 
    FormName.action="http://www.comic19.com/member/loginProcessing.php";
  
  return true;
}

function fsearch() {
	var f=document.getElementById("nData");
	if(f.value=="") {
		alert('°Ë»öÇÒ ÀÛÇ°¸í ¶Ç´Â ÀÛ°¡¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		return false;
	}	
	else return true;

}

function check_byte(content, target)
{
		var i = 0;
		var cnt = 0;
		var ch = '';
		var cont = document.getElementById(content).value;

		for (i=0; i<cont.length; i++) {
				ch = cont.charAt(i);
				if (escape(ch).length > 4) {
						cnt += 2;
				} else {
						cnt += 1;
				}
		}
		// ¼ýÀÚ¸¦ Ãâ·Â
		document.getElementById(target).innerHTML = cnt;

		return cnt;
}

function flash_write(Url,Width,Height,trans){                 
  document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + Width + "\" height=\"" + Height + "\">"); 
  document.writeln("<param name=\"movie\" value=\"" + Url + "\">"); 
	document.writeln('<param name="menu" value="false" />');
  document.writeln("<param name=\"quality\" value=\"high\" />");     
  if(trans!=0) 
		document.writeln("<param name=\"wmode\" value=\"transparent\">"); 
	document.writeln('<param name="salign" value="tl" />');
	document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" menu=\"false\" quality=\"high\" salign=\"tl\" scale=\"noscale\" width=\"" + Width + "\"  height=\"" + Height + "\">"); 
  document.writeln("</object>");     
} 

function setCookie( name, value, expiredays ) { 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" ;
} 

function trim(s)
    {
        var t = "";
        var from_pos = to_pos = 0;

        for (i=0; i<s.length; i++)
        {
            if (s.charAt(i) == ' ')
                continue;
            else 
            {
                from_pos = i;
                break;
            }
        }

        for (i=s.length; i>=0; i--)
        {
            if (s.charAt(i-1) == ' ')
                continue;
            else 
            {
                to_pos = i;
                break;
            }
        }	

        t = s.substring(from_pos, to_pos);
        //				alert(from_pos + ',' + to_pos + ',' + t+'.');
        return t;
    }

//  End -->