/*INISEAL:[PiChs%2Boqku1btFn5U2urVKFqIK0%3D%0A]*/
/*Main Top Navi*/
function mainTop_swfprint(furl,fwidth,fheight,transoption,id_name)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	document.write('<param name="base" value="/contents/ionresource/flash/main/" />');
	document.write('<param name="flashVars" value="xml_path=./&pagecode=010000" />');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<embed src="'+ furl +'" quality="high" width="'+ fwidth +'" height="' + fheight +'" wmode="transparent" name="'+ id_name +'" align="middle" base="/contents/ionresource/flash/main/" flashVars="xml_path=./&pagecode=010000" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

/*Main Visual Flash*/
function Main_swfprint(furl,fwidth,fheight,transoption,id_name)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	document.write('<param name="base" value="/contents/ionresource/flash/main/" />');
	document.write('<param name="flashVars" value="xml_path=./" />');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<embed src="'+ furl +'" quality="high" width="'+ fwidth +'" height="' + fheight +'" wmode="transparent" name="'+ id_name +'" align="middle" base="/contents/ionresource/flash/main/" flashVars="xml_path=./" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

/* Sub Top Navi */
function subTop_swfprint(furl,fwidth,fheight,transoption,id_name,pageCode)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	document.write('<param name="base" value="/contents/ionresource/flash/" />');
	document.write('<param name="flashVars" value="xml_path=./&pagecode='+pageCode+'\" />');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<embed src="'+ furl +'" quality="high" width="'+ fwidth +'" height="' + fheight +'" wmode="transparent" name="'+ id_name +'" align="middle" base="/contents/ionresource/flash/" flashVars="xml_path=./&pagecode='+pageCode+'\" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function swfprint(furl,fwidth,fheight,transoption,id_name,flashVar)	{
	document.write('<object id="'+id_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	document.write('<param name="base" value="./" />');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	if (flashVar) {
		document.write('<param name="flashVars" value="'+flashVar+'" />');
	}
	if (flashVar) {
		document.write('<embed src="' + furl + '" quality="high" width="' + fwidth + '" height="' + fheight + '" wmode="transparent" name="' + id_name + '" flashVars="'+flashVar+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	} else {
		document.write('<embed src="' + furl + '" quality="high" width="' + fwidth + '" height="' + fheight + '" wmode="transparent" name="' + id_name + '"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}
	document.write('</object>');
}

function MyhanaMain_swfprint(furl,fwidth,fheight,transoption,id_name,flashVar)	{
	document.write('<object id="'+id_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	document.write('<param name="base" value="./" />');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	if (flashVar) {
		document.write('<param name="flashVars" value="'+flashVar+'" />');
	}
	if (flashVar) {
		document.write('<embed src="' + furl + '" quality="high" width="' + fwidth + '" height="' + fheight + '" wmode="transparent" name="' + id_name + '" flashVars="'+flashVar+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	} else {
		document.write('<embed src="' + furl + '" quality="high" width="' + fwidth + '" height="' + fheight + '" wmode="transparent" name="' + id_name + '"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}
	document.write('</object>');
}


// Roll over
function menuOver(obj) { obj.src = obj.src.replace("_off.gif", "_on.gif");}
function menuOut(obj) { obj.src = obj.src.replace("_on.gif", "_off.gif");}

// Show-Hide Layer 
function showLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "block"; }
function hideLayer(tgtEl)    {    document.getElementById(tgtEl).style.display = "none"; }

//
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

// Select Links
function linkAct()	{
	var tgtList = document.getElementById('family_urls');
	if(tgtList.style.display)	{
		hideLayer('family_urls');
		tgtList.style.display = "";
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "0";
	} else	{
		showLayer('family_urls');
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "-1";
	}
}
function selectLinks(tgtEl)	{
	var tgtList = document.getElementById(tgtEl);
	if(tgtList.style.display)	{
		hideLayer(tgtEl);
		tgtList.style.display = "";
	} else	{
		showLayer(tgtEl);
	}
}
function showSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "block";
	if ( navigator.userAgent.indexOf("MSIE") !=-1 && document.getElementById('container') ) 
		document.getElementById('container').style.zIndex = "0";
}

function hideSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "none";
	if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) 
		document.getElementById('container').style.zIndex = "0";
}

// total search top
function linkAct()	{
	var tgtList = document.getElementById('total_search');
	if(tgtList.style.display)	{
		hideLayer('total_search');
		tgtList.style.display = "";
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "0";
	} else	{
		showLayer('total_search');
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "-1";
	}
}
function selectLinks(tgtEl)	{
	var tgtList = document.getElementById(tgtEl);
	if(tgtList.style.display)	{
		hideLayer(tgtEl);
		tgtList.style.display = "";
	} else	{
		showLayer(tgtEl);
	}
}
function showSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "block";
	if ( navigator.userAgent.indexOf("MSIE") !=-1 && document.getElementById('container') ) 
		document.getElementById('container').style.zIndex = "0";
}

function hideSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "none";
	if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) 
		document.getElementById('container').style.zIndex = "0";
}

// total search footer
function linkAct()	{
	var tgtList = document.getElementById('total_search01');
	if(tgtList.style.display)	{
		hideLayer('total_search01');
		tgtList.style.display = "";
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "0";
	} else	{
		showLayer('total_search01');
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "-1";
	}
}
function selectLinks(tgtEl)	{
	var tgtList = document.getElementById(tgtEl);
	if(tgtList.style.display)	{
		hideLayer(tgtEl);
		tgtList.style.display = "";
	} else	{
		showLayer(tgtEl);
	}
}
function showSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "block";
	if ( navigator.userAgent.indexOf("MSIE") !=-1 && document.getElementById('container') ) 
		document.getElementById('container').style.zIndex = "0";
}

function hideSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "none";
	if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) 
		document.getElementById('container').style.zIndex = "0";
}

function initMoving(target, position, topLimit, btmLimit) {
		if (!target) 
			return false;
		
		var obj = target;
		obj.initTop = position;
		obj.topLimit = topLimit;
		obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;
		
		//obj.setStyle({ position: 'absolute'}); 
		obj.style.position = 'absolute';
		obj.top = obj.initTop;
		
		
		obj.initLeft = Position.cumulativeOffset(target)[0];
		var userAgent = window.navigator.userAgent;
		if (userAgent.indexOf('MSIE') > -1) {
			if (userAgent.indexOf('MSIE 8') > 0) {
                obj.getTop = function(){
					return document.documentElement.scrollTop;
				}	
			}
			else 
				if (userAgent.indexOf('MSIE 6') > 0) {
	                obj.getTop = function(){
						return document.body.scrollTop;
						
					}
				} else {
	                obj.getTop = function(){
						return document.documentElement.scrollTop;
						
					}				    
				}
		} else {
            obj.getTop = function(){
				return document.documentElement.scrollTop;
				
			}			
		}
		
		
		obj.move = setInterval(function(){
			if (obj.initTop > 0) {
				pos = obj.getTop() + obj.initTop;
				
			}
			else {
				pos = obj.getTop() + obj.getHeight() + obj.initTop;		
			}
			if (pos > obj.bottomLimit) {
				pos = obj.bottomLimit;
			}
			if (pos < obj.topLimit) {
				pos = obj.topLimit;
			}
			
			interval = obj.top - pos;
			obj.top = obj.top - interval;
			obj.style.top = obj.top + 'px';
		}, 30);
}

function initMoving2(mainDiv ,target, position, topLimit, btmLimit) {
	if (!target) 
			return false;
		
		var userAgent = window.navigator.userAgent;
		if (userAgent.indexOf('MSIE') > -1) {
			if (userAgent.indexOf('MSIE 8') > 0) {
                var sh = document.body.clientHeight;
			}else{ 
				if (userAgent.indexOf('MSIE 6') > 0) {
	                var sh = document.body.clientHeight;
				} else {
	                var sh = document.documentElement.clientHeight;
				}
			}	
		} else {
            var sh = document.documentElement.clientHeight;
		}
		
		var obj = target;
		
		obj.initTop = sh - position;
		obj.topLimit = position;
		obj.bottomLimit = document.documentElement.scrollHeight + 500;
		
		//alert(obj.bottomLimit);
		
		
		//obj.setStyle({ position: 'absolute'}); 
		obj.style.position = 'absolute';
		obj.top = obj.initTop;
		
		
		obj.initLeft = Position.cumulativeOffset(target)[0];
		
		if (userAgent.indexOf('MSIE') > -1) {
			if (userAgent.indexOf('MSIE 8') > 0) {
                obj.getTop = function(){
					return document.body.scrollTop;
					
				}	
			}
			else 
				if (userAgent.indexOf('MSIE 6') > 0) {
	                obj.getTop = function(){
						return document.body.scrollTop;
						
					}
				} else {
	                obj.getTop = function(){
						return document.documentElement.scrollTop;
						
					}				    
				}
		} else {
            obj.getTop = function(){
				return document.documentElement.scrollTop;
				
			}			
		}
		
		
		obj.move = setInterval(function(){
			if (userAgent.indexOf('MSIE') > -1) {
				if (userAgent.indexOf('MSIE 8') > 0) {
	                var shh = document.body.clientHeight;
				}else{ 
					if (userAgent.indexOf('MSIE 6') > 0) {
		                var shh = document.body.clientHeight;
					} else {
		                var shh = document.documentElement.clientHeight;
					}
				}	
			} else {
	            var shh = document.documentElement.clientHeight;
			}
			
			if (obj.initTop > 0) {
				pos = obj.getTop() + shh - position; //obj.initTop;
			}
			else {
				pos = obj.getTop() + obj.getHeight() + shh - position; //obj.initTop;		
			}
			if (pos > obj.bottomLimit) {
				pos = obj.bottomLimit;
			}
			if (pos < obj.topLimit) {
				pos = obj.topLimit;
			}
			
			interval = obj.top - pos;
			obj.top = obj.top - interval;
			var sw = document.body.offsetWidth;
		
			 var width = 755;
			 var height = 343;
			obj.style.top= obj.top + 'px';		
			obj.style.left = ((sw) ? (sw)/2 : 0) - (width/2);
		}, 10);
	
}


// Tab Content
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {  // onmouseover¡í??
			currentmenu = this.container.current;
			if (currentmenu == this)
				return;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_ov.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace(" ov", "");
				}
			}

			this.targetEl.style.display = "block";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_ov.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick(); // onmouseover¡í???¨¬?¡Æ??
}

// Fox LeftMenu
function linkAct()	{
	var tgtList = document.getElementById('fox_year');
	if(tgtList.style.display)	{
		hideLayer('fox_year');
		tgtList.style.display = "";
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "0";
	} else	{
		showLayer('fox_year');
		if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) document.getElementById('container').style.zIndex = "-1";
	}
}
function selectLinks(tgtEl)	{
	var tgtList = document.getElementById(tgtEl);
	if(tgtList.style.display)	{
		hideLayer(tgtEl);
		tgtList.style.display = "";
	} else	{
		showLayer(tgtEl);
	}
}
function showSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "block";
	if ( navigator.userAgent.indexOf("MSIE") !=-1 && document.getElementById('container') ) 
		document.getElementById('container').style.zIndex = "0";
}

function hideSelectLayer(tgtEl)    {
	document.getElementById(tgtEl).style.display = "none";
	if (navigator.userAgent.indexOf("MSIE")!=-1&&document.getElementById('container')) 
		document.getElementById('container').style.zIndex = "0";
}
/* Fox LeftMenu */



/*¿µ¾÷Á¡¾È³»*/
function showNetworkMenu(onoff) {
	obj=document.getElementById("total_search");
	if(onoff=="on") {
		obj.style.display="block";
	} else if(onoff=="off") { 
		obj.style.display="none";
	} else {
		var nff=obj.style.display;
		if (nff=="none" || nff=="") {
			obj.style.display="block";
		} else {
			obj.style.display="none";
		}
	}
}

/*ÅëÇÕ°Ë»ö µµ¿ò¸» ·¹ÀÌ¾î */
function showHelpMenu(onoff) {
	obj=document.getElementById("top_src_help");
	if(onoff=="on") {
		obj.style.display="block";
	} else if(onoff=="off") { 
		obj.style.display="none";
	} else {
		var nff=obj.style.display;
		if (nff=="none" || nff=="") {
			obj.style.display="block";
		} else {
			obj.style.display="none";
		}
	}
}
function showfsHelpMenu(onoff) {
	obj=document.getElementById("footer_src_help");
	if(onoff=="on") {
		obj.style.display="block";
	} else if(onoff=="off") { 
		obj.style.display="none";
	} else {
		var nff=obj.style.display;
		if (nff=="none" || nff=="") {
			obj.style.display="block";
		} else {
			obj.style.display="none";
		}
	}
}

/* ÅëÇÕ°Ë»ö ·¹ÀÌ¾î ÆË¾÷ */
function showLayer03(layerId){
		var showL = document.getElementById(layerId);
		showL.style.display = "block"
		var popWrap = document.getElementById("SrcpopWrap");
		popWrap.style.display = "block"
		var bodyW = document.documentElement.scrollWidth;
		var bodyH = document.documentElement.scrollHeight;
		document.getElementById("SrcpopWrap").style.height = bodyH +"px";
		document.getElementById("SrcpopWrap").style.width = bodyW +"px";
		var sel = document.getElementsByTagName("select");
		for(i=0;i< sel.length;i++){
			sel[i].style.visibility = "hidden";
		}
		var pop = document.getElementById(layerId);
		//var pop = document.getElementById("popBg");
		var popSel = pop.getElementsByTagName("select");
		for(i=0;i<popSel.length;i++){
			popSel[i].style.visibility = "visible";
		}
	}
	function hideLayer03(layerId){
		var hideL = document.getElementById(layerId);
		hideL.style.display = "none"
		var popWrap = document.getElementById("SrcpopWrap");
		popWrap.style.display = "none"
		var sel = document.getElementsByTagName("select");
		for(i=0;i< sel.length;i++){
			sel[i].style.visibility = "visible";
		}
	}
/* ÅëÇÕ°Ë»ö ·¹ÀÌ¾î ÆË¾÷ */

/* ÅëÇÕ°Ë»ö ¼¿·ºÆ® Layer */
function selectView(selectID,motherObj){
	var select = document.getElementById(selectID);
	if (select.style.display !="block")
	{
		select.style.display = "block";
		select.style.width = document.getElementById(motherObj).style.width ;
		select.style.zindex = "10"
	}
	else {
		select.style.display = "none";
		select.style.zindex = "1"
	}
}
function selectHide(selectID,txtValue,selectT){ /* selectID:select List Div, txtValue: text, selectT: text write space(span) */
	var selectID = document.getElementById(selectID);
	var selectT = document.getElementById(selectT);
	selectID.style.display = "none";
	selectT.innerHTML =txtValue;
}

function selectOver(subTitle,subList,motherObj){
	var subTitle = document.getElementById(subTitle);
	var subList = document.getElementById(subList);
	var motherObj = document.getElementById(motherObj);
	var left = motherObj.style.width;
	subTitle.className = "subT";
	subList.style.display = "block";
	subList.style.left = left;
}
function selectOut(subTitle,subList){
	var subTitle = document.getElementById(subTitle);
	var subList = document.getElementById(subList);
	subTitle.className = "subTitle";
	subList.style.display = "none";
}
/* ÅëÇÕ°Ë»ö ¼¿·ºÆ® Layer */

/*20090306 top GNB ÇÃ·¡½¬ ¸®»çÀÌÁî - ±ÝÀ¶µµ¿ì¹Ì Å¬¸¯ÇßÀ» ¶§ */		
function flashDivResize(height) {
	var div = document.getElementById("top_gnb_flash_div");
	var div2 = document.getElementById("GNB_Top_Flash_Object");
	div.style.height = height;
	div2.style.height = height;
}


/*ÅðÁ÷¿¬±Ý°ü·Ã Ãß°¡ - µð½ºÆ®¸¯Æ® */
function checksubmit() {
	var check1 = "N";
	var check2 = "N";
	var check3 = "N";
	var check4 = "N";
	var check5 = "N";
	var check6 = "N";
	var check7 = "N";
	var check8 = "N";
	var check9 = "N";
	var check10 = "N";
	var check11 = "N";
	var form=document.myestimate;
	for(i=0;i<=form.q1.length-1;i++) {
		if(form.q1[i].checked) check1="Y";
	}
	for(i=0;i<=form.q2.length-1;i++) {
		if(form.q2[i].checked) check2="Y";
	}
	for(i=0;i<=form.q3.length-1;i++) {
		if(form.q3[i].checked) check3="Y";
	}
	for(i=0;i<=form.q4.length-1;i++) {
		if(form.q4[i].checked) check4="Y";
	}
	for(i=0;i<=form.q5.length-1;i++) {
		if(form.q5[i].checked) check5="Y";
	}
	for(i=0;i<=form.q6.length-1;i++) {
		if(form.q6[i].checked) check6="Y";
	}
	for(i=0;i<=form.q7.length-1;i++) {
		if(form.q7[i].checked) check7="Y";
	}
	for(i=0;i<=form.q8.length-1;i++) {
		if(form.q8[i].checked) check8="Y";
	}
	for(i=0;i<=form.q9.length-1;i++) {
		if(form.q9[i].checked) check9="Y";
	}
	for(i=0;i<=form.q10.length-1;i++) {
		if(form.q10[i].checked) check10="Y";
	}
	for(i=0;i<=form.q11.length-1;i++) {
		if(form.q11[i].checked) check11="Y";
	}
	// Ã¼Å©
	if (check1!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q1[0].focus();
	} else if (check2!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q2[0].focus();
	} else if (check3!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q3[0].focus();
	} else if (check4!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q4[0].focus();
	} else if (check5!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q5[0].focus();
	} else if (check6!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q6[0].focus();
	} else if (check7!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q7[0].focus();
	} else if (check8!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q8[0].focus();
	} else if (check9!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q9[0].focus();
	} else if (check10!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q10[0].focus();
	} else if (check11!="Y") {
		alert("¼±ÅÃÇÏÁö ¾ÊÀº Ç×¸ñÀÌ ÀÖ½À´Ï´Ù!");
		form.q11[0].focus();
	} else {
		ef.annuity.goMovePageCMS('/efamily/goldplan/annuity/wyfam416_20c.jsp?score='+document.sendresult.score.value,'HANA_CONTENT');
	}
}
// Áú¹® ½ºÅ©¸³Æ®
var s1=0;
var s2=0;
var s3=0;
var s4=0;
var s5=0;
var s6=0;
var s7=0;
var s8=0;
var s9=0;
var s10=0;
var s11=0;

function addvalue(obj,num) {
	if (obj=='q1') s1=num;
	if (obj=='q2') s2=num;
	if (obj=='q3') s3=num;
	if (obj=='q5') s5=num;
	if (obj=='q6') s6=num;
	if (obj=='q7') s7=num;
	if (obj=='q8') s8=num;
	if (obj=='q9') s9=num;
	if (obj=='q10') s10=num;
	if (obj=='q11') s11=num;

	// q4ÀÇ °æ¿ì (checkbox)
	s4=0;
	for (i=0;i<=8;i++) {
		if (myestimate.q4[i].checked == true) {
			s4= s4 + parseInt(myestimate.q4[i].value);
		}
	}
	calresult();
}

function calresult() {
	//alert(s1+s2+s3+s4+s5+s6+s7+s8+s9+s10+s11);
	obj=document.getElementById("resultinput");
	allnum = s1+s2+s3+s4+s5+s6+s7+s8+s9+s10+s11;
	obj.value=allnum;
}


/*=======================================================================================
*  ÆÄÀÏ¸í: insertFlash.js ¿¡¼­ ¹ßÃé
*  ÃÖÁ¾¼öÁ¤
*		2007.11.16 // Flex swfÆÄÀÏ ·Îµå¸¦ À§ÇÑ insertFlash9() Ãß°¡ // FlexÆÀ ÃÖºÀ»ê.
*
==========================================================================================*/


/**
*	flash ÅÂ±×°¡ ÂïÈ÷µµ·Ï ÇÕ´Ï´Ù.
*   GNB, LNB µî ÇÃ·¡½Ãswf¸¦ ·ÎµåÇÏ´Âµ¥ ÀûÇÕÇÕ´Ï´Ù.
*
*	param
*		swf:	swf ÆÄÀÏÀÇ °æ·Î( ex: /pib/bank/inq/QuickInquiry.swf  or   ../inqQuickInquiry.swf )
*		width:	³Êºñ ( px )
*		height: ³ôÀÌ ( px )
*		bgcolor: ¹è°æ»ö ( ex: #FFFFFF )
*		id:		<object ÅÂ±×ÀÇ id°ª
*		flashvars:	ÇÃ·¡½Ãº¯¼ö, °ø¹éÀÌ¾îµµ µË´Ï´Ù.
*		trans:	Åõ¸íµµ°ü·Ãº¯¼ö.
*		
*/
function insertFlash(swf, width, height, bgcolor, id, flashvars,trans)
{
	//insertFlashWithVersion( swf, width, height, bgcolor, id, flashvars, trans, '8,0,0,0' );
	insertFlashWithVersion( swf, width, height, bgcolor, id, flashvars, trans, '9,0,124,0' );
}


/**
*	9¹öÀüÀÇ ÇÃ·¡½ÃÇÃ·¹ÀÌ¾î¸¦ ÇÊ¿ä·ÎÇÏ´Â flash ÅÂ±×°¡ ÂïÈ÷µµ·Ï ÇÕ´Ï´Ù.
*   Flex È­¸éÀ» Ç¥½ÃÇÏ´Âµ¥´Â ÀÌ ÇÔ¼ö¸¦ ½á¾ß ÇÕ´Ï´Ù.
*
*	param
*		À§ÀÇ insertFlash() ¿Í µ¿ÀÏ
*
*/
function insertFlash9(swf, width, height, bgcolor, id, flashvars,trans)
{
	insertFlashWithVersion( swf, width, height, bgcolor, id, flashvars, trans, '9,0,124,0' );
}


function insertFlashWithVersion(swf, width, height, bgcolor, id, flashvars, trans, verstr)
{
	var strFlashTag = new String();

	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+verstr+'" ';
		strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
		strFlashTag += '<param name="movie" value="' + swf + '"/>';

		if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
		strFlashTag += '<param name="quality" value="best"/>';
		strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
		strFlashTag += '<param name="menu" value="false"/>';
		strFlashTag += '<param name="salign" value="LT"/>';
		strFlashTag += '<param name="scale" value="noscale"/>';
		strFlashTag += '<param name="wmode" value="' + trans + '"/>';
		strFlashTag += '<param name="allowScriptAccess" value="always"/>';
		strFlashTag += '</object>';
	}
	else
	{
		strFlashTag += '<embed src="' + swf + '" ';
		strFlashTag += 'quality="best" ';
		strFlashTag += 'bgcolor="' + bgcolor + '" ';
		strFlashTag += 'width="' + width + '" ';
		strFlashTag += 'height="' + height + '" ';
		strFlashTag += 'menu="false" ';
		strFlashTag += 'scale="noscale" ';
		strFlashTag += 'id="' + id + '" ';
		strFlashTag += 'salign="LT" ';
		strFlashTag += 'wmode="' + trans + '" ';
		strFlashTag += 'allowScriptAccess="always" ';
		if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
		strFlashTag += 'type="application/x-shockwave-flash" ';
		strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
		strFlashTag += '</embed>';
	}

	document.write(strFlashTag);
}

function cleanup() 
{
	__flash_unloadHandler = function(){
		externalProbSet = true;
		obj = document.getElementsByTagName('OBJECT');
		for (i=0;i<obj.length;i++){
			var theObj = eval(obj[i]);
			theObj.style.display = "none";

			try{	
				for (var prop in theObj){
					if (typeof(theObj[prop]) == "function"){
						theObj[prop]=null
					}
				}
			}catch( ignored ){}	// /com/wccom011_01s.jsp ¿¡¼­ '¿ä¼Ò°¡ ¾ø½À´Ï´Ù.' ¿À·ù°¡ ³ª¼­ ¹­¾úÀ½.

		}
	}
	if (window.onunload != __flash_unloadHandler){
		__flash_savedUnloadHandler = window.onunload;
		window.onunload = __flash_unloadHandler;
	}
}
window.onbeforeunload=cleanup;