	
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);	}}