function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// ÀÌ¹ÌÁö ÁÖÀ§ Á¡¼±¾ø¾Ö±â ¼Ò½º
function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="/img") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 

// »óÅÂ¹Ù ÁÖ¼Ò °¨Ãß±â ¼Ò½º
function hidestatus(){
	window.status='Áø°ø¼ºÇü ÀÎÇ»Á¯ Àü¹®±â¾÷-Á¦Æ®ÄÚ¸®¾Æ'
	return true
}

//Å¸ÀÌÆ² ÁÖ¼Ò °íÁ¤
try {
 top.document.title='Áø°ø¼ºÇü ÀÎÇ»Á¯ Àü¹®±â¾÷-Á¦Æ®ÄÚ¸®¾Æ'
}catch (Exception){
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

//¹®ÀÚ¿­¿¡¼­ ¼ýÀÚ¸¸ °¡Á®°¡±â 
function get_number(str){ 
	var val = str; 
	var temp = ""; 
	var num = ""; 

	for(i=0; i<val.length; i++){ 
		temp = val.charAt(i); 
		if(temp >= "0" && temp <= "9") num += temp; 
	} 
	return num; 
}

function Show_Hide() { 
  var i,p,v,obj,args=Show_Hide.arguments; 
  for (i=0; i<(args.length-2); i+=3) if ((obj=Find_Obj(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 bIsAllNum(input) {
 for(var ii = 0; ii < input.length; ii ++) {
 	if(isNaN(input.charAt(ii))){ return false; }
 }
 return true;
}

function only_num(){
	var	chk=0;
	if( (event.keyCode>47) && (event.keyCode<58) ){
		chk=1;
	}else if( (event.keyCode>95) && (event.keyCode<106) ){
		chk=1;		
	}else if( (event.keyCode==46) || (event.keyCode==8) ){
		chk=1;		
	}
	
	if(chk==0){
		event.returnValue=false;
	}else{
		event.returnValue=true;
	}
}

function input_check(input) {
	for (var i = 0; i < input.length; i++) {
		var chr = input.charCodeAt(i);
		if (chr==34 || chr==37 || chr==38 || chr==39  || chr==124 ){// ",%,&,' ,|
			return false;
		}
	}
	return true;	
}
function input_onecheck(input,ncode) {
	for (var i = 0; i < input.length; i++) {
		var chr = input.charCodeAt(i);
		if (chr==ncode ){
			return false;
		}
	}
	return true;	
}
//°ÅºÎ´Ü¾î Ã¼Å©
function Bad_input_chk(input,badtext) {
	//var badtext="(±¤°í),[±¤°í],xxx,sex,porno";
	if (badtext!=""){
		badtextarr= badtext.split(",");
		for(var i = 0; i < badtextarr.length; i ++) {
			//alert(badtextarr[i]+" : "+ input +" = "+input.indexOf(badtextarr[i])); 
			if(input.indexOf(badtextarr[i])!=-1){	
				return false;
			}
		}
	}
	return true;
}
//table¸¸ »ç¿ë-³»¿ë ÀÔ·Â½Ã
function Html_Check(input) {
	var badtext="<html,<body,<head,</body>,</head>,</html>";
	var badtextarr= badtext.split(",");
	for(var i = 0; i < badtextarr.length; i ++) {
 		if (input.indexOf( badtextarr[i].toLowerCase() ) != -1){	
			return false;
		}
	}
	return true;
}
function Table_Check(input) {
	var badtext="<table,<tr,<td,</td>,</tr>,</table>,<T,</T";
	var badtextarr= badtext.split(",");
	for(var i = 0; i < badtextarr.length; i ++) {
 		if (input.indexOf( badtextarr[i].toLowerCase() ) != -1){	
			return false;
		}
	}
	return true;
}
//ÁÖ¹Î¹øÈ£ Ã¼Å©
function JuminCheck(it) {
	var check = false;
	var IDtot = 0;
	var IDAdd = "234567892345";

	for(i=0; i<12; i++) IDtot = IDtot + parseInt(it.substring(i, i+1)) * parseInt(IDAdd.substring(i, i+1));
	IDtot = 11 - (IDtot%11);
	if (IDtot == 10) IDtot = 0;
	else if (IDtot == 11) IDtot = 1;
	if(parseInt(it.substring(12, 13)) != IDtot) check=true;
	return check;
} 
//¸ÞÀÏ Ã¼Å©
function Mail_Chk(elm) {
	if (elm.length > 6){
		if ( (elm.indexOf("@") >0) && (elm.indexOf(".") >0) ) {
			//alert(elm.indexOf("@")+" , "+ elm.indexOf(".")); 
			return true;
		}
	}
	return false;
}
//ÇÑ±ÛÀÌ¸§À» À§ÇÑ ¿µ¼ýÀÚ ¹®ÀÚ Ã¼Å©
function check_Hname(str_name,s_chk){	
	var str_tmp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()[]-_.,"; 
	for (i=0;i<str_name.length;i++)	{
		//alert(str_name.substring(i,i+1)+" : "+str_tmp.indexOf(str_name.substring(i,i+1))); 
		if (s_chk=="b"){
			if (str_name.substring(i,i+1)==" "){
				return false;
				break;
			}
		}
		if (str_tmp.indexOf(str_name.substring(i,i+1))>0){
			return false;
			break;
		}
	}
	return true;
}
//ÇÑ±ÛÀÌ¸§ Ã¼Å©
function check_H_filename(str_name){	
	img=new Object();
	img.aa=new Image();
	img.aa.src=str_name ;
	var s = img.aa.src.split("/") ;
	var temp_Filename = s[s.length-1];
		//alert(temp_Filename);
	var str_tmp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_.()"; 
	for (i=0;i<temp_Filename.length;i++)	{
		if (temp_Filename.substring(i,i+1)==" "){
			return false;
			break;
		}else if (str_tmp.indexOf(temp_Filename.substring(i,i+1))<0){
			return false;
			break;
		}
	}
	return true;
}
//ÀÌ¸§ Ã¼Å©
function name_check(input) {
	var err_cnt=0
	for (var i = 0; i < input.length; i++) {
		var chr = input.charAt(i);
		if (chr=="'" || chr=="%" || chr=="|" || chr=="&" || chr=="_" || chr=="," || chr=="@" || chr=="!" || chr=="<" || chr==">"){
			err_cnt=2;
			break;
		}
	}
	if ((input.charCodeAt(0)=="0") || (input.charCodeAt(input.length-1)=="0")){
		err_cnt=2; //alert("Initial Letter,Last Letter  Don't Use '.' !"); return;
	}
	if (err_cnt == 0 ){
		return true;
	}else{
	 	return false;
	}
}	
//¿µ¹® ÀüÃ¼ÀÌ¸§ Ã¼Å©
function check_ename(str_name){	
	var temp_ename = str_name;
	var str_tmp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_,. "; 
	for (i=0;i<temp_ename.length;i++)	{
		if (str_tmp.indexOf(temp_ename.substring(i,i+1))<0){
			return false;
			break;
		}
	}
	return true;
}
function tel_check(input) {
	var err_cnt=0
	for (var i = 0; i < input.length; i++) {
		var str = input.charAt(i);
		if ( !( (str >= "0" && str <= "9") || (str == "-") ) ){
				err_cnt ++;
				break;
		}
		//alert(input+" : " + str +" - "+err_cnt);
	}
	if ((input.charCodeAt(0)==45) || (input.charCodeAt(input.length-1)==45)){
		err_cnt=2; //alert("Initial Letter,Last Letter  Don't Use '.' !"); return;
	}
	if (err_cnt == 0 ){
		return true;
	}else{
	 	return false;
	}
}
//±Ý¾× ÀÔ·Â Ã¼Å©
function money_check(str_name){
	var temp_value = str_name;
	var str_tmp="0123456789"; 
	for (i=0;i<temp_value.length;i++)	{
		if (str_tmp.indexOf(temp_value.substring(i,i+1))<0){
			//alert(i+" - "+str_tmp.indexOf(temp_value.substring(i,i+1)));
			return false;
			break;
		}
		//alert(i+" - "+str_tmp.indexOf(temp_value.substring(i,i+1)));
	}
	return true;
}
//¾ÆÀÌµð Ã¼Å©
function id_check(input) {
	var err_cnt=0
	for (var i = 0; i < input.length; i++) {
		var val = input.charAt(i);
		if ( !( (val >= "0" && val <= "9") || (val >= "a" && val <= "z") || (val >= "A" && val <= "Z") || (val == "-") ) ){
				err_cnt=1;
				break;
		}
	}
	if ((input.charCodeAt(0)==45) || (input.charCodeAt(input.length-1)==45)){
		err_cnt=2; //alert("Initial Letter,Last Letter  Don't Use '-'!"); return;
	}
	if ( input.charCodeAt(0)>47 && input.charCodeAt(0)<58 ){
		err_cnt=3; //alert("//Initial Letter Don't Number! - "+ input.charCodeAt(0)); return;
	}
	if (err_cnt == 0 ){
		return true;
	}else{
	 	return false;
	}
}
//µµ¸ÞÀÎ Ã¼Å©
function checkhost(host){
  domhost='';
  ptcnt = 0;
  for ( i=0;i<host.length;i++ ){
    if ((i == 0) && (host.charAt(i) == '-')){
      return false;
    }else if ((i == host.length-1) && (host.charAt(i) == '-')){
      return false;
    }
    if ((host.charAt(i) >= '!' && host.charAt(i) <= ',') ||
        (host.charAt(i) >= ':' && host.charAt(i) <= '@') ||
        (host.charAt(i) >= '[' && host.charAt(i) <= '`') ||
        (host.charAt(i) >= '{' && host.charAt(i) <= '~') ||
        (host.charAt(i) == '/')){ 
			return false; 
		}else {
      if (host.charAt(i) == ' '){
        if ((i != host.length) && (i != 0)) return false;
      }
      if (host.charAt(i) == '.') {
        ptcnt = ptcnt + 1;
        if (host.charAt(i+1) == '.') { 
					return false; 
				}
        domhost = domhost + host.charAt(i);
      }else if (host.charAt(i) != ' ') {
        domhost = domhost + host.charAt(i);
			}
    }
  }
  if (ptcnt < 1 || ptcnt > 3){ 
		return false; 
	}
  return domhost;
}

function moveNext(o_current,o_next){
	if(o_current.value.length == o_current.maxLength){
		o_next.select();
		o_next.focus();
	}
} 

function Paging_Go(page) {
	var f=document.Form_List;
	f.page.value=page;
	f.submit();
}

function Win_Name_chk(iname){ 
	 if (window.name != iname){ 
		 window.close();
		 top.location.assign('');
		 return false;
	 }
	return;
}

function getCookie(name) {

 var Found = false;
 var start, end;
 var i = 0;
 
 while(i<=document.cookie.length) {
	start = i;
	end = start + name.length;

	if(document.cookie.substring(start, end) == name) {
		Found = true;
		break;
	}
 i++;
 }
 
 if(Found == true) {
 	start = end + 1;
	end = document.cookie.indexOf(";", start)

	if(end <start)
		end = document.cookie.length;
 
	return document.cookie.substring(start, end);
 }
 return "";
}

function setCookie(name,value,expiredays) {
	var todayDate = new Date();
	todayDate.setDate(todayDate.getDate() + expiredays);
	document.cookie= name + "=" + escape(value)+"; path=/; expires=" +todayDate.toGMTString()+";"
}

function imgResize(target_img, g_width, g_height){
	var newX, newY;
	var newHeight, newWidth;
	var newImg;
	var maxWidth = g_width;
	var maxHeight = g_height;
	
	newImg = new Image();
	newImg.src = target_img.src;
	imgw = newImg.width;
	imgh = newImg.height;
	//	if (imgw*1.2 >= imgh) {return false; }
	if (imgw > maxWidth || imgh > maxHeight) {
			if(imgw > imgh) {
					if(imgw > maxWidth)
							newWidth = maxWidth;
					else
							newWidth = imgw;
					newHeight = Math.round((imgh*newWidth)/imgw);
			}else{
					if(imgh > maxHeight)
							newHeight = maxHeight;
					else
							newHeight = imgh;
					newWidth = Math.round((imgw*newHeight)/imgh);
			}
	}else{
			newWidth = imgw;
			newHeight = imgh;
	}
	newX = maxWidth/2 - newWidth/2;
	newY = maxHeight/2 - newHeight/2;
	target_img.onload = null;
	target_img.src = newImg.src;
	target_img.width = newWidth;
	target_img.height = newHeight;
}

var Box_Toggle =1;
function RollingBox_M_Stop(obj,chk) {   
  Box_Toggle = 0;   
  switch(chk) { 
    case 1: 
			obj.stop(); 
			break; 
		case 2: 
			obj.stop(); 
			break; 
  }     
} 
function RollingBox_M_Start(obj,chk){   
  Box_Toggle = 1;   
  switch(chk) { 
		case 1: 
			obj.start(); 
			break; 
		case 2: 
			obj.start(); 
			break; 
  }     
}

function fn_checked_obj(b,c,d){
	var obj,len;
	obj = eval("document.UForm."+b);//eval(b);
	len = obj.length;
	for(i=0;i<len;i++){//¼¼·Î
		if(obj[i].value == c){
			obj[i].checked=true;
		}else{
			obj[i].checked=false;
		}
	}		
}
function fn_Toggle_Img(b){ 
	if (document.all){
		var obj = eval("document.all."+ b + ".style");
		if(obj.display == "block"){
			obj.display = "none";
		}	else{
			obj.display = "block";
		}
	}
}
function fn_toggle_Obj(b,c,d){ 
	if (document.all){
		var obj = eval("document.all."+ b + ".style");
		if(c.value==d){
			obj.display = "block";
		}	else{
			obj.display = "none";
		}
	}	
}
function fn_chang_img(b,c,d) {
	var obj,obj2,optArray,chk_i,str;
	if (c=="1") {
		optArray = new Array("tm_1","tm_2","tm_3","tm_4","tm_5");
		for(i=0;i<optArray.length;i++){
			obj=eval("document."+optArray[i]);
			if(b==optArray[i]){
				obj.src="/images/topmenu/"+optArray[i]+"_over.gif";
			}else{
				obj.src="/images/topmenu/"+optArray[i]+".gif";
			}

		}
	}else if (c=="2") {
		if (d=="0") {
			str="/images/topmenu/"+b+".gif";
		}else{
			str="/images/topmenu/"+b+"_"+d+".gif";
		}
		chk_i=parseInt(d)
		obj=eval("document."+b);
		obj.src=str;	
	}	
}

function fn_toggle_MOver(b,c,d){ 
	var obj,obj2,j,len,chk_var;
	var optArray;
	obj=eval("document.all."+b+".style");
	//alert(b+" - "+c);
	if (c!="") {
		if (c=="1") {
			optArray = new Array("tr_sm_1","tr_sm_2","tr_sm_3","tr_sm_4","tr_sm_5","tr_sm_6");
		}else if (c=="3--") {
			optArray = new Array("tr_email","tr_hp");			
		}	
		
		chk_var=c.substring(0,1);	
		len = obj.length;
		for(i=0;i<optArray.length;i++){
			obj2=eval("document.all."+optArray[i]+".style");
			obj2.display="none";
		}	
		if(d=="none"){
		}else{
			obj.display="block";	
		}
	}
}

function fn_toggle_select(b,c,d){ 
	var obj,obj2,i,j,len,chk_num,chk_var;
	var optArray;
	obj=eval("document.all."+b);
	//alert(b+" - "+c);
	if (c!="") {
		if (c=="a") {
			optArray = new Array("amenu1","amenu2","amenu3","amenu4","amenu5","amenu6","amenu7");		
		}else if (c=="tam") {
			optArray = new Array("tamenu1","tamenu2","tamenu3","tamenu5");	
		}else if (c=="tm") {
			optArray = new Array("tr_item1","tr_item2","tr_item3","tr_item4");				
		}else if (c=="tu") {
			optArray = new Array("tr_treq1","tr_treq2");				
		}else if (c=="m1") {
			optArray = new Array("tr_person","tr_office");				
		}	
		
		chk_var=c.substring(0,1);	
		len = obj.length;
		if (chk_var=="m"){
			
			for(j=0;j<optArray.length;j++){
				for(i=0;i<len;i++){
					obj2=eval("document.all."+optArray[j]+"["+i+"].style");
					obj2.display="none";
				}	
			}
			if(d=="none"){
			}else{
				for(i=0;i<len;i++){
					obj[i].style.display="block";	
				}
			}
		}else{
			for(i=0;i<optArray.length;i++){
				obj2=eval("document.all."+optArray[i]+".style");
				obj2.display="none";
			}	
			if(d=="none"){
			}else{
				obj.style.display="block";	
			}
		}
		
	}
}
//ÇÃ·¡½¬ ¼Ò½º
function flash(width,height,flash_name) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ';
 flash_tag +='WIDTH="'+width+'" HEIGHT="'+height+'" >';
 flash_tag +='<param name="movie" value="'+flash_name+'">';
 flash_tag +='<param name="quality" value="high">';

 flash_tag +='	<param name="wmode" value="transparent">';
 flash_tag +='<embed src="'+flash_name+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+width+'" HEIGHT="'+height+'"></embed></object>'
 document.write(flash_tag);
}

function Webpage_Flash(url,fwidth,fheight,f_opt){	//
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ fwidth +'" height="'+ fheight +'">');
	document.write('<param name="movie" value="'+ url +'">');
	document.write('<param name="quality" value="high">');
	if (f_opt=="tr"){
		document.write('<param name="wmode" value="transparent">');
	}
	document.write('<embed src="'+ url +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ fwidth +'" height="'+ fheight +'">');
	document.write('</embed>');
	document.write('</object>');	
}

function Web_Movie(url,fwidth,fheight){	//
	document.write('<OBJECT classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width='+ fwidth +' height='+ fheight +' VIEWASTEXT>');
	document.write('<PARAM NAME="URL" VALUE="'+ url +'">');
	document.write('<PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0">');
	document.write('<PARAM NAME="currentPosition" VALUE="0">');
	document.write('<PARAM NAME="defaultFrame" VALUE="">');
	document.write('<PARAM NAME="playCount" VALUE="1">');
	document.write('<PARAM NAME="autoStart" VALUE="-1">');
	document.write('<PARAM NAME="currentMarker" VALUE="0">');
	document.write('<PARAM NAME="invokeURLs" VALUE="-1">');
	document.write('<PARAM NAME="baseURL" VALUE="">');
	document.write('<PARAM NAME="volume" VALUE="50">');
	document.write('<PARAM NAME="mute" VALUE="0">');
	document.write('<PARAM NAME="uiMode" VALUE="full">');
	document.write('<PARAM NAME="stretchToFit" VALUE="0">');
	document.write('<PARAM NAME="windowlessVideo" VALUE="0">');
	document.write('<PARAM NAME="enabled" VALUE="-1">');
	document.write('<PARAM NAME="enableContextMenu" VALUE="-1">');
	document.write('<PARAM NAME="fullScreen" VALUE="0">');
	document.write('<PARAM NAME="SAMIStyle" VALUE="">');
	document.write('<PARAM NAME="SAMILang" VALUE="">');
	document.write('<PARAM NAME="SAMIFilename" VALUE="">');
	document.write('<PARAM NAME="captioningID" VALUE="">');
	document.write('<PARAM NAME="enableErrorDialogs" VALUE="0">');
	document.write('<PARAM NAME="_cx" VALUE="11483">');
	document.write('<PARAM NAME="_cy" VALUE="7805">');
	document.write('</OBJECT>');
}


function Main_Go(b,c,d,e,g,h){
	var f=document.Form_List;
	var url,ww,hh,win;
	if (b=="home"){
		location.href="/";
	}else if (b=="select"){
		url=c.options[c.selectedIndex].value;
		if (url==""){
			return; 
		}
		window.open(url,'_blank')	
	}else if(b == 'blist'){
		location.href = "/board/board.asp?board="+c;
	}else if(b == 'bread'){
		location.href = "/board/board_read.asp?board="+c+"&idx="+d;
	}else if (b=="webpage"){
		location.href = "/admin/webpage/webpage_list.asp?part="+c;		
	}else if(b == 'popup')	{
		url="/include/config/popup.asp?idx="+c
		win=window.open(url, "wpopup", "width="+d+",height="+e+",left="+g+",top=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); 
		win.focus();
	}else if(b == 'mpopup')	{
		url="/include/config/popup.asp?idx="+c
		win=window.open(url, "wpopup"+c, "width="+d+",height="+e+",left="+g+",top=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto, resizable=yes"); 
		win.focus();		
	}else if(b == 'webpage_preview')	{
		url="/include/config/data.asp?part="+ c +"&idx="+d
		win=window.open(url, "wpreview", "width="+e+",height="+g+",left=20,top=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto, resizable=yes"); 
		win.focus();
	}else if(b=="zipcode"){
		ww = (screen.width-400)/2;
		hh = (screen.height-350)/2;
		url	= "/include/config/zip_search.asp?key="+c;
		win = window.open(url,"zipcode","width=400,height=250,toolbar=no,status=no,personalbar=no,menubar=no,directories=no,scrollbars=no,resizable=no,left="+ww+",top="+hh+"");	
		win.focus();
	}else if(b=="vimg"){
		ww = (screen.width-800)/2;
		hh = (screen.height-600)/2;		
		win=window.open("/include/config/Open_image.asp?file="+c+"&fdir="+d,"img_view","width=500,height=500,status=no,personalbar=no,menubar=no,directories=no,scrollbars=yes,resizable=no,left="+ww+",top="+hh+"");		
		win.focus();
	}else if(b=="fimg_manage"){
		url = "/include/config/folder_image_manage.asp?imgdir="+c;
	 	win=window.open(url,"fimg_manage","status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,width=560,height=400,left=15,top=2");
	 	win.focus();
	}else if(b=="file_manage"){
		url = "/include/config/folder_file_manage.asp?filedir="+c;
	 	win=window.open(url,"file_manage","status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,width=560,height=400,left=15,top=2");
	 	win.focus();		
	}else if(b == 'fdown'){
		location.href="/include/Progress/Filedown.asp?file="+c+"&fdir="+d+"&idx="+e;
	}else if (b=="sms"){
		url	= "/network/sms/sms_open_form.asp?open_chk="+d+"&to_hp="+c ;	//d(=close,reload)
		var left_length=screen.width-700;
		win=window.open(url,"open_sms","width=640,height=450,toolbar=no,menubar=no,scrollbar=no,resizable=no,left="+ left_length +",top=50");
		win.focus();
	}else if (b == "print") { 
		if( confirm("[ÇÁ¸°Æ®] ÀÎ¼âÇÏ½Ã°Ú½À´Ï±î?") ) {
			if(window.print) {
				window.print();
			}else {
				alert("Print ±â´ÉÀ» Áö¿øÇÏÁö ¾Ê´Â ºê¶ó¿ìÀúÀÔ´Ï´Ù.");
			}
		}
	}else if(b == 'cal')	{
		//var url="/include/config/mtwin_cal.asp?year="+ c +"&month="+ d +"&dd="+ e +"&f_opt="+ g;
		url="/include/config/cal_mtwin.asp?year="+ c +"&month="+ d +"&dd="+ e +"&f_opt="+ g;
		win=window.open(url,"Calendar","width=456,height=214,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=50,top=50");	 			 		win.focus();
	}else if(b == 'morder_reg'){
		url = "/home/sub.asp?idx=58";
		win=window.open(url,"s_main","");	
	}else if (b=="o_reload"){
		opener.location.href = c;			
	}else if (b=="webLog"){
		url	= "/network/log/count.asp" ;	
		win=window.open(url,"webLog","width=648,height=540,top=50,left=200,menubar=no,directories=no,resizable=no,scrollbars=yes,status=no");
		win.focus();
	}else if(b=="open"){
		win=window.open(c,b,"width="+d+",height="+e+",toolbar=no,menubar=no,scrollbars=auto,resizable=yes,left="+g+",top="+h);
		win.focus();
	}
}
