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 MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.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 goto_byselect_new(sel) {
	var index  = sel.selectedIndex;
	var selVal = sel.options[index].value;
	
	if (selVal == '' )   return;
	else if (selVal == 'goDiners') top.goDiners();
	else { 
		if(selVal.indexOf('family') > 0){
			window.open(selVal,'main');
		} else {
			window.open(selVal,'_blank');
		}
	}
}


//°¢ Æû ÀÔ·Â°ª Ã¼Å©
 function checkForm01(fm){ 

    if(form1.c_nm.value=="") {
        alert("Ä«Å×°í¸® ÀÌ¸§À» ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");        
        form1.c_nm.focus();
        return false;
        
    }   
     
}  

 function checkForm02(fm){ 

    if(form1.pub_volume.value=="") {
        alert("ÀâÁö º¼·ýÀ» ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");        
        form1.pub_volume.focus();
        return false;
        
    }   
     
}


function checkForm03(fm) {
	
	if (form1.c_cd.value=="")
	{
		alert('Ä«Å×°í¸®¸¦ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		return false;
	}
	
}

function checkForm04(fm) {
	
	if (form1.title.value=="")
	{
		alert('Á¦¸ñÀ» ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		form1.title.focus();
		return false;
	}
	if (form1.conts.value == "")
	{
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		form1.conts.focus();
		return false;
	}	
	
}

function checkValues06(fm)
    {           
        
        var id               = fmmem.mem_id.value;
        var pwd              = fmmem.pwd.value;
    
    
        //id Ã¼Å©   
        if (id == "") 
        {
            alert("Your User ID is not valid. Please try again.");
            fmmem.mem_id.focus();
            return  false;
        }
        
        if (pwd == "") 
        {
            alert("Your Password is not valid. Please try again.");
            fmmem.pwd.focus();
            return  false;
        }
        
    }

//»èÁ¦ ¹× ¼öÁ¤
function pub_magazine(pub_cd) {
  if (confirm("\ÃâÆÇÇÏ½Ã°Ú½À´Ï±î?"))
	{
		window.location.href='/admin/publishing_ok.asp?pub_cd=' + pub_cd + '&pub_yn=Y';

	}

}

function cancle_magazine(pub_cd) {
  if (confirm("\ÃâÆÇÀ» Ãë¼ÒÇÏ½Ã°Ú½À´Ï±î?"))
	{
		window.location.href='/admin/publishing_ok.asp?pub_cd=' + pub_cd + '&pub_yn=N';

	}

}

function del_category(c_cd,b_cd) {
  if (confirm("\Ä«Å×°í¸®¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦¸¦ ÇÏ½Å ÈÄ¿¡´Â º¹±¸°¡ µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/category_d.asp?c_cd=' + c_cd + '&b_cd=' + b_cd;

	}

}

function del_pub(pub_cd) {
  if (confirm("\ÃâÆÇ¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦¸¦ ÇÏ½Å ÈÄ¿¡´Â º¹±¸°¡ µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/publishing_d.asp?pub_cd=' + pub_cd;

	}

}

function del_pub_conts(pub_cd,c_cd,srno) {
  if (confirm("\±â»ç³»¿ëÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦¸¦ ÇÏ½Å ÈÄ¿¡´Â º¹±¸°¡ µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/publishing_cata_conts_d.asp?pub_cd=' + pub_cd + '&c_cd=' + c_cd + '&srno=' + srno;

	}

}

function del_pub_cata(pub_cd,c_cd) {
  if (confirm("\Ä«Å×°í¸® ÀüÃ¼¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦¸¦ ÇÏ½Å ÈÄ¿¡´Â º¹±¸°¡ µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/publishing_cata_d.asp?pub_cd=' + pub_cd + '&c_cd=' + c_cd;

	}

}


function preview(pub_cd,c_cd,srno) {
	mywindow=window.open("/admin/preview.asp?pub_cd="+pub_cd+"&c_cd="+c_cd+"&srno="+srno, "preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=615 ,height=500");
}

function goto_member() {
	window.location.href='/login/register.asp';
}

function del_main_list(pub_cd,srno) {
  if (confirm("\ÀÌ ±â»ç¸¦ ¸ÞÀÎ¸®½ºÆ®¿¡¼­ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦ÈÄ ´Ù¸¥ ±â»ç¸¦ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."))
	{
		window.location.href='/admin/main_select_d_ok.asp?pub_cd=' + pub_cd + '&srno=' + srno;

	}

}

function DelMember(mem_id) {
  if (confirm("\ÀÌ È¸¿øÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦ÈÄ º¹±¸µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/member_d.asp?mem_id=' + mem_id;

	}

}

function GotoPage(sel) {
	var index  = sel.selectedIndex;
	var selVal = sel.options[index].value;
	
	window.location.href='advertise.asp?nYear=' + selVal;
}


function previewad(AdSrno) {
		mywindow=window.open("/admin/previewad.asp?AdSrno=" + AdSrno, "previewad", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=820 ,height=600");
	}

function del_pub_camera_title(pub_cd, c_cd, b_cd) {
  if (confirm("\ÀÌ ÁÖÁ¦À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦½Ã µî·ÏÇÑ ¾Ù¹üµµ °°ÀÌ »èÁ¦µË´Ï´Ù."))
	{
		window.location.href='/admin/pub_camera_title_delete.asp?pub_cd=' + pub_cd + '&c_cd=' + c_cd + '&b_cd=' + b_cd;

	}

}

function del_pub_camera_conts(pub_cd, c_cd, b_cd,casrno) {
  if (confirm("\ÀÌ »çÁøÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦ÈÄ¿¡´Â º¹±¸°¡ µÇÁö ¾Ê½À´Ï´Ù."))
	{
		window.location.href='/admin/pub_camera_conts_delete.asp?pub_cd=' + pub_cd + '&c_cd=' + c_cd + '&b_cd=' + b_cd + '&casrno=' + casrno;

	}

}

function preview_camera(pub_cd,c_cd,b_cd,casrno) {
	mywindow=window.open("/admin/preview_camera.asp?pub_cd="+pub_cd+"&c_cd="+c_cd+"&b_cd="+b_cd+"&casrno="+casrno, "preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=615 ,height=500");
}

function goto_cover_nYear(sel) {
	var index  = sel.selectedIndex;
	var selVal = sel.options[index].value;
	
	window.location.href='/aboutus/cover.asp?nYear=' + selVal ;
}

function LargeCover(nYear,No) {
		mywindow=window.open("/magazine/LargeCover.asp?nYear="+nYear+"&No="+No, "Cover", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=555 ,height=800");
}

function goto_archive_nYear(sel) {
	var index  = sel.selectedIndex;
	var selVal = sel.options[index].value;
	
	window.location.href='/Magazine/Archive.asp?nYear=' + selVal ;
}
