<!--


function ViewImage(ifile,ix,iy,ititle) { 
var win; 
var sWidth; 
var sHeight; 
var NS = (document.layers) ? 1 : 0; 
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no"); 
if (NS) { 
sWidth = win.innerWidth; 
sHeight = win.innerHeight; 
} else { 
sWidth = win.document.body.clientWidth; 
sHeight = win.document.body.clientHeight; 
} 
if(sWidth!=ix || sHeight!=iy) { 
win.close(); 
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250); 
return; 
} 
win.document.open(); 
win.document.write("<html><head><title>"+ititle+"</title>"); 
win.document.write("</head><body>"); 
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">'); 
win.document.write("<img src="+ifile+"></div></body></html>"); 
win.document.close(); 
} 
 


function popup()
{
if (GetCookie('notice') == 'checked')  return; 	
PageStart();
}
function GetCookie(name)
{
var CookieName = name + "=";   
var DocuCookie = document.cookie;
var validate = "";	if (DocuCookie.length > 0)
{ 
begin = DocuCookie.indexOf(CookieName); 
if (begin != -1)
{
begin += CookieName.length;  
end = DocuCookie.indexOf(";", begin);
if (end == -1) end = DocuCookie.length;		
validate += unescape(DocuCookie.substring(begin, end));	
}
}	return validate;
}
function PageStart()
{
//joy ÆË¾÷ 
var url="./html/popup/newyear.htm";  projectionWindow = window.open(url,"kwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=309,height=500");   projectionWindow.focus();}
//-->



function Us_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function Us_goto(url, targetstr)
{
  if (url == 'backward')
    history.back(1);
  else if (url == 'forward')
    history.forward(1);
  else {
     if (targetstr == 'blank') {
       window.open(url, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
       frameobj.location = url;
     }
  }
}


function Us_guestform()
{

 if(document.guestform.name.value.length < 2  || document.guestform.name.value == null)
 {
   alert("¼º¸íÀ» Àû¾îÁÖ¼¼¿ä");
   document.guestform.name.focus();
   return;
 }

  if(document.guestform.pass.value.length < 2  || document.guestform.pass.value == null)
 {
   alert("¾ÏÈ£¸¦ Àû¾îÁÖ¼¼¿ä");
   document.guestform.pass.focus();
   return;
 }


  if(document.guestform.comment.value.length < 2 || document.guestform.comment.value == null)
 {
   alert("³»¿ëÀ» Àû¾îÁÖ¼¼¿ä");
   document.guestform.comment.focus();
   return;
 }

document.guestform.submit();

}

// ·¹ÀÌ¾î
function Us_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=Us_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function Us_showHideLayers() { 
	var i,p,v,obj,obj2, args=Us_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3)  {
		if ((obj=Us_findObj(args[i]))!=null) { 
			v=args[i+2];
			
		    if (obj.style) { 
				obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; 
			}
			obj.visibility=v; 
		}
	}
}

// ·¹ÀÌ¾î


function defaultStatus(){
	var lec = document.all.lecture;
	for (var i=0;i<lec.length;i++){
		document.all.lecture[i].style.border = "1 solid #243C5B";
		document.all.lecture[i].style.backgroundColor = "";
	}
}

function mouseOnTD(obj)
{
	obj.style.border = "1 solid #243C5B";
	obj.style.backgroundColor = "white";
	obj.style.cursor = "hand";
}

function ClickOnTD(obj, page){
	obj.style.border = "1 solid #243C5B";
	obj.style.backgroundColor = "white";
	obj.style.cursor = "hand";
	parent.resume.location.href = page;
}



//¸µÅ©¿¡ Æ÷Ä¿½º Áö¿ì±â
function bluring()
{
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}

document.onfocusin=bluring;


function ToJava()
{
	alert("ÁØºñÁßÀÔ´Ï´Ù!");
}


//-->

