/*------------------------- 상위 메뉴 링크  ---------------------*/

function sb_menu(){
	
	$("#menu_sb").css({"display":""});
	
	} //서브메뉴
	
	function sb_menu_off(){
	
	$("#menu_sb").css({"display":"none"});
	
	} //서브메뉴
	
	
function memu_1(){location.href="/home.php";} //홈페이지제작
function memu_2(){parent.location.href="/mall.php";}
function memu_3(){location.href="/bbs/board.php?bo_table=bo_a_3";} //포트폴리오
function menu_3_1(){location.href="/bbs/board.php?bo_table=bo_a_3&sca=쇼핑몰&sop=&sst=wr_1&sod=desc&sfl=&stx=&page=1";} //포트쇼필물
function menu_3_2(){location.href="/bbs/board.php?bo_table=bo_a_3&sca=홈페이지&sop=&sst=wr_1&sod=desc&sfl=&stx=&page=1";} //포트홈페이지
function menu_3_3(){location.href="/bbs/board.php?bo_table=bo_a_3&sca=기타&sop=&sst=wr_1&sod=desc&sfl=&stx=&page=1";} //포트기타
function memu_4(){location.href="/domain.php";} //
function memu_5(){location.href="/bbs/board.php?bo_table=bo_e_1";} //견적의뢰 리스트
function memu_5_1(){location.href="/bbs/board.php?bo_table=bo_e_2";} //질문답변 리스트
function memu_5_2(){location.href="/bbs/board.php?bo_table=bo_e_3";} //수정요청 리스트
function memu_5_3(){location.href="/bbs/board.php?bo_table=bo_e_6";} //고객서비스지원

function memu_6(){parent.location.href="javascript:window.external.addfavorite('http://web-nara.com', '웹나라');";} //즐겨찾기
function memu_7(){location.href="/bbs/write.php?bo_table=bo_e_1";} // 견적의뢰 글쓰기
function memu_8(){location.href="/service.php";} //  웹나라서비스
<!--function memu_8_0(){location.href="/service_app.php";} //  웹나라서비스_어플리케이션-->
function memu_8_0(){location.href="/service_app.php";} //  웹나라서비스_어플리케이션
function memu_9(){location.href="/bbs/board.php?bo_table=bo_f_1";} //   자료실
function memu_9_1(){location.href="/bbs/board.php?bo_table=bo_f_2";} //   자료실
function memu_9_2(){location.href="/bbs/board.php?bo_table=bo_f_3";} //   자료실
function memu_9_3(){location.href="/bbs/board.php?bo_table=bo_f_4";} //   자료실
function memu_9_4(){location.href="/bbs/board.php?bo_table=bo_f_5";} //   자료실
function memu_9_5(){location.href="/bbs/board.php?bo_table=bo_f_6";} //   자료실


function jiage(){location.href="/home_estimate.php";} //자동견적
function feiyong(){location.href="/home_cost.php";} //제작비용
function sunxu(){location.href="/order.php";} //제작순서


function memu_10_1(){parent.location.href="/bbs/board.php?bo_table=com_1&wr_id=1";} //회사소개
function memu_10_2(){parent.location.href="/bbs/write.php?bo_table=bo_e_7";} //사업제휴
function memu_10_3(){parent.location.href="/bbs/board.php?bo_table=com_2&wr_id=1";} //채용공고
function memu_10_4(){parent.location.href="/bbs/board.php?bo_table=com_1&wr_id=3";} //오시는길



function feiyong_2(){location.href="/mall_cost.php";} //제작비용

function skin_d(){location.href="/bbs/board.php?bo_table=bo_a_1";} //스킨디자인보기


function jiameng(){location.href="/bbs/board.php?bo_table=bo_jiameng";} //쇼핑몰가맹



function hosting(){location.href="/hosting.php";} //hosting

function sms(){location.href="/sms.php";} //sms

function pay(){location.href="/pay.php";} //결제모듈

function skin(id){//쇼핑몰스킨부분
	

	
	if(id=="skin_off"){
		$("#skin").css({"display":"none"});
		
	}else{

	$("#"+id).css({"display" : ""});
	$("#skin_neilong").load("skin_mall.php");

	
	}
	
	} //쇼핑몰스킨부분
	
	
	

function box(id,typ){	//제작비용
		
		for (i=1; i<4; i++){
			
		$("#box"+i).css({"border":"0"});
			
		}
	$("#box"+id).css({"border":"3px solid #23c0e1"});
	$("#typ").load("home_jiage.php?typ="+typ);
	
	
}

function service(typ){	//웹나라서비스

	
	$("#typ").load("inc_service.php?typ="+typ);
	
	
}



function GetE(objectId) { 
	if(document.getElementById && document.getElementById(objectId)) { 
		return document.getElementById(objectId);// W3C DOM 
	} else if (document.all && document.all(objectId)) { 
		return document.all(objectId);// MSIE 4 DOM 
	} else if (document.layers && document.layers[objectId]) { 
		return document.layers[objectId];// NN 4 DOM.. note: this won't find nested layers 
	} else { 
		return false; 
	} 
} 

function check_shop(f){
  var els = eval(f).elements;
  var total=0;
  var i=0;
  for(var i=0;i<els.length;i++)
  {
	  if(els[i].check)
	  {
		  if (els[i].type=="radio" && els[i].price && els[i].checked){
			  total+=parseInt(els[i].price);
		  }else if(els[i].type=="text" && els[i].price && els[i].value!=""){
			  total+=parseInt(els[i].price)*parseInt(els[i].value); 
		  } 
	  }
  }
  GetE("totalprice").innerHTML="<span style='color:#888'>예산금액: </span><span style='font-size:18px; font-weight:bold; color:#00F'>"+total+"원</span>";
  //document.form.action="/aaa_a.php";
  //document.form.submit();
  
}

function GetValue(el)
{
    var sType = el.type;
    switch(sType)
    {
        case "text":
        case "hidden":
        case "password":
        case "file":
        case "textarea": return el.value;
        case "checkbox":
        case "radio": return GetValueChoose(el);
        case "select-one":
        case "select-multiple": return GetValueSel(el);
    }

    function GetValueChoose(el)
    {
        var sValue = "";
        var tmpels = document.getElementsByName(el.name);
        for(var i=0;i<tmpels .length;i++)
        {
            if(tmpels[i].checked)
            {
                sValue += "0";
            }
        }
        return sValue;
    }

    function GetValueSel(el)
    {
        var sValue = "";
        for(var i=0;i<el.options.length;i++)
        {
            if(el.options[i].selected && el.options[i].value!="")
            {
                sValue += "0";
            }
        }
        return sValue;
    }
}

function GoBack(el)
{
    var sType = el.type;
    switch(sType)
    {
        case "text":
        case "hidden":
        case "password":
        case "file":
        case "textarea": el.focus();var rng = el.createTextRange(); rng.collapse(false); rng.select();
        case "checkbox":
        case "radio": var els = document.getElementsByName(el.name);els[0].focus();
        case "select-one":
        case "select-multiple":el.focus();
    }
}

/*$(document).ready(function() {//제작비용

    $("#ajax-loading").ajaxStart(function() { 
	//$("#news").hide();
	$(this).show(); 
    }).ajaxStop(function() { 
	$(this).hide(); 
	$("#typ").show();
    });
});*/

function jianli(){

window.open('/jianli.php','jianli','width=810,height=550,resizeable=yes,scrollbars=yes ');

	
}
