


//#########################################################################################################
//ÇÃ·¡½Ã ¸µÅ©¼Ò½º
//#########################################################################################################

function open_win(w_url, w_name, w_width, w_height) {

	var LeftPosition = (screen.width) ? (screen.width-w_width)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-w_height)/2 : 0;
	var settings = "height=" + w_height + ",width=" + w_width + ",top=" + TopPosition + ",left=" + LeftPosition + ",toolbar=no,status=no";
	w_hnd = window.open(w_url, w_name, settings);
	return w_hnd;
}


function gotoDirectPage(page){
	if (eval(page) == ""){
		if (page == "111")	{
			alert("ÁØºñÁßÀÔ´Ï´Ù!");
		}else{
		    alert("ÁØºñÁßÀÔ´Ï´Ù!");
		}

	}else if(page == "111"){ //Å¸°Ù
		open(eval(page), 'net_blank');

	}	
	else if(page == "page0505"){ //E-mail ¹®ÀÇ ÆË¾÷
			
		//on_chk=window.open(eval(page),'pop01','width=505,height=520,top=100,left=100,scrollbars=no,resizable=no,status=no');
		//on_chk.focus();		
		//------------------------------------
		//	* 2007.11.12 by seyoonp
		//------------------------------------
		if(document.voc_form != undefined) {
		
			document.voc_form.method = "post";
			//document.voc_form.action = "https://sni.samsungdc.com/voc/user/voc_user_insertfrm_mplus.jsp?langs=KOR&site_cd=3";
			document.voc_form.action = "https://211.189.77.205/voc/user/voc_user_insertfrm_mplus.jsp?langs=KOR&site_cd=3";
			document.voc_form.target = "voc_user_insertfrm_mplus";		
			on_chk = open_win("about:blank", "voc_user_insertfrm_mplus", 600, 550); 						
			document.voc_form.submit();		
			on_chk.focus();
		} else {

			//on_chk=window.open("https://sni.samsungdc.com/voc/user/voc_user_insertfrm_mplus.jsp?langs=KOR&site_cd=3",'pop01','width=600,height=550,top=100,left=100,scrollbars=no,resizable=no,status=no');
			on_chk=window.open("https://211.189.77.205/voc/user/voc_user_insertfrm_mplus.jsp?langs=KOR&site_cd=3",'pop01','width=600,height=550,top=100,left=100,scrollbars=no,resizable=no,status=no');
			on_chk.focus();
		}
	}else if(page == "family01" || page == "family02" || page == "family03" || page == "family04" || page == "family05" || page == "family06" || page == "family07"){ //Å¸°Ù
		open(eval(page), '_blank');

	}else if(page == "page0603"){ 
		on_chk=window.open(eval(page),'pop02','width=720,height=650,top=0,left=0,scrollbars=yes,resizable=no,status=no');
		on_chk.focus();
		//Á¤°úÀå ÆË¾÷ Ãß°¡
	}else if(page == "foot01" || page == "foot02" || page == "foot03"){ 
		on_chk=window.open(eval(page),'pop01','width=550,height=450,top=0,left=0,scrollbars=no,resizable=no,status=no');
		on_chk.focus();
	}	
	else{
		if (eval(page) == "/"){
			parent.location.href = eval(page);
		}else{
			location.href = eval(page);
		}
	}	
}

//#########################################################################################################
//¸ÞÀÎ ÄÁÅÙÃ÷ ¸µÅ© (MMS/SMS)
//#########################################################################################################

function gotoParentPage(page){
	parent.location.href = eval(page);
}

/*************************************** ÇÃ·¡½Ã ¸Þ´º url (end) *********************************************/


/* ÆË¾÷ =========================================================================*/

function addPop() {
	window.open("../common/popup/popupAddress.jsp","","scrollbars=no,top=100,left=100,width=810,height=430");
}

function ForAdd() {
	window.open("/popup/pop_add_for.jsp","","scrollbars=no,top=100,left=100,width=810,height=430");
}

function ForSearch() {
}

function SearchPop() {
	window.open("/page/common/popup/pop_search.jsp","","scrollbars=no,top=100,left=100,width=380,height=350");
}

function mmsPopPlay() {
	window.open("../common/popup/pop_play.jsp","","scrollbars=no,top=100,left=100,width=360,height=190");
}

function emailPop() {
	window.open("/page/common/popup/pop_email.jsp","","scrollbars=no,top=100,left=100,width=505,height=520");
}

function pollcallPop() {
	window.open("/page/common/popup/pop_pollsave.jsp","","scrollbars=no,top=100,left=100,width=550,height=480");
}

function bookingPop() {
	window.open("/page/common/popup/pop_bookingview.jsp","","scrollbars=no,top=100,left=100,width=600,height=500");
}

function sendPop() {
	window.open("/page/common/popup/pop_sendview.jsp","","scrollbars=no,top=100,left=100,width=600,height=500");
}

function groupPop() {
	window.open("/page/common/popup/pop_group.jsp","","scrollbars=no,top=100,left=100,width=500,height=250");
}

function elementPop() {
	window.open("/page/common/popup/pop_element.jsp","","scrollbars=no,top=100,left=100,width=500,height=270");
}

function cashPop() {
	window.open("/page/common/popup/pop_cash_end.jsp","","scrollbars=no,top=100,left=100,width=400,height=400");
}

function usePop() {
	window.open("/page/common/popup/pop_useview.jsp","","scrollbars=no,top=100,left=100,width=400,height=500");
}

function pollPop() {
	window.open("/page/common/popup/pop_pollview.jsp","","scrollbars=no,top=100,left=100,width=540,height=400");
}

function refilePop() {
	window.open("/page/common/popup/pop_cash.jsp","","scrollbars=no,top=100,left=100,width=530,height=420");
}

function smsPop() {
	window.open("/page/common/popup/pop_sms_recom.jsp","","scrollbars=no,top=100,left=100,width=630,height=630");
}

function idCheck() {
	window.open("/page/common/popup/pop_idcheck.jsp","","scrollbars=no,top=100,left=100,width=400,height=270");
}

function addCheck() {
	window.open("/page/common/popup/pop_addcheck.jsp","","scrollbars=no,top=100,left=100,width=470,height=550");
}

function login() {
	window.open("./page/main/pop_login.jsp","","scrollbars=no,top=100,left=100,width=410,height=270");
}

function idSearch() {
	open_modalWin("./page/main/pop_idsearch.jsp","","550","350");
}

/* ÆË¾÷ =========================================================================*/

