// 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();
}

// yes check
function delete_data(url){
  if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){location=url;}
}
// yes check
function delete_click(url){
  /*if(confirm('Å¬¸¯ »óÇ°¸ñ·ÏÀ» ºñ¿ì½Ã°Ú½À´Ï±î?')){*/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)
  {
	  if (form.searchword.value == "")
	  {
		  alert('°Ë»ö ³»¿ëÀ» ³Ö¾î ÁÖ½Ê½Ã¿ä.');
		  form.searchword.focus();
		  return;
	  }
	  form.submit();
  }


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