function createInactiveLayer(){
	//var oHtmlDom = document.documentElement || document;
	var oHtmlDom = document.body;
	var tmpWidth = oHtmlDom.scrollWidth;
	var tmpHeight = oHtmlDom.scrollHeight;
	var tmpHeightDoc = document.documentElement.scrollHeight-4;

	if(tmpHeight<tmpHeightDoc)	tmpHeight = tmpHeightDoc;

	var layerInactive = document.createElement("DIV");
	layerInactive.id = "div_inactive";
	//alert(tmpHeight + "*" + document.documentElement.scrollHeight );
	with(layerInactive.style){
		position = 'absolute';
		top = '0px';
		left = '0px';
		width = tmpWidth + 'px';
		height = tmpHeight + 'px';
		//overflow = 'hidden';
		//height = 1024;
		//percentWidth =  100;
		//percentHeight = 100;
		filter =  'alpha(Opacity=40)';
		opacity = '0.0';
		background = 'black';
		zIndex = '1000';
	}
	document.body.appendChild(layerInactive);

}
function fnPopCalculator(typeNm){
	createInactiveLayer();
	var w = 937;
	var h = 559;
	var winX = 0;
	var winY = 0;
	winX = (screen.availWidth - w) * 0.5;
	winY = ((screen.availHeight - h) * 0.5) - 90;
	if(winY>120)	winY = 120;
	if(winY<0)		winY = 0;
	divPopCalc.style.width = w;
	divPopCalc.style.height = h;
	divPopCalc.style.left = winX;
	divPopCalc.style.top = winY;
	divPopCalc.style.display="";
	var url = str_link+"/01_personal/01_payment/pay_cal_flex/calculator.jsp?contractType="+typeNm;
	//openPopUp(url,"popGall",733,501);
	frPopCalc.location.href = url;
}
function fnPopCalculatorBlank(typeNm){
	window.open(str_link+"/01_personal/01_payment/pay_cal_flex/calculator.jsp?pageReq=KD01210&contractType="+typeNm, 'frPopupCalc', 'scrollbars=yes,toolbar=no,menubar=no,location=no,height=559,width=937,top=0,left=0');
}
function closePopCalc(){
	document.body.removeChild(document.getElementById("div_inactive"));
	divPopCalc.style.display="none";
	frPopCalc.location.href="about:blank";
	document.focus();
}
