﻿// JScript 파일

function newWindow()
{
  var newWin = window.open ("", "popup", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=50,height=50");
  newWin.focus();	
}

function deleteemail(seq)
{
  if (confirm('Are you sure to remove this email?'))
    {
      location.href='/member/default.aspx?act=delemail&seq=' + seq;
    }
}

function delDomain(seq, url, emailcnt)
  {
    var ecnt = emailcnt;
    
    if (ecnt > 0)
    {
      alert('Please delete email which used this domain.');
      return
    }
    else
    {
      var surl = url.toLowerCase();

      surl = surl.replace('http://','')
      surl = surl.replace('/','')
      
      if (confirm('Are you sure to remove "' + surl + '"?\rIf you click YES then Domain and Email will be removed.'))
      {
        location.href='/member/domain_edit.aspx?seq=' + seq;
      }
    }
  }
  
  function ConfirmDel(loc)
  {
    if (confirm('Are you sure to remove?'))
    {
      location.href = loc;
    }
  }