//blur
/*
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
*/
function allblur() {
for (i = 0; i < document.links.length; i++)
	document.links[i].onfocus = document.links[i].blur;
}


// qa
	function faq(a)
	{
		if (a == '01')
		{
			document.all.faq01.style.display = "";
			document.all.faq02.style.display = "none";
		}
		else if (a == '02')
		{
			document.all.faq01.style.display = "none";
			document.all.faq02.style.display = "";
		}
	}
	function ansonoff(a, b)
	{
		for (i = 1 ; i <= b ; i ++)
		{
			tmp1 = eval ("document.all.anses" + i);
			if (i == a)
			{
				if (tmp1.style.display == "")
					tmp1.style.display = "none";
				else
					tmp1.style.display = "";
			}
			else
			{
				tmp1.style.display = "none";
			}
		}
	}
	function ansonoff1(a, b)
	{
		for (i = 1 ; i <= b ; i ++)
		{
			tmp1 = eval ("document.all.anset" + i);
			if (i == a)
			{
				if (tmp1.style.display == "")
					tmp1.style.display = "none";
				else
					tmp1.style.display = "";
			}
			else
			{
				tmp1.style.display = "none";
			}
		}
	}
	function ansonoff2(a, b)
	{
		for (i = 1 ; i <= b ; i ++)
		{
			tmp1 = eval ("document.all.answo" + i);
			if (i == a)
			{
				if (tmp1.style.display == "")
					tmp1.style.display = "none";
				else
					tmp1.style.display = "";
			}
			else
			{
				tmp1.style.display = "none";
			}
		}
	}


//¾ÆÀÌÇÁ·¹ÀÓ
/*
function initsize() {
self.resizeTo(document.body.scrollWidth, document.body.scrollHeight);
}
*/

/* click_popup */
function CaricaFoto(img){ 
        foto1= new Image(); 
        foto1.src=(img); 
        Controlla(img); 
} 
function Controlla(img){ 
        if((foto1.width!=0)&&(foto1.height!=0)){ 
                viewFoto(img); 
        } 
        else{ 
                funzione="Controlla('"+img+"')"; 
                intervallo=setTimeout(funzione,20); 
        } 
} 
function viewFoto(img){ 
        largh=foto1.width; 
        altez=foto1.height; 
        stringa="width="+largh+",height="+altez+",left="+100+",top="+100+",resizable="+1; 
        image_view=window.open(img,"",stringa); 
        image_view.document.write("<html><head><title>View</title></head>"); 
        image_view.document.write("<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>"); 
        image_view.document.write("<img src="+img+" onclick='self.close()'>"); 
        image_view.document.close(); 
} 


//popup
function popup(pop,width,height)
{
	var url = pop;
	var wd = width;
	var he = height;

	window.open(url,"zz","width=" + wd +",height=" + he + ",left=400,top=0,scrollbars=yes,scrolling=yes ;")
}
