		/************ Common function ***************************/
		function goMenu(menu1,menu2,menu3,menu4){
			if(menu1==null) menu1="";
			if(menu2==null) menu2="";
			if(menu3==null) menu3="";
			if(menu4==null) menu4="";

			document.location.href = url_root+"gomenu.jsp?menu1=" + menu1 + "&menu2=" + menu2 + "&menu3=" + menu3 + "&menu4=" + menu4;
		}

		function goPopMenu(menu1,menu2,menu3,menu4){
			if(menu1==null) menu1="";
			if(menu2==null) menu2="";
			if(menu3==null) menu3="";
			if(menu4==null) menu4="";
			opener.document.location.href = url_root+"gomenu.jsp?menu1=" + menu1 + "&menu2=" + menu2 + "&menu3=" + menu3 + "&menu4=" + menu4;
		}

		function goHome(){
			if (url.toLowerCase().indexOf("uksamsungmobilecom") != -1){
				// Home Page Url for Web-cms..
				document.location.href = "/uksamsungmobilecom/main/index.jsp";
			} else {
				document.location.href = http_url_root+"index.jsp";
			}
		}

		function logIn(){
			document.location.href = http_url_root+"sg/signin.jsp";
		}

		function logOut(){
			document.location.href = http_url_root+"include/xt_logout.jsp";
		}

		function goJoin(membergbn) {
			var membergbn;
			if(membergbn == null || membergbn == '') membergbn = "";
			document.location.href = https_url_root+"member/register_01.jsp?MEMBERGBN="+membergbn;
		}

		function goTermination() {
			FFWindowOpen(WINDOW_ALIGN_CENTER,url_root+"member/term_member.jsp","login",500,480,"");
		}

		function passwordBefore() {
			document.location.href = http_url_root+"member/password_id.jsp";
		}

		function idBefore() {
			document.location.href = http_url_root+"member/forgot_id.jsp";
		}

		function passwordAfter() {
			document.location.href = https_url_root+"member/password_change.jsp";
		}

	    function whySignup() {
	        document.location.href = http_url_root+"member/whysignup.jsp";
	    }

	    function memberLeave() {
	        window.open(url_root+"mb/member/leave.jsp", "memberLeave", "width=330,height=228");
	    }
	    function settingMobile(){
	        goMenu('sg','ota','');
	    }
	    function pointHow(g){
		    FFWindowOpen(WINDOW_ALIGN_CENTER, url_root+"mypage/mypoint/pop_MyPoint_01.jsp?ScMv=1#"+g, "", 620, 520, "scrollbars=yes");
		}

		function goWAPPushPopup(){
			FFWindowOpen(WINDOW_ALIGN_CENTER, url_root+"funclub/musictones/pop_wappushenabled.jsp", "wap_push", 402, 320, "scrollbars=no,resizable=yes");
		}

	    function setCookie(name, value, domain, expire){
            if (domain == null || domain == ''){
                domain = "samsungmobile.com";
            }
            var vCookie = name+"="+value+"; path=/; domain="+domain+"; " ;

            if (expire != null && expire != ''){
                var todayDate = new Date();
                todayDate.setTime(todayDate.getTime()+Number(expire));

                vCookie = vCookie + "expires=" + todayDate.toGMTString() + ";" ;
            }

            document.cookie = vCookie;
        }

		function writeFlash(url_root, width, height, bgcolor, version, name){
			if (version == null || version == ''){
				version = '7,0,0,0';
			}						
			document.writeln("<object name='"+name+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
			document.writeln(" codebase='"+window.location.protocol+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' ");
		    document.writeln(" width='"+width+"' height='"+height+"'> ");
		    document.writeln("<param name='movie' value='"+url_root+"'>");
		    document.writeln("<param name='quality' value='high'>");
		    document.writeln("<param name='menu' value='false'>");
		    document.writeln("<param name='bgcolor' value='#"+bgcolor+"'>");
		    if (bgcolor == null || bgcolor == 'FFFFFF'){
				document.writeln("<param name='wmode' value='transparent'>");
			}
		    document.writeln("<embed src='"+url_root+"' ");
		    if (bgcolor == null || bgcolor == 'FFFFFF'){
				document.writeln(" wmode='transparent' ");
			}
		    document.writeln(" quality='high' bgcolor='#"+bgcolor+"'  width='"+width+"' height='"+height+"' ");
		    document.writeln(" type='application/x-shockwave-flash' ");
		    document.writeln(" pluginspage='"+window.location.protocol+"//www.macromedia.com/shockwav/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
		    document.writeln("</embed></object>");
		}

		function goTotalSearch(){
			var objSetForm = eval("document.frm_search");

			var x_query = objSetForm.query.value;
			var x_query_en = "";

			re_del = new RegExp("[@<>()\\,\\[\\]\"\'\\\\\:\*]", "g");
			x_query_en = x_query.replace(re_del, " "); //Æ¯¼ö±âÈ£Á¦°Å

			re_del = new RegExp("\\s+", "g");
			x_query_en = x_query_en.replace(re_del, " "); //ÇÏ³ªÀÌ»óÀÇ °ø¹éÀ» ÇÏ³ªÀÇ °ø¹éÀ¸·Î º¯È¯

			x_query_en = x_query_en.replace(/^\s*/, "").replace(/\s*$/, ""); //¾Õ °ø¹éÁ¦°Å

			var is_null = x_query_en;

			re_del = new RegExp(" +", "g");
			is_null = is_null.replace(re_del, "");
			re_del = new RegExp("\\*+", "g");
			is_null = is_null.replace(re_del, "");

			if (is_null == "") { //°Ë»ö¾î Null È®ÀÎ
				alert("Insert Keyword");
				objSetForm.query.focus();
				return false;
			}

			re_del = new RegExp("\\s+", "g");
			x_query_en = x_query_en.replace(re_del, " +");

			objSetForm.query.value = x_query_en;

			objSetForm.submit();
			return false;
		}		