	
	function MM_swapImgRestore() 
	{
		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() 
	{
		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) 
	{
		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() 
	{
		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_jumpMenu(targ,selObj,restore)
	{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
	
	function MM_reloadPage(init) 
	{
		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 Pop_Cent() 
	{
		if (document.layers) 
		{
			var sinist = screen.width / 2 - outerWidth / 2;
			var toppo = screen.height / 2 - outerHeight / 2;
		} 
		else 
		{
			var sinist = screen.width / 2 - document.body.offsetWidth / 2;
			var toppo = -14 + screen.height / 2 - document.body.offsetHeight / 2;
		}
		self.moveTo(sinist, toppo);
	}
	function Com_Login()
	{
		MoveUrl = "http://www.sw-aft.com/Sw_Common/Com_Login.asp"
		open(MoveUrl, "Com_Login", "width=300, height=200, menubar=no,directories=no,resizable=no,status=no,scrollbars=no")
	}
	function Com_Logout(Ls_Url)
	{
		var chk = confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?");
		if (chk == true) 
		{
			MoveUrl = "http://www.sw-aft.com/Sw_Common/Com_Logout.asp?Ls_Url="+ Ls_Url;
			window.location = MoveUrl
		}
	}
	function Com_Add()
	{
		MoveUrl = "http://www.sw-aft.com/Sw_Common/Com_Add.asp";
		open(MoveUrl, "Com_Login", "width=600, height=200, menubar=no,directories=no,resizable=no,status=no,scrollbars=no")
	}
	function Com_Edit(Ls_UniqNum)
	{
		MoveUrl = "http://www.sw-aft.com/Sw_Common/Com_Edit.asp?Ls_UniqNum="+ Ls_UniqNum;
		open(MoveUrl, "Com_Login", "width=600, height=200, menubar=no,directories=no,resizable=no,status=no,scrollbars=no")
	}
	function FncSelectBox()
	{
		if (document.form1.Ls_P_Cate1.selectedIndex == 0)
		{
			for (var i = 0; i < document.form1.Ls_P_Cate2.length; i++)
			{
				document.form1.Ls_P_Cate2.remove(i) ;
			}
			var AddOption = new Option('','');
	
			document.form1.Ls_P_Cate2[0] = AddOption;
			document.form1.Ls_P_Cate2.selectedIndex = 0;
		}
		else
		{
			FrmX.location.href = "http://www.sw-aft.com/Sw_Common/Com_DirectX.asp?Ls_P_Cate1_Value=" + document.form1.Ls_P_Cate1.value
		}
	}
	function Com_Save(Ls_Save)
	{
		if (Ls_Save=="1")
		{
			if(document.form1.Ls_P_Cate1.value=="")	
			{
				alert("Á¦Ç°ºÐ·ù¸¦ ¼±ÅÃÇÏ¼¼¿ä.");
				form1.Ls_P_Cate1.focus();
				return;
			}		
			if(document.form1.Ls_Name.value=="")	
			{
				alert("Á¦Ç°¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
				form1.Ls_Name.focus();
				return;
			}
			if(document.form1.Ls_File.value=="")	
			{
				alert("Á¦Ç°»çÁøÀ» µî·ÏÇÏ¼¼¿ä.");
				form1.Ls_File.focus();
				return;
			}
			var chk = confirm("µî·ÏÇÏ½Ã°Ú½À´Ï±î?");
		}
		else if (Ls_Save=="2")
		{
			if(document.form1.Ls_P_Cate1.value=="")	
			{
				alert("Á¦Ç°ºÐ·ù¸¦ ¼±ÅÃÇÏ¼¼¿ä.");
				form1.Ls_P_Cate1.focus();
				return;
			}		
			if(document.form1.Ls_Name.value=="")	
			{
				alert("Á¦Ç°¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
				form1.Ls_Name.focus();
				return;
			}
			var chk = confirm("¼öÁ¤ÇÏ½Ã°Ú½À´Ï±î?");
		}
		else
		{
			var chk = confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?");
		}
		if (chk == true) 
		{
			document.form1.action="http://www.sw-aft.com/Sw_Common/Com_Save.asp"
			document.form1.submit();
		}
	}
	function Com_View(Ls_UniqNum) 
	{
		MoveUrl = "Com_View.asp?Ls_UniqNum="+ Ls_UniqNum;
		open(MoveUrl, "win", "scrollbars=no,status=no,toolbar=no,resizable=0,location=no,menu=no,width=100,height=100")
	}
	function Com_Del()
	{
		var chk = confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?");

		document.form1.action="http://www.sw-aft.com/Sw_Common/Com_Del.asp"
		document.form1.submit();
	}
	function Com_Group(Ls_URL)
	{
		MoveUrl = "http://group.sw-aft.com/Group_Index.asp?Ls_URL="+ Ls_URL;
		open(MoveUrl, "Com_Login")
//		window.location = MoveUrl
	}
	