	
function script_init(){
	//ÆÐÅ°ÁöÁ¾·ù
	var pack = ['JavaScript'];
	//°æ·Î¼³Á¤
	if(null!=document.styleSheets&&0<document.styleSheets.length) {
		var _csspath = document.styleSheets[0].href.replace(new RegExp('::[\\\\/:](\\.\\.[\\\\/:])+'),'::/').replace(new RegExp('[^\\\\/:]+$'),'');
		var path = _csspath.replace('css','js')
	} else {
		
	}
	var path="/lib/js"||'';
	if (path.substr(path.length-1) != "/") path += "/";
	//ÆÐÅ°Áöµî·Ï
	//1.JavaScript
	pack['JavaScript']	= [
		"javascript.js",	//°øÅë½ºÅ©¸³Æ®
		"calendar.js",				//´Þ·Â
		"frmCheck.js"		//validate
		];
	//ÆÐÅ°Áö include
	for (var k=0;k<pack.length;k++) {
		libs = pack[pack[k]];
		
		for (var i=0;i<libs.length;i++)
			if(typeof(libs[i]) != 'undefined')
				document.write('<script language="'+pack[k]+'" src="'+path+libs[i]+'"><\/script>');
	}
}
//½ºÅ©¸³Æ®°æ·Î ¼³Á¤
script_init();
//Ã¼Å© ¹Ú½º¸¦ ÀüÃ¼ Ã¼Å©ÇÏ´Â ÇÔ¼ö
function checkedall(frm){
	for(var i=0; i<frm.elements.length; i++)
	{
		var e = frm.elements[i];
		
		if(e.type == "checkbox")
		{
			if(frm.all.checked){
				e.checked = true;
			} else {
				e.checked = false;
			}
		}
	}
}
//inpru Box¿¡ ¼ýÀÚ¸¸ ÀÔ·ÂµÇ°Ô ÇÏ´Â ÇÔ¼ö 
function allowNumberOnly(event){
	if (event.keyCode < 45 || event.keyCode > 57) {
		event.returnValue = false;
	}
}
/* ¸®½ºÆ®Æû¿¡¼­ÀÇ °¢ ROW´ç mouse Event */
function LIST_OVER(obj){
	obj.className = "listCont MOVER"
}
function LIST_OUT(obj){
	obj.className = "listCont";
}
//============================================================================ 
// ÀÌ¹ÌÁö ÀÚµ¿ ¸®»çÀÌÁî 
//============================================================================ 
function image_auto_resize(this_s,width,height){ 
 var ta_image = new Image(); 
 ta_image.src = this_s.src; 
  if(!width){this_s.removeAttribute('width'); 
  this_s.style.width='auto';} 
  else if(width < ta_image.width){ 
  this_s.width = width; 
  }else{ 
  this_s.width = ta_image.width; 
  } 
  if(!height){this_s.removeAttribute('height'); 
  this_s.style.height='auto';} 
  else if(height < ta_image.height){ 
  this_s.height = height; 
  }else{ 
  this_s.height = ta_image.height; 
  } 
} 
function image_auto_resize_inarea(this_s,width,height,view){ 
//this_s¾ÈÀÇ ¸ðµç ÀÌ¹ÌÁö´Â ÀÚµ¿ ¸®»çÀÌÁî µÈ´Ù. 
 //alert(this_s.childNodes.length); 
 if(!view){view=true;} 
 if(!this_s){return;} 
 if(this_s.nodeType!=1){return;} 
 for(var i=0,m=this_s.childNodes.length;i<m;i++){ 
  var ta = this_s.childNodes[i]; 
  
  if(ta.nodeName=='IMG'){ 
  //ta.style.border='1px solid #333333';  
  image_auto_resize(ta,width,height); 
  if(view){ 
    if(!ta.title){ta.title=ta.src;} 
    if(!ta.onclick){ 
    ta.style.cursor='pointer'; 
    ta.onclick=function(){js_image_view(this,1);} 
    } 
    if(!ta.onload) 
    ta.onload=function(){image_auto_resize(this,width,height);} 
    if(!ta.onmouseover)  
    ta.onmouseover=function(){image_auto_resize(this,width,height);} 
  } 
  } 
  if(ta.childNodes.length>0){ 
  image_auto_resize_inarea(ta,width,height); 
  } 
 } 
 return; 
} 
function ButtonProcessing() {
	try {
		oPopup = window.createPopup();
		var oPopBody = oPopup.document.body;
		oPopBody.style.backgroundColor = "white";
		oPopBody.style.border = "solid #dddddd 1px";
		oPopBody.innerHTML = "<table width='100%' height='100%'><tr><Td align='center' style='font-size:9pt;'>Ã³¸®ÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ¼¼¿ä...<br></td></tr></table>";
		var leftX = document.body.clientWidth/2 - 150;
		var topY = (document.body.clientHeight/2) - (oPopBody.offsetHeight/2);
		oPopup.show(leftX,topY,300,150,document.body);
		//oPopBody.attachEvent("onblur",ButtonProcessing);
	} catch(e) {}
}
function fnFlashObject(path, width, height, flashvars) {
    var m_protocol = document.location.protocol.replace(":","");
    var m_movie = path;
    var m_width = width;
    var m_height = height;
    var m_flashvars = flashvars;
    this.wmode = "transparent";
    this.id = "";
    this.quality = "high";
    this.menu = "false";
    this.allowScriptAccess = "sameDomain";
    var html;
	html ="";
    html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='"+ m_protocol +"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + m_width + "' height='" + m_height + "'";
    if (this.id != "") html += " id='" + this.id + "'";
    html += ">";
    html += "<param name='allowScriptAccess' value='" + this.allowScriptAccess + "' />";
    html += "<param name='movie' value='" + m_movie + "' />";
    html += "<param name='menu' value='" + this.menu + "' />";
    html += "<param name='quality' value='" + this.quality + "' />";
    if (this.wmode != "") html += "<param name='wmode' value='" + this.wmode + "' />";
    if (m_flashvars != "") html += "<param name='FlashVars' value='" + m_flashvars + "' />";
    html += "<embed src='" + m_movie + "' quality='" + this.quality + "' pluginspage='"+ m_protocol +"://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + m_width + "' height='" + m_height + "'";
    html += " allowScriptAccess='" + this.allowScriptAccess + "'";
    if (this.wmode != "") html += " wmode='" + this.wmode + "'";
    if (m_flashvars != "") html += " FlashVars='" + m_flashvars + "'";
    html += " /></object>";
    document.write(html);
}
var page,wid,hit,nam;
function win(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=no,menubar=no,width='+wid+',height='+hit+',top=10,left=10")');
windo.focus();
  }
  
function winscroll(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,width='+wid+',height='+hit+',top=100,left=100")');
windo.focus();
  }
  
function pop_win(s1) {
	var go_url = form_move.url.options[s1].value;
		if (s1 == 0) 
		alert ("????? ???????.");
	if (s1 >= 1)
	{ 
	window.open(go_url);
	}
}
function getCookie(name){
	var v_cookie = document.cookie.split("; ");
	for (i=0; i<v_cookie.length; i++){
		var qb = v_cookie[i].split("=");
		if(name == qb[0])
			return unescape(qb[1]);
	}
}
function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin(){ 
	setCookie("setPopUp", "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë 
	void(Hide(Notice));
}
function trim(str)
{
  return str.replace(/\s/g,'');
}


