function newWin(url,win,xv,yv) {
  var iwidth;
  var iheight;

  if(win == "viewmember") {
    iwidth = 0;
    iheight = 0;
  }
  else {
    iwidth = (screen.width-xv)/2;
    iheight = (screen.height-yv)/2;
  }
  str1 = "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width="+xv+",height="+yv+",top="+iheight+",left="+iwidth;

  var popup = window.open(url, win, str1);

  if( navigator.appName.substring(0,8) == "Netscape" ) {
    popup.location = url;
  }
}

function newWinEx(url,win,xv,yv,scroll) {
  var iwidth;
  var iheight;

  if(win == "viewmember") {
    iwidth = 0;
    iheight = 0;
  }
  else {
    iwidth = (screen.width-xv)/2;
    iheight = (screen.height-yv)/2;
  }
  str1 = "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars="+scroll+",resizable=0,width="+xv+",height="+yv+",top="+iheight+",left="+iwidth;

  var popup = window.open(url, win, str1);

  if( navigator.appName.substring(0,8) == "Netscape" ) {
    popup.location = url;
  }
}

function deldata(url, comment) 
{
  if (confirm(comment))
    location.replace(url);
}

function CheckMessage(exist, visible)
{
  if (visible)
  {
    var elmref;

    if (exist)
    {  	 
      elmref = eval('document.all("mesg_exist")');
      elmref.style.display = '';

      elmref = eval('document.all("mesg_nothing")');
      elmref.style.display = 'none';
      
 //     newWinEx('/mesg/mesg_send.htm?info=ÂÊÁö°¡ µµÂøÇÏ¿´½À´Ï´Ù','sendmail',300,200,0);
    }
    else
    {
      elmref = eval('document.all("mesg_exist")');
      elmref.style.display = 'none';

      elmref = eval('document.all("mesg_nothing")');
      elmref.style.display = '';
    }
  	  
  }
  else
  {
  }
}

function mailtouser(url) {

  var win = "mail";
  var iwidth = screen.width + 10;
  var iheight = screen.height + 10;


  var str1 = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1,height=1,top=" + iwidth + ",left=" + iheight;

  var popup = window.open(url, win, str1);

  if( navigator.appName.substring(0,8) == "Netscape" ) {
    popup.location = url;
  }
}
