<!--

	//*************************************************************
	//**
	//**	유틸리티 스크립트 시작
	//**
	//*************************************************************
//------------------------------------------------------------------
//		화면글꼴 확대
//------------------------------------------------------------------

var def_fontsize = 0.78;	//기본바디폰트사이즈
var cur_fontsize = 0.78;

function zoomUtil(e) {
	var objPlus = $("font_plus");
	var objMinus = $("font_minus");
	var objDefault = $("font_default");

	if (objPlus != undefined) {
		objPlus.observe('click', fzoomPlus, false);
		objDefault.observe('click', fzoomDefault, false);
		objMinus.observe('click', fzoomMinus, false);	    
	}
}

function fzoomPlus(e) {
	var obj = $$('body')[0];
	
	if (cur_fontsize == 0.78) {
	    obj.style.fontSize = (def_fontsize+0.1)+"em";
	} else {
	    obj.style.fontSize = (cur_fontsize+0.1)+"em";
	}
	
	cur_fontsize = cur_fontsize+0.1;
}

function fzoomDefault(e) {
	var obj = $$('body')[0];
	obj.style.fontSize = def_fontsize+"em";
	cur_fontsize = 0.78;
}

function fzoomMinus(e) {
	var obj = $$('body')[0];	
	
	if (cur_fontsize == 0.78) {
	    obj.style.fontSize = (def_fontsize - 0.1)+"em";
	} else {
	    obj.style.fontSize = (cur_fontsize - 0.1)+"em";
	}
	cur_fontsize = cur_fontsize-0.1;
}

function hidestatus(){ 
  window.status='' 
  return true 
  } 

  if (document.layers) 
  document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 

  document.onmouseover=hidestatus 
  document.onmouseout=hidestatus 


////////////////// 팝업창 가운데 뛰우기
function openWinCenter(url, wname, wopt) {
    var newopt = "", wHeight = 0, wWidth = 0;
    if (wopt != undefined) {
        var woptlist = wopt.replace(/ /g, "").split(",");
        for (var i in woptlist) {
            if (woptlist[i].match(/^height=/i)) {
                wHeight = parseInt(woptlist[i].substr(7),10);
                if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
            }
            if (woptlist[i].match(/^width=/i)) {
                wWidth = parseInt(woptlist[i].substr(6),10);
                if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
            }
        }
    }
    return window.open(url, wname, newopt + wopt);
} 


	
function bookmark(){
window.external.AddFavorite('http://www.lc354e.com', '국제라이온스협회 354-E지구')
}

	
	
window.onload = function(e) {
   if (document.getElementById && document.getElementById("CurrentSize") != null) {
	if(document.getElementById("CurrentSize").value == "")
		resetCurrentsize();
	else
		setCurrentsize(document.getElementById("CurrentSize").value);
  }
}

// Font Default Size
function resetCurrentsize() {
 currentSize = "12" ; 
  document.getElementById("CurrentSize").value = currentSize;
  if (document.getElementById) {
  	document.getElementById("resizeContents").style.cssText = "font-size:"+currentSize+"px";  	
  }
}

//Font Current
function setCurrentsize(newsize) {
  currentSize = newsize;
  if (document.getElementById) {
  	document.getElementById("resizeContents").style.cssText = "font-size:"+currentSize+"px";
	
  }  
}

//Font Minus
function sizeUp() {
  if (document.getElementById) {
	currentSize++;
	if(currentSize >= 35) return;
		document.getElementById("CurrentSize").value = currentSize;
		document.getElementById("resizeContents").style.cssText = "font-size:"+currentSize+"px";
}
}
//Font Plus
function sizeDown() {
  if (document.getElementById) {
    currentSize--;
    if(currentSize <= 8) return;
		document.getElementById("CurrentSize").value = currentSize;
		document.getElementById("resizeContents").style.cssText = "font-size:"+currentSize+"px";
  }
}


	//1. 링크 점선 없에기

		function allblur() {
		  for (i = 0; i < document.links.length; i++)
		  document.links[i].onfocus = document.links[i].blur;
		}

	//2. 마우스롤오버버튼

		//페이드효과
		function bt(name,after) { 

			eval(name+'.filters.blendTrans.stop();'); 
			eval(name+'.filters.blendTrans.Apply();'); 
			eval(name+'.src="'+after+'";'); 
			eval(name+'.filters.blendTrans.Play();'); 

		}

		//일반효과
		function img_up(img_name,src){
			img_name.src=src;
		}

		function img_def(img_name,src){
			img_name.src=src;
		}

		//링크주소처리
		function link_url(url){
			location.href=url;
		}



	//3. 기본팝업

		function de_popup(a,b,c,d,e,f){
			window.open(a + b, c ,'resizable=yes,width='+d+',height='+e+',scrollbars='+f);
		}

	//4. 이미지팝업
	
		function open_pic_view(file_full_path){
			var url = "/_Common/img_view.asp?path="+file_full_path;
			var N_win = window.open(url,'view','resizable=0,width=100,height=100,scrollbars=0');
		}


	//5. 프린트팝업
	
		function FUN_PrintContent(){
		
		      var abc=10
	
			var PreContent	= '<html><head><title>▒ 국제라이온스협회 354-E지구 강원본부 ▒ 인쇄하기</title><link rel=stylesheet type=text/css href=/_Library/Css/normal_style.css></script></head><body topmargin=0 leftmargin=0 onload=javascript:window.print();><table width=100%><tr><td align=center>';
			
			var NextContent	= '</td></tr></table></body></html>';
		
			var GetContent	= document.all('PrintContent').innerHTML;
		
			var PrintWindow	= window.open('', 'PrintWindow', 'width=750,height=600,scrollbars=yes,resizable=no,toolbar=yes');
		
			var InsertDoc	= PrintWindow.document;
			InsertDoc.open();
			InsertDoc.write(PreContent + GetContent + NextContent);
			InsertDoc.close();
		}
		
		function FUN_PrintContent1(){
	
			var PreContent	= '<html><head><title>▒ 국제라이온스협회 354-E지구 강원본 ▒ 인쇄하기</title><link rel=stylesheet type=text/css href=/_Library/Css/normal_style.css></script></head><body topmargin=0 leftmargin=0 onload=javascript:window.print();><table width=100%><tr><td align=center>';
			
			var NextContent	= '</td></tr></table></body></html>';
		
			var GetContent	= document.all('PrintContent1').innerHTML;
		
			var PrintWindow	= window.open('', 'PrintWindow', 'width=750,height=600,scrollbars=yes,resizable=no,toolbar=yes');
		
			var InsertDoc	= PrintWindow.document;
			InsertDoc.open();
			InsertDoc.write(PreContent + GetContent + NextContent);
			InsertDoc.close();
		}

		
	//6. 액션팝업
	
		function MoveOpen(url,ld,td,w,h,s) {

			var heightspeed = 14; //리사이즈 세로 속도
			var widthspeed = 15; //리사이즈 가로 속도
			var leftdist = ld;
			var topdist = td;

			var winwidth = w;
			var winheight = h;
			var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=" + s );
			
			for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
			sizer.resizeTo("1", sizeheight);
			}
			
			for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
			sizer.resizeTo(sizewidth, sizeheight);
			}
			
			sizer.location = url;
		}	

	//7. 서브메뉴 보이기

		function sub_menu_view(num){

			var tr_obj, edit_num;
		
			for (i=0;i<7;i++){
				if (i<7 && i>0){
					edit_num = '0'+i;
				}else{
					edit_num = i;
				}
		
				tr_obj = eval('main_menu_'+ edit_num+'.style');
			
				if (i == num){
					tr_obj.display = 'block';
				}else{
					tr_obj.display = 'none';
				}


			}
		}
		
     //8. 이미지 사이즈 그대로 확대 보기
         
             var cnj_img_view = null; 
             function cnj_win_view(img){
             img_conf1= new Image();
             img_conf1.src=(img);
             cnj_view_conf(img);
             }

             function cnj_view_conf(img){
             if((img_conf1.width!=0)&&(img_conf1.height!=0)){
             cnj_view_img(img);
             } else {
             funzione="cnj_view_conf('"+img+"')";
             intervallo=setTimeout(funzione,20);
             }
             }

             function cnj_view_img(img){
               if(cnj_img_view != null) {
                 if(!cnj_img_view.closed) { cnj_img_view.close(); }
                 }
             cnj_width=img_conf1.width+20;
             cnj_height=img_conf1.height+20;
             str_img="width="+cnj_width+",height="+cnj_height;
             cnj_img_view=window.open(img,"cnj_img_open",str_img);
             cnj_img_view.focus();
             return;
             }

        //9. 무단복제 금지
        





       //10. 무단링크 보이지 않게 하기
	
            function hidestatus(){ 
             window.status='' 
             return true 
             } 

            if (document.layers) 
            document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 

            document.onmouseover=hidestatus 
            document.onmouseout=hidestatus 
    			


//11. 롤오버 이미지효과
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}


function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function sub_menu_view(num){

			var tr_obj, edit_num;
		
			for (i=0;i<4;i++){
				if (i<4 && i>0){
					edit_num = '0'+i;
				}else{
					edit_num = i;
				}
		
				tr_obj = eval('main_menu_'+ edit_num+'.style');
			
				if (i == num){
					tr_obj.display = 'block';
				}else{
					tr_obj.display = 'none';
				}


			}
		}			
//이미지 고정 잡아주기
//function imgsizecheck(){
//					var contentimg = document.previewimg.length;
//					for(i = 0; i < contentimg;i++) {
//						if(document.previewimg[i].width > 550) {
//							document.previewimg[i].width = 550;
//						}
//					}
//				}
//				window.onload = imgsizecheck;



function Send() {
	var x = document.SearchForm;
//	if (x.search_str.value==""){
//		alert("찾을 단어를 입력하시고 검색 버튼을 눌러주세요");
//		x.search_str.focus();
//		return false;
//	}
	x.submit();
}


function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 
// -->

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 showHide(key) {

    var div = eval("document.all.div_" + key);

    div.style.cursor = "hand";

    if(div.style.display == ""){

        div.style.display = "none";

    }

    else{

        div.style.left = event.x + 1;   

        div.style.top = event.y + 1;

        //div.style.left = 100;

        //div.style.top = 80;

        div.style.display = "";
    }
}

//-->자동계산 스크립트(비교체크) 4개까지 가능

document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:굴림; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color: #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');
// 상품비교 제가 응용한 쇼핑몰에 적용한 스크립트 입니다.
function Compare() {
var f = document.cnjform;
shape = 'width=850,height=530,';
shape += 'left=10,top=10,toolbar=no,location=no,directories=no,status=no,';
shape += 'menubar=no,scrollbars=yes,resizable=no';

var count; // 체크박스 카운트 변수
count = 0; 
min_count = 2; // 최대 체크박스 선택
var check_num = f.elements.length;
for (var i=0; i<check_num-1; i++) { 
if (f.elements[i].checked==true) { 
count++; 
} 
} 

if (count<min_count) { // 최대 선택 체크박스
//alert("상품비교는 최소 2개이상 4개까지 가능합니다.");
alert("프린트는 현재 준비중입니다. 감사합니다.."); 
return false;
} 

open('', 'cnjWin', shape);
alert("프린트는 현재 준비중입니다. 감사합니다..");
//f.action = '/tax/_total/view_print.asp'; // 상품비교 페이지 알맞게 설정하기
//f.target='cnjWin'; // 팝업창 타켓
//f.submit(); // 전송
}

function count_chk(){
var maxnum = 4; // 상품비교 최대 수량
var f = document.cnjform;
var str = f['cnjchk'];
if ( str == '[object]' ) {
if ( str.length ) {
j = 0;
for ( var i = 0; i < str.length; i++ ) {
if ( str[i].checked ) {
if ( ++j > maxnum ) {
alert("상품비교는 "+maxnum+"개까지만 가능합니다.");
return false;
}
}
}

if ( j > 1 ) { return; } 

}

} 
}

// 상품 보는페이지 체크하기

function go_buy(Order) {
        with(document.ProdDetail) {
               var option1;
               var option2;
               var option3;

			 if(option1== null) {
				target="";
				action = "/insert/cart_in.asp?Order="+Order;
				submit();
			 }else {
					if(option1.value == 0) {

						alert(optName1.value+"을 선택하세요.");

					} else if (option2!= null && option2.value == 0) {

						alert(optName2.value+"을 선택하세요.");

					} else if (option3!= null && option3.value == 0) {

						alert(optName3.value+"을 선택하세요.");

					} else {
						target="";
						action = "/insert/cart_in.asp?Order="+Order;
						submit();

				   }
			   }
		}
}

function goTinput(type){
	if(type == 1){
		document.ProdDetail.opttext1.value=document.ProdDetail.option1.options[document.ProdDetail.option1.selectedIndex].text;
	}else if(type==2){
		document.ProdDetail.opttext2.value=document.ProdDetail.option2.options[document.ProdDetail.option2.selectedIndex].text;
	}else if(type==3){
		document.ProdDetail.opttext3.value=document.ProdDetail.option3.options[document.ProdDetail.option3.selectedIndex].text;
	}else if(type==4){
		document.ProdDetail.opttext4.value=document.ProdDetail.option4.options[document.ProdDetail.option4.selectedIndex].text;
	}else if(type==5){
		document.ProdDetail.opttext5.value=document.ProdDetail.option5.options[document.ProdDetail.option5.selectedIndex].text;
	}else if(type==6){
		document.ProdDetail.opttext6.value=document.ProdDetail.option6.options[document.ProdDetail.option6.selectedIndex].text;
	}else if(type==7){
		document.ProdDetail.opttext7.value=document.ProdDetail.option7.options[document.ProdDetail.option7.selectedIndex].text;
	}else if(type==8){
		document.ProdDetail.opttext8.value=document.ProdDetail.option8.options[document.ProdDetail.option8.selectedIndex].text;
	}else if(type==9){
		document.ProdDetail.opttext9.value=document.ProdDetail.option9.options[document.ProdDetail.option9.selectedIndex].text;
	}else if(type==10){
		document.ProdDetail.opttext10.value=document.ProdDetail.option10.options[document.ProdDetail.option10.selectedIndex].text;
	}

}


//-->
	//*************************************************************
	//**
	//**	유틸리티 스크립트 끝
	//**
	//*************************************************************
