function cfShowEmbedObject(elementId){
 document.write(elementId.text);

 // µ¿ÀÏÇÑ ID¸¦ »ç¿ëÇÏ±â À§ÇØ ´Ù½Ã elementID ¸¦ ÃÊ±âÈ­
 elementId.id = "";
}

function styleover(tr)
{
	tr.style.background="efefef";
}
function styleout(tr)
{
	tr.style.background="ffffff";
}
function filedown(filename)
{
	window.open('/comm/filedown.asp?filename='+filename,'','width=500, height=200,left=200,top=250, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no');
}
function email(mailaddr)
{
	window.open('/comm/mail.asp?mail='+mailaddr,'','width=400, height=390,left=100,top=100, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no');
}
function logout(url)
{
	if(confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?"))
	{
		location.href="/member/log_out.asp";
	}
}	
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open('/comm/open_pic.asp?pic='+url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function searchcheck()
{
	if(document.searchform.searchstr.value=="")
	{
		alert("°Ë»öÇÏ½Ç ´Ü¾î¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.searchform.searchstr.focus();
		return false;
	}
	if(document.searchform.searchstr.value.length<2)
	{
		alert("°Ë»öÇÏ½Ç ´Ü¾î¸¦ 2ÀÚ ÀÌ»ó ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.searchform.searchstr.focus();
		return false;
	}
	return true;
}
function filedown(file)
{
	location.href='/comm/downfile.asp?file='+file;
}
function post()
{
	document.myform.address1.focus();
	window.open('/comm/addcode.htm','','width=500, height=200,left=200,top=250, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no');
}
function printing(url)
{
	window.open("/comm/printing.asp?url="+url,"worker_search","width=850,height=700,top=0,left=0,scrollbars=yes,toolbars=no,resizable=no");
}
function go(url)
{
	location.href=url;
}

function change(form){
	var list=form.selectedIndex;
	self.location=form.options[list].value;  
	form.selectedIndex = 0;
}


function spell_check(str)
{
  var invalidChars = "{}[]()<>?|~`!@#$%^&*:;,+\"'\\/ " ;
  
  for (var i = 0; i < invalidChars.length; i++) {
    if (str.indexOf(invalidChars.charAt(i)) != -1) {
      return false;
    }
  }
	return true;
}

function spell_email_check(str)
{
  var invalidChars = "{}[]()<>?|~`!#$%^&*:;,+\"'\\/ " ;
  
  for (var i = 0; i < invalidChars.length; i++) {
    if (str.indexOf(invalidChars.charAt(i)) != -1) {
      return false;
    }
  }
	return true;
}
