// menu tiptool hidden
function openimg(url,win_width,win_height,win_scroll) {
var me_width;
var me_height;

me_width = (window.screen.width/2) - (win_width/2);
me_height = (window.screen.height/2) - (win_height/2);
me_height = me_height - 30;

var win2 = window.open(url,'win2','height='+win_height+',width='+win_width+',left='+me_width+',top='+me_height+',screenX='+me_width+',screenY='+me_height+',resizable=no,menubar=no,scrollbars='+win_scroll+','+',location=no,status=no');
win2.focus();
}

function ViewContent(kindid,id) {
	urlpage="view.asp?kindid="+kindid+"&id="+id;
	window.open(urlpage,"openwin","height=600,width=720,resizable=no,scrollbars=yes,mebubar=no");
}

function openwin(url,win_width,win_height,win_scroll,nm) {
var me_width;
var me_height;

me_width = (window.screen.width/2) - (win_width/2);
me_height = (window.screen.height/2) - (win_height/2);
me_height = me_height - 30;

var nm = window.open(url,nm,'height='+win_height+',width='+win_width+',left='+me_width+',top='+me_height+',screenX='+me_width+',screenY='+me_height+',resizable=no,menubar=no,scrollbars='+win_scroll+','+',location=no,status=no');
nm.focus();
}

// yes check
function delete_data(url){
  if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){location=url;}
}

// yes check
function delete_click(url){
  if(confirm('Å¬¸¯ »óÇ°¸ñ·ÏÀ» ºñ¿ì½Ã°Ú½À´Ï±î?')){location=url;}
}

function GoURL(url){
  location=url;
}


function delete_msg(url,str){
  if(confirm(str)){location=url;}
}

function check_login_form(){
  var theform = document.frm_login;

  if(theform.id.value.length<1){alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.id.focus();return false;}
  if(theform.pw.value.length<1){alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.pw.focus();return false;}
  return true;
}

function check_guest_form(){
  var theform = document.frm_guest;

  if(theform.id.value.length<1){alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.id.focus();return false;}
  if(theform.pw.value.length<1){alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.pw.focus();return false;}
  return true;
}

function check_ordernm_form(){
  var theform = document.frm_ordernm;

  if(theform.name.value.length<1){alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.");theform.name.focus();return false;}
  //if(theform.order_nm.value.length<1){alert("ÁÖ¹®¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.order_nm.focus();return false;}
  return true;
}

function check_rule_form(){
  var theform = document.form_rule;

  if(!theform.rule_agree.checked){alert("¾à°ü¿¡ µ¿ÀÇÇØ¾ß È¸¿ø¿¡ °¡ÀÔÇÒ ¼ö ÀÖ½À´Ï´Ù.");theform.rule_agree.focus();return false;}
  return true;
}

function find_id_form(){
  var theform = document.frm_login;

  if(theform.id.value.length<1){alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.id.focus();return false;}
  if(theform.pw.value.length<1){alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");theform.pw.focus();return false;}
  return true;
}

function se_go(form){
   var searchWord = form.searchword.value ;

   /*var goodkeword = searchWord.match(/`|~|!|@|#|\$|%|\^|&|\*|\(|\)|\-|\_|\+|\=|\|\||<|>|\,|\.|\?|\/|:|;|'|"|\[|\]|\{|\}/gi);
   if(goodkeword != null){
	alert('°Ë»ö¾î°¡ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.\n°Ë»ö¾î¿¡´Â Æ¯¼ö¹®ÀÚ³ª ±âÈ£°¡ µé¾î°¥ ¼ö ¾ø½À´Ï´Ù. \nÇü½Ä¿¡ ¸Â°Ô Á¤È®È÷ ÀÔ·ÂÇØÁÖ¼¼¿ä.')
	return ;
   }

  if(form.searchword.value == ""){alert('°Ë»ö ³»¿ëÀ» ³Ö¾î ÁÖ½Ê½Ã¿ä.');form.searchword.focus();return;}
  */
  form.submit();
}

function click_show(nm){
	if(nm.style.display == 'none') nm.style.display = 'block';
	else nm.style.display = 'none';
}

function click_show1(nm){

  
  nm.style.display = 'none';
}
function borderit(which,color){
if (document.all||document.getElementById){
which.style.borderColor=color
}
}



function JS_viewObj(objhtml) { 
    document.write(objhtml); 
} 