
function fnSetPopUp(furl, fwidth, fheight, foption) {
	var wl = (screen.width - fwidth) / 2;
	//var wh = (screen.height - fheight) / 2;
	var wh = 0;
		
	win = window.open(furl,"","width="+fwidth+",height="+fheight+",left=" + wl + ",top=" + wh + foption);
	win.focus();
}

/*function goMenu(menu_idx)
{

	alert(11111111111);
	var goURL = "";

	switch (menu_idx)
	{

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		default :
			alert('ÁØºñÁßÀÔ´Ï´Ù.');
		return;
	}

	if (goURL != "") {
		location.href = goURL;
	}
}*/




function GoMenu (P_Num, S_Num, D_Num) {
    var ServiceRoot = "";
    var url = "";
    var targetb = "";
    //alert(P_Num+"/"+S_Num+"/"+D_Num);
    if(P_Num == "0") {     
        url = ServiceRoot + "";        
    }else if(P_Num == "1"){
        if(S_Num == "0"){url = ServiceRoot + "/sub01/sub01.asp";}//¿µÁ¾ÇÏ´Ãµµ½Ã
        else if(S_Num == "1"){url = ServiceRoot + "/sub01/sub01.asp";}//¿µÁ¾ÇÏ´Ãµµ½Ã
		else if(S_Num == "2"){url = ServiceRoot + "/sub01/sub02.asp";}//ºñÀü			
		else if(S_Num == "3"){url = ServiceRoot + "/sub01/sub03.asp";}//±³Åë
		else if(S_Num == "4"){url = ServiceRoot + "/sub01/sub04.asp";}//È¯°æ


   }else if(P_Num == "2"){
        if(S_Num == "0"){url = ServiceRoot + "/sub02/sub01.asp";}//´ÜÁö¼³°è
        else if(S_Num == "1"){url = ServiceRoot + "/sub02/sub01.asp";}//´ÜÁö¼³°è
        else if(S_Num == "2"){url = ServiceRoot + "/sub02/sub02.asp";}//Á¶°æ¼³°è
		else if(S_Num == "3"){url = ServiceRoot + "/sub02/sub03.asp";}//Ä¿¹Â´ÏÆ¼
		else if(S_Num == "4"){url = ServiceRoot + "/sub02/sub04.asp";}//½Ã½ºÅÛ


    }else if(P_Num == "3"){
        if(S_Num == "0"){url = ServiceRoot + "/sub03/sub01.asp";}//28ºí·°
        else if(S_Num == "1"){url = ServiceRoot + "/sub03/sub01.asp";}//28ºí·°
		else if(S_Num == "2"){url = ServiceRoot + "";}//28ºí·°
		else if(S_Num == "3"){url = ServiceRoot + "";}//28ºí·°

     


    }else if(P_Num == "4"){
        if(S_Num == "0"){url = ServiceRoot + "/sub04/sub01.asp";}//30ºí·°
        else if(S_Num == "1"){url = ServiceRoot + "/sub04/sub01.asp";}//30ºí·°
        else if (S_Num == "2") { url = ServiceRoot + "/sub04/sub02.asp"; } //30ºí·°
        else if (S_Num == "3") { url = ServiceRoot + "/sub04/sub03.asp"; } //30ºí·°
        else if (S_Num == "4") { url = ServiceRoot + "/sub04/sub04.asp"; } //30ºí·°



        else if (S_Num == "5") { url = ServiceRoot + "/sub04/sub05.asp"; } //30ºí·°
        else if (S_Num == "6") { url = ServiceRoot + "/sub04/sub06.asp"; } //30ºí·°
        else if (S_Num == "7") { url = ServiceRoot + "/sub04/sub07.asp"; } //30ºí·°
        else if (S_Num == "8") { url = ServiceRoot + "/sub04/sub08.asp"; } //30ºí·°
        else if (S_Num == "9") { url = ServiceRoot + "/sub04/sub09.asp"; } //30ºí·°


        else if (S_Num == "10") { url = ServiceRoot + "/sub04/sub10.asp"; } //30ºí·°
        else if (S_Num == "11") { url = ServiceRoot + "/sub04/sub11.asp"; } //30ºí·°
        else if (S_Num == "12") { url = ServiceRoot + "/sub04/sub12.asp"; } //30ºí·°
        else if (S_Num == "13") { url = ServiceRoot + "/sub04/sub13.asp"; } //30ºí·°
        else if (S_Num == "14") { url = ServiceRoot + "/sub04/sub14.asp"; } //30ºí·°

			
     }else if(P_Num == "5"){
        if(S_Num == "0"){url = ServiceRoot + "/sub05/sub01.asp";}//38ºí·°
         else if(S_Num == "1"){url = ServiceRoot + "/sub05/sub01.asp";}//38ºí·°
         else if (S_Num == "2") { url = ServiceRoot + "/sub05/sub02.asp"; } //38ºí·°
         else if (S_Num == "3") { url = ServiceRoot + "/sub05/sub03.asp"; } //38ºí·°
         else if (S_Num == "4") { url = ServiceRoot + "/sub05/sub04.asp"; } //38ºí·°



         else if (S_Num == "5") { url = ServiceRoot + "/sub05/sub05.asp"; } //38ºí·°
         else if (S_Num == "6") { url = ServiceRoot + "/sub05/sub06.asp"; } //38ºí·°
         else if (S_Num == "7") { url = ServiceRoot + "/sub05/sub07.asp"; } //38ºí·°
         else if (S_Num == "8") { url = ServiceRoot + "/sub05/sub08.asp"; } //38ºí·°
         else if (S_Num == "9") { url = ServiceRoot + "/sub05/sub09.asp"; } //38ºí·°


         else if (S_Num == "10") { url = ServiceRoot + "/sub05/sub10.asp"; } //38ºí·°
         else if (S_Num == "11") { url = ServiceRoot + "/sub05/sub11.asp"; } //38ºí·°
         else if (S_Num == "12") { url = ServiceRoot + "/sub05/sub12.asp"; } //38ºí·°
         else if (S_Num == "13") { url = ServiceRoot + "/sub05/sub13.asp"; } //38ºí·°
         else if (S_Num == "14") { url = ServiceRoot + "/sub05/sub14.asp"; } //38ºí·°
         else if (S_Num == "15") { url = ServiceRoot + "/sub05/sub15.asp"; } //38ºí·°

	
		
   }
    

    if (url != ""){
		if (targetb == ""){
			window.location.href = url;
		}else{

			show(url, "1000","800");
			//window.open(url, targetb,"");
		}
    } else {
        alert("ÁØºñÁß ÀÔ´Ï´Ù. °ð ÁÁÀº ¸ð½ÀÀ¸·Î Ã£¾ÆºË°Ú½À´Ï´Ù.");
    }
    
}



function goutil1(v1){

	
    if(v1 == "1"){   //°ü½É°í°´µî·Ï
        url = "/customer/customer_step01.asp";
		window.open(url,"agreement","width=717px, height=700px, scrollbars=no");
    }else if(v1 == "2"){  //¿À½Ã´Â±æ
		url = "/popup/pop_map.html";
		window.open(url,"map","width=688px, height=720px, scrollbars=no");
    }else if(v1 == "3."){   ///ÀÌº¥Æ®
//		url = "";
		location.href= "/event/event_noti.asp";
//		window.open(url,"agreement","width=500px, height=550px, scrollbars=no");
    }else if(v1 == "4"){   //±¤°íº¸±â
		location.href= "http://www.woomi.co.kr/upload/CF_TV/lynn_20A.wmv";
//		window.open(url,"agreement","width=500px, height=550px, scrollbars=no");
    }
	

}



function goutil2(v2){
	
    if(v2 == "1"){   //¸ðÁý°ø°í
//        location.href="";
		  url = "";
    }else if(v2 == "2"){//eÄ«Å»·Î±×_30ºí·Ï
		  url = "/popup/e_catalog_30.asp";
		  window.open(url, "catalog30", "width=1091px, height=729px, scrollbars=no");

    }else if(v2 == "3"){//e¸ðµ¨ÇÏ¿ì½º
		url = "/catalog/30block/84c/main0101.asp";
		window.open(url,"model","width=933px, height=620px, scrollbars=no");
    }else if(v2 == "4"){//¸¶°¨Àç¸ñ·Ï
		url = "/popup/pop_noti.html";
		 window.open(url, "pop_noti", "width=300px, height=343px, scrollbars=no");
	}else if(v2 == "5"){//¸¶°¨Àç¸ñ·Ï
		url = "/popup/pop_end.html";
		window.open(url,"agreement","width=747px, height=700px, scrollbars=yes");
	}else if(v2 == "6"){//eÄ«Å»·Î±×_38ºí·Ï
		  url = "/popup/e_catalog_38.asp";
		  window.open(url, "catalog38", "width=1091px, height=729px, scrollbars=no");
    }	

}



function gomain(v1){

    if(v1 == "1"){   //
        location.href="../block_index.asp";

    }else if(v1 == "2"){//
        location.href="/";
	}



}
