function kbNewWin(src,name,w,h,prop,lp,tp) {
			if ((!w && !h) && (lp && tp)) {
				w = screen.width - (lp * 2);
				h = screen.height - (tp * 2) - tp;
				tp = tp / 2;
			} else if ((w && h) && (!lp && !tp)) {
				lp = (screen.width - w) / 2;
				tp = (screen.height - h) / 2;
			}
			prop = (!prop)? "" : prop+",";
			prop += (!w && !h)? "" : "width="+w+",height="+h+",left="+lp+",top="+tp;
			Win = window.open(src,name,prop);
			Win.focus();
		}
		function kbCalc () {
			var kbCena = document.forms['kbhypocalc'].price.value;
			var kbSporeni = document.forms['kbhypocalc'].funds.value;
			var kbSplatnost = document.forms['kbhypocalc'].maturity.value;
			kbNewWin('http:\x2f\x2fwww.kb.cz\x2fcs\x2fapp\x2fmort_calc.shtml?rates=3&cena='+kbCena+'&sporeni='+kbSporeni+'&splatnost='+kbSplatnost,'kbMortCalc',467,405,'status=yes');
		}

