function Yalert(msg)
{

  alert(msg);
}



function Ylocation(url)
{

  this.location.href = url;
}



function Yclose()
{

  this.close();
}



function Yback(num)
{

    history.go(num);
}



function Yalert_location(msg,url)
{

  alert(msg);
  this.location.href = url;
}



function Yalert_close(msg)
{

  alert (msg);
  this.close();
}



function Yalert_back(msg)
{

  alert (msg);
  history.go(-1);
}



function Ypop1(url,title,width,height,top,left)
{

  if (title){

    var newwinobj = window.open(url,title,'status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',top='+top+',left='+left);
  }
  else{

    var newwinobj = window.open(url,'','status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',top='+top+',left='+left);
  }
  newwinobj.focus();
  return;
}



function Ypop2(url,title,width,height,top,left)
{

  if (title){

    var newwinobj = window.open(url,title,'status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height+',top='+top+',left='+left);
  }
  else{

    var newwinobj = window.open(url,'','status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height+',top='+top+',left='+left);
  }
  newwinobj.focus();
  return;
}


function Ypop3(url,title)
{

  if (title){

    var newwinobj = window.open(url,title,'');
  }
  else{

    var newwinobj = window.open(url,'','');
  }
  newwinobj.focus();
  return;
}



function Yalert_focus(msg,field)
{

  alert (msg);
  field.focus();
  return;
}

  
  
function Yalert_select(msg,field)
{

  alert (msg);
  field.select();
  return;
}



function Yselectedlocation(f) 
{
  if (f.options[f.selectedIndex].value){

    Ylocation(f.options[f.selectedIndex].value);
  }
}



function Ynl2br(v)//ÅØ½ºÆ® ¿¡¸®¾îÀÇ °ªÀ» url·Î ³Ñ±æ¶§ »ç¿ë php Ytcomment_change1($text)¿Í Â¦À» ÀÌ·é´Ù.
{

  var chtagstr = "";
  var tempTags = "";

  for(var i = 0; i < v.length ; i++){

    chtagstr = v.substring(i,i+1);
					
    if(chtagstr == "\n"){

      chtagstr += "<br>";
    }

    tempTags += chtagstr; 
  }

  return tempTags;
}



function Yreload()
{

  self.location.reload();
}



function Ykeydown()
{ 
    
  if (event.keyCode ==13) { 

    Ysub_login_form();
  } 
}



//ÀÌ¹ÌÁö º¼´õ ¾ø¾Ö´Â ½ºÅ©¸³Æ®
 function allblur() {

   for (i = 0; i < document.links.length; i++)
   document.links[i].onfocus = document.links[i].blur;
 }



//½Ã°£ Ãâ·Â
function runClock() { 

  theTime = window.setTimeout("runClock()", 1000); 
  var today = new Date(); 
  var display= today.toLocaleString(); 
  status=display; 
}