// IE - fix blikajicich backgroundu
eval("try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}");

// Open new window
function newWin(src,winName,w,h,prop,lp,tp) {
	winLeft = (!lp)? (screen.width - w) / 2 : lp;
	winTop = (!tp)? ((screen.height - h) / 2) - 28 : tp;
	winProp = (!prop)? 'menubar=no,resizable=no,scrollbars=0,status=no,toolbar=no,locationbar=no,directories=no' : prop;
	winProp += ',width='+w+',height='+h+',left='+winLeft+',top='+winTop;
	Win = window.open(src,winName,winProp);
	Win.focus();
}
function clearInput(o,defaultValue) {
	if (o.value == defaultValue ) o.value = "";
	focusObj = o;
}
function defaultInput(o,defaultValue) {
	if (o.value == "" ) o.value = defaultValue;
}