// 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 fullimg(url,win_scroll) {
  var win3 = window.open(url,'win2','resizable=no,menubar=no,scrollbars='+win_scroll+','+',location=no,status=no,fullscreen=1');
  win3.focus();
}

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

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

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

function GoURL(url){
  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 onstyle(nm,cur,id){
  if(nm != cur){
    id.style.backgroundColor='#0047B1';
    id.style.color='#ffffff';
  }
}

function ovstyle(nm,cur,id){
  if(nm != cur){
    id.style.backgroundColor='#ffffff';
    id.style.color='#000000';
  }
}

function menu_dn(nm){
  m01.style.display = 'none';
  m02.style.display = 'none';
  m03.style.display = 'none';
  m04.style.display = 'none';
  m05.style.display = 'none';
  m06.style.display = 'none';
  m07.style.display = 'none';

  switch(nm){
    case 1: m01.style.display = 'block'; break;
    case 2: m02.style.display = 'block'; break;
    case 3: m03.style.display = 'block'; break;
    case 4: m04.style.display = 'block'; break;
    case 5: m05.style.display = 'block'; break;
    case 6: m06.style.display = 'block'; break;
    case 7: m07.style.display = 'block'; break;
  }
}

function pre_view(url,ww,hh,str){
  var msg_str;
  var me_width;
  var me_height;

  win_width = ww;
  win_height = hh;

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

  popup = window.open("","",'height='+win_height+',width='+win_width+',left='+me_width+',top='+me_height+',screenX='+me_width+',screenY='+me_height+',resizable=no,menubar=no,scrollbars=no,'+',location=no,status=no');

  popup.document.open()

  msg_str = '<html><title>È®´ëº¸±â</title><body topmargin=0 leftmargin=0 onclick=window.close();>';
  msg_str = msg_str+'<img style=cursor:hand; border=0 src='+str+'>';
  msg_str = msg_str+'</body></html>';

  popup.document.write(msg_str)
  popup.document.close()
}
