// replacement of style on focused elements (for ie; as alternative to css :focus in mozilla/opera)
// (c) patrick griffiths & dan webb, modified by refresh.cz
sfFocus = function() {
	var sfEls = new Array();
	sfEls[0] = document.getElementsByTagName("input");
	sfEls[1] = document.getElementsByTagName("textarea");
	for (var i=0; i<sfEls.length; i++) {
		for (var y=0; y<sfEls[i].length; y++) {
			sfEls[i][y].onfocus=function() {
				this.className+=" sffocus";
			}
			sfEls[i][y].onblur=function() {
				this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);

// custom window open
function openWindow(url,w,h,cl,ct,c,r,s) { // doc url, width, height, coordinates left, coordinates top, center?, resizeable?, scrollbars? 
	if (c) {
		sw = screen.width;
		sh = screen.height;
		cl = ((sw - sirka) / 2) - 20;
		ct = (sh - vyska) / 2;
	}
	popupWindow = window.open(url,"popupWindow","width="+w+",height="+h+",left="+cl+",top="+ct+",location=0,menubar=0,resizable="+r+",scrollbars="+s+",status=0,titlebar=0,toolbar=0");
	popupWindow.focus();
}

document.write('<link rel="stylesheet" type="text/css" href="/css/repair.css" />');

