	 // 서브밋/리셋 폼
		function submitF(a,b) {
		  answer = confirm(b);
          if (answer == true) eval("document." + a + ".submit()");
		  else return false;
	    }
		function resetF(a){
		   eval("document." + a + ".reset()");
	    }

	// 플래시 보기1

	function display_flash(flash_name,flash_width,flash_height){
		var img_name = flash_name;
		var img_height = flash_height;
		var img_width = flash_width;

		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+img_width+'" height="'+img_height+'"> <param name="movie" value="'+img_name+'"> <param name="quality" value="high"> <param name=wmode value=transparent>')
		document.write('<embed src="'+img_name+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+img_width+'" height="'+img_height+'"></embed></object>')
	}


	// 플래시 보기2

	function flashview (dirNswf,fwidth,fheight,params) {

		var flashobjec="";

		flashobjec+="		<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+fwidth+"' height='"+fheight+"'>";
		flashobjec+="      <param name='movie' value='"+dirNswf+"'>";
		flashobjec+="      <param name='wmode' value='transparent'>";
		flashobjec+="      <param name='menu' value='false'>";
		flashobjec+="      <embed src='"+dirNswf+"' width='"+fwidth+"' height='"+fheight+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' menu='false' wmode='transparent'></embed>";
		flashobjec+="    </object>";

		document.write(flashobjec);

	}


	/* 팝업열기
	# a : 팝업으로 열 파일 ex) ../poppic.html
	# b : 필요한 변수 ex) pic=23
	# x : 팝업할 창의 가로크기
	# y : 팝업할 창의 세로크기
	# s : 스크롤바 이용여부 ex)1:이용, 0:이용안함, A:자동(창의 크기가 화면사이즈보다 크면 스크롤바 on, 작으면 off
    */

	function poppic(a,b,x,y,s){
		width = screen.width / 2 - (x / 2);
		height = screen.height / 2 - (y / 2);

		if (s == '1')	window.open(a + '?' + b,'','left=' + width + ', top=' + height + ',width=' + x + ',height=' + y + ',scrollbars=1');
		else if (s == '0') window.open(a + '?' + b,'','left=' + width + ', top=' + height + ',width=' + x + ',height=' + y + ',scrollbars=0');
		else if (s =='A') {
			if (x > screen.width || y > screen.height) window.open(a + '?' + b,'','left=' + width + ', top=' + height + ',width=' + x + ',height=' + y + ',scrollbars=1');
			else window.open(a + '?' + b,'','left=' + width + ', top=' + height + ',width=' + x + ',height=' + y + ',scrollbars=0');
		}
	}


	/* 지정된 시간에 다른 곳을 이동하기
	# a : 대기시간(초단위)
	# b : 이동할 위치 ex)index.html , http://xxxx.xxxx.xxx
    */

	function startTime(a,b){
		var time= new Date();
		hours= time.getHours();
		mins= time.getMinutes();
		secs= time.getSeconds();
		closeTime=hours*3600+mins*60+secs;
		closeTime+=eval(a); //  시간 설정 단위)초
		Timer(b);
	}

	function Timer(b){
		var time= new Date();
		hours= time.getHours();
		mins= time.getMinutes();
		secs= time.getSeconds();
		curTime=hours*3600+mins*60+secs;
		if (curTime>=closeTime) {
			if (b == 'close') window.close();
			else if (b == 'back') history.back();
			else if (b == 'refresh') window.location.reload();
			else if (b == 'parent_reload') window.parent.location.reload();
			else location.href= eval("'" + b + "'");
		}
		else{
			window.setTimeout(function(){Timer(b)},1000);
		}
	}


	/* 문자 체크하기 ##
	# onblur="input_check(check, spc, chr, num, eng, kor, spe)"
	# check : this 로 입력
	# chr : 특수문자를 검색할 경우 '|,|' 로 구분해서 공백없이 입력 ex) @ 와 & 를 검색할 경우 '@|,|&' 로 입력, (입력한 경우-> 포함하면 안됨. 체크않을 경우 "0")
	# spc: 공백. 입력한 경우-> 포함하면 안됨 "-", 체크않을 경우 "0";
	# num : 숫자.  포함 "+", 포함하면 안됨 "-", 체크않을 경우 "0";
	# eng: 영어. 포함 "+", 포함하면 안됨 "-", 체크않을 경우 "0";
	# kor: 한글. 포함 "+", 포함하면 안됨 "-", 체크않을 경우 "0";
	# spe: 기타 모든 특수문자. 포함 "+", 포함하면 안됨 "-", 체크않을 경우 "0";
	#
	# 예1) 입력한 글에 특수문자 '$', '^'를 반드시 포함하지 않고 한글도 반드시 포함하면 안될 경우 (특수문자는 '$|,|^', 한글은 '-', 나머지는 '+')
	# input_check(this,'$|,|^','0','+','+','+','-','+')
	# 예2) 입력한 글이 무조건 숫자와 영어 여야만 하는 경우 (특수문자는 '0', 숫자와 영어는 '+',  한글과 기타 모든 특수문자는 '-',)
	# input_check(this,'0','0','+','+','-','-')
	# 예3) 공백이 들어가면 안되는 경우
	# input_check(this,'0','-','+','+','+','+')
   */

	function input_check(check,chr,spc,num,eng,kor,spe) {
		var check_string = check.value;
		var len = check_string.length;

		for (var k=0; k<len; k++) {
			var char_ASCII = check_string.charCodeAt(k);
			var c = escape(check_string);
			var ret = '0';
			if (chr != '0' && chr != '') {
				var out = '0';
				var ch = chr.split("|,|");
				for(var i=0; i<ch.length; i++) {
				   if (check_string.substr(k) == ch[i]) {ret = '0';check.value = '';break;}
				   else ret = '1';
				}
				if (ret == '0') {alert ("사용할 수 없는 기호가 포함되어 있습니다.");break;}
			}
			if (spc != '0' && c.indexOf("%20") != -1){
			   if (spc == '-') {alert ("공백은 입력하실 수 없습니다.");ret = '0';break;}
			}
			if (num != '0' && char_ASCII >= 48 && char_ASCII <= 57 ) {
				if (num == '+') ret = '1';
				else if (num == '-') {alert ("숫자는 입력하실 수 없습니다."); ret = '0';break;}
			}
			if (eng != '0' && ((char_ASCII>=65 && char_ASCII<=90) || (char_ASCII>=97 && char_ASCII<=122))) {
				if (eng == '+') ret = '1';
				else if (eng == '-') {alert ("영어는 입력하실 수 없습니다.");ret = '0';break;}
			}
			if (kor != '0' && c.indexOf("%u") != -1){
				if (kor == '+') ret = '1';
				else if (kor == '-') {alert ("한국어는 입력하실 수 없습니다.");ret = '0';break;}
			}
			if (spe != '0' && ((char_ASCII>=33 && char_ASCII<=47) || (char_ASCII>=58 && char_ASCII<=64) || (char_ASCII>=91 && char_ASCII<=96) || (char_ASCII>=123 && char_ASCII<=126) || (char_ASCII>=145 && char_ASCII<=146) || (char_ASCII>=161 && char_ASCII<=255))){
			   if (spe == '+') ret = '1';
			   else if (spe == '-') {alert ("특수문자는 사용하실 수 없습니다.");ret = '0';break;}
			}
		}
		if (ret == '1') return true;
		else if (ret == '0') {check.value = '';return false;}
	}


	// 이메일체크

	function email_check(check) {
		var check_string = check.value;
		if (check_string.indexOf('@') == '-1' || check_string.indexOf('.') == '-1'){
		    alert ("정확한 이메일주소를 입력해 주십시오.");
			check.value = "";
			return false;
		}
		else return true;
	}


    // 전화번호에 '-' 자동삽입해주기

	function addDashMem(check){
	  var check_string = check.value;
	  var check_string = check_string.replace(/-/gi,'');
	  var len = check_string.length;
	  if (len >= 2 && check_string.substr(0,2) == '02'){
         if (len >= 3 && len <= 5){
			var subA = check_string.substr(0,2);
		    var subF = check_string.substr(2,3);
		    check.value = subA + "-" + subF;
	     }
		 else if (len >= 6 && len <= 9){
			var subA = check_string.substr(0,2);
		    var subF = check_string.substr(2,3);
			var subB = check_string.substr(5,4);
		    check.value = subA + "-" + subF + "-" + subB;
	     }
	     else if (len >= 10){
		    var subA = check_string.substr(0,2);
		    var subF = check_string.substr(2,4);
			var subB = check_string.substr(6,4);
		    check.value = subA + "-" + subF + "-" + subB;
	     }
	     else{
		    check.value = check_string;
	     }
	  }
	  else if (len >= 2 && check_string.substr(0,2) != '02'){
         if (len >= 4 && len <= 6){
			var subA = check_string.substr(0,3);
		    var subF = check_string.substr(3,3);
		    check.value = subA + "-" + subF;
	     }
		 else if (len >= 7 && len <= 10){
			var subA = check_string.substr(0,3);
		    var subF = check_string.substr(3,3);
			var subB = check_string.substr(6,4);
		    check.value = subA + "-" + subF + "-" + subB;
	     }
	     else if (len >= 11){
		    var subA = check_string.substr(0,3);
		    var subF = check_string.substr(3,4);
			var subB = check_string.substr(7,4);
		    check.value = subA + "-" + subF + "-" + subB;
	     }
	     else{
		    check.value = check_string;
	     }
	  }
	  else{
		  check.value = check_string;
	  }
   }


	// 숫자에 컴마 붙여주기

	function chkComma(a){
	   var rightchar = String(a);
	   var tmprc = rightchar.split('.');
	   var intn = tmprc[0];
	   var minus = "";
	   if (intn.substr(0,1) == '-') {
		   minus = "-";
		   intn = intn.substr(1,intn.length-1);
	   }
	   var moneychar = '';
	   for(var ind=intn.length-1;ind>=0;ind--){
		  var splitchar=intn.charAt(ind);
		  var moneychar=splitchar+moneychar;
		  if(ind%3==intn.length%3 && ind!=0){ moneychar=','+moneychar; }
	   }
	   if (tmprc.length >= '2') moneychar = moneychar + '.' + tmprc[1];
	   moneychar = minus + moneychar;
	   return moneychar;
	}


    //숫자에 컴마 빼주기

	function unchkComma(a){
	   var moneychar = String(a);
	   moneychar = moneychar.replace(/,/gi,'');
	   return moneychar;
	}


    //팝업쿠키처리

		function popup_event(a,b,c){
			if(cookieVal(b) != "1") eval("document.getElementById('" + a + "').style.display = 'block'");
			else closeWin(a,b,c);
		}
		function cookieVal(cookieName){
			var thisCookie = document.cookie.split("; ");
			for(var i=0 ; i<thisCookie.length ; i++){
				if(cookieName == thisCookie[i].split("=")[0]) return thisCookie[i].split("=")[1];
			}
			return "x";
		}
		function setCookie_event(name, value, expiredays){
			var todayDate = new Date();
			todayDate.setDate(todayDate.getDate() +  expiredays);
			document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";domain;"
		}
		function closeWin(a,b,c){
			setCookie_event(b,"1",c);
			eval("document.getElementById('" + a + "').style.display = 'none'");
		}
		function closeWin_pause(a){
			eval("document.getElementById('" + a + "').style.display = 'none'");
		}


	/*
		############## 필수입력 체크 ################
		# empty = "false" 일경우 빈칸확인, iname="아이템명"#
		#####################################
    */
		function checkSubmit(frm){
			var eleCount = frm.elements.length;
			var ctl = null;
			for(var i=0; i<eleCount; i++){
			ctl = frm.elements[i];
				if(typeof(ctl.empty)!="undefined" && ctl.empty=="false"){
					if(ctl.value=="") {
						alert(ctl.iname + ' : 필수입력 항목입니다.');
						ctl.style.border='2px solid #d30505';
						ctl.focus();
						return false;
					} // end if
				} // end if
			} // end for
		} // end function


    //보여주기/감추기

		function showhide(a) {
			var state = document.getElementById(a).style.display;
			if(state=='block') {
				document.getElementById(a).style.display = 'none';
			}
			else {
				document.getElementById(a).style.display = 'block';
			}
		}


   // 체크박스 전체선택/비선택

      function checkAll(a){
		var N = eval("document." + a + ".cbNum.value");
		//alert (N);
		for (x=1;x<=N;x++) {
		   if (eval("document." + a + ".cbA.checked")) {
			   eval("document." + a + ".cb" + x + ".checked = 1");
		   }
		   else {
			   eval("document." + a + ".cb" + x + ".checked = 0");
		   }
		}
	 }

	  // 우편번호 창
		function popup_zip(fn, addr1, addr2, zip, direct){
		  var url = direct + '/dongpop.html?fn='+fn+'&addr1='+addr1+'&addr2='+addr2+'&zip='+zip;
		  var opt = 'scrollbars=1,width=500,height=300';
		  window.open(url, "mbzip", opt);
		}



 /* 평/제곱미터 전환###
      # a: PM or MP (PM 이면 평을 미터로, MP 이면 미터를 평으로
	  # b: id
	  # c: 변환할 값
*/

      function PnM(a,b,c){
	    if (a == 'PM' && c != '') var n = Math.round(eval(c) * 3.3058 * 100) / 100;
		else if (a == 'MP' && c != '') var n = Math.round(eval(c) * 0.3025 * 100) / 100;
		else var n = '';
		document.getElementById(b).value = n;
	 }

	function bluring(){
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
		document.onfocusin=bluring;



	// JavaScript Document

var old_menu = '';

function menuclick( submenu ){
	if( old_menu != submenu ) {
		if( old_menu !='' ) {
			old_menu.style.display = 'none';
		}
		submenu.style.display = 'block';
		old_menu = submenu;
	} else {
		submenu.style.display = 'none';
		old_menu = '';
	}
}

function MM_swapImgRestore() { //v3.0
  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() { //v3.0
  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_swapImage() { //v3.0
  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_swapImgRestore() { //v3.0
  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() { //v3.0
  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) { //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 languages() {
	var st = document.getElementById("language_div").style;
	if(st.display=='block') st.display='none';
	else st.display='block';
}
function flash(id,w,h,s,wmode,valuename,values) {
	var str="", sID="";
	if (id.length > 0) { sID = " id='"+id+"' name='"+id+"'"; }
	str += "<object "+sID+" classid='clsid:D27CDB6E-AE6D-11cf-96B8";
	str += "-444553540000'";
	str += " codebase='http://download.macromedia.com/pub/shockwave/cabs";
	str += "/flash/swflash.cab#version=6,0,29,0'";
	str += " width='"+w+"' height='"+h+"'>";
	str += "<param name='movie' value='"+s+"'>";
	str += "<param name='quality' value='high'>";
	str += "<param name='wmode' value='"+wmode+"'>";
	str += "<param name='"+ valuename +"' value='"+ values +"'>";
	str += "<embed "+sID+" src='"+s+"' quality='high' wmode='"+wmode+"'";
	str += " pluginspage='http://www.macromedia.com/go/getflashplayer'";
	str += " type='application/x-shockwave-flash'";
	str += " width='"+w+"' height='"+h+"'></embed>";
	str += "</object>";
	document.write(str);
}

// 각 서브페이지 좌측 메뉴 롤오버 상태를 고정시키는 함수
var basic_img = "";
function lock_menu(Menu, cate) {
if (Menu) {
var target_menu = eval("document.all."+Menu);
target_menu.src = (cate) ? "" + cate + "/images/"+Menu+"_on.gif" : "images/"+Menu+"_on.gif";
basic_img = Menu;
}
}
function inact(imgName)
    {   if (document.image && basic_img != imgName)
        document[imgName].src = eval(imgName + '.src')
     }

function act(imgName)
    {   if (document.image && basic_img != imgName)
        document[imgName].src = eval(imgName + 'a.src')
     }

// -->

function popup() {

 window.open('./pages/eng/product/cdma_compare.html', '', 'menubar=no, width=740, height=525')
}

function popupK() {

 window.open('./pages/kor/productK/cdma_compare.html', '', 'menubar=no, width=740, height=525')
}

function popupJ() {

 window.open('./pages/jap/productJ/cdma_compare.html', '', 'menubar=no, width=740, height=525')
}




function wcdma() {

 window.open('wcdma_compare.html', '', 'menubar=no, width=750, height=520')
}



//제품 탭

function body_tab01(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';

							eval("document.all.body"+no+".style.display = 'block';");
}


//ics응용 탭

function body_tab02(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';
							document.all.body3.style.display = 'none';


							eval("document.all.body"+no+".style.display = 'block';");
}
//ci 탭

function body_tab03(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';
							document.all.body3.style.display = 'none';
							document.all.body4.style.display = 'none';

							eval("document.all.body"+no+".style.display = 'block';");
}
//사업장안내 탭

function body_tab04(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';
							document.all.body3.style.display = 'none';


							eval("document.all.body"+no+".style.display = 'block';");
}



//피코캐스트

function body_tab05(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';



							eval("document.all.body"+no+".style.display = 'block';");
}

//커버리지확장

function body_tab06(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';



							eval("document.all.body"+no+".style.display = 'block';");
}


//중공업

function body_tab07(no) {
							if (no == "") no = "1";

							document.all.body1.style.display = 'none';
							document.all.body2.style.display = 'none';



							eval("document.all.body"+no+".style.display = 'block';");
}

