		   
//점선링크삭제

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

/********************************************************************************************************
	Flash_Select
********************************************************************************************************/

function SetMainMenuFlashVars(pageNum, subNum)
{
	document.mainmenu.FlashVars = 'pageNum='+pageNum+'&subNum='+subNum;
}

function SetLeftMenuFlashVars(pageNum, subNum)
{
	document.leftmenu.FlashVars = 'pageNum='+pageNum+'&subNum='+subNum;
}
			   

/********************************************************************************************************
	Family site Link (footer)
********************************************************************************************************/

// Family site Link //
function goSite() {
	if(document.getElementById("site").value == "") {
		alert("Family site를 선택하세요.");
		document.getElementById("site").focus();
		return;
	} 

	path = document.getElementById("site").value;
	
	window.open(path);
}
/*********************/




/********************************************************************************************************
	팝업창 오픈
********************************************************************************************************/
function uf_popOpen(url) {
	var positionX = 0;
	var positionY = 0;
//	var positionX = (screen.width-450)/2;
//	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=300,height=300,toolbar=no,scrollbars=no" );
}





/****** 팝업창 리사이즈 **************************************************************/
function uf_popResize() {
	var thisX = document.getElementById("offsetTable").offsetWidth;
	var thisY = document.getElementById("offsetTable").offsetHeight;
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 80;
	if (window.navigator.userAgent.indexOf("SV1") != -1){
	var marginY = 50; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	} else {
	var marginY = 29; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	}
	
	if (thisX > maxThisX) {
		window.document.body.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.document.body.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	
	var windowX = (screen.width - (thisX+10))/2;
	var windowY = (screen.height - (thisY+marginY))/2 - 20;
//	window.moveTo(windowX,windowY);
	window.resizeTo(thisX+10,thisY+marginY);
}

/****** 팝업창 리사이즈 **************************************************************/


/********************************************************************************************************
	팝업창 오픈
********************************************************************************************************/
function popup(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;

	if (flag == 0 )
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,left=0,top=0,width=" + wd +",height=" + he + ";")
	}
	else
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,left=0,top=0,width=" + wd +",height=" + he + ";")
	}
}


