point = new Image(); point.src = "/i/nav_on.gif";
spacer = new Image(); spacer.src = "/i/i.gif";

catalog_on = new Image(); catalog_on.src = "/i/submit_on.gif";
catalog_off = new Image(); catalog_off.src = "/i/submit_off.gif";

tocalc_on = new Image(); tocalc_on.src = "/i/tocalc_on.gif";
tocalc_off = new Image(); tocalc_off.src = "/i/tocalc_off.gif";

function Byt(place,imgName) {
        document[place].src =eval(imgName + ".src");
}

function ShowPhoto(photo,width,height) {
        photo_window=open('/photo.php?photo='+photo, 'Photo', 'fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height);
        photo_window.focus();
        return(false);
}
function okr(x) {
var str= Math.round(x*100)/100+'';
str = (str.charAt(0)=='.' ? '0'+str:str);
if (str.charAt(str.length-3)=='.') {
str+='';
}
else if (str.charAt(str.length-2)=='.') {
str+='0';
}
else str+='.00';
return str;
}
function ShowWnd(Wnd,width,height) {
        Wnd_window=open(Wnd, 'Wnd', 'width='+width+',height='+height+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
//        Wnd_window=open(Wnd, 'Wnd', 'fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,width='+width+',height='+height);
        Wnd_window.focus();
        return(false);
}

checkform=1;
doc="document.calc.";
function CheckEmpty(pole,a) {
        if (eval(doc+pole+".value") == "") {
                alert(a);
                return (true);
   }
        return (false);
}
function CheckRadio(field,message) {
        check=0;
   for (i=0; i < document.calc[field].length; i++) {
      if (document.calc[field][i].checked=="1") {
                        check=1;
      }
   }
        if (check!=1) {alert(message);return(true);}
}

function neonstop(field) {
        document.calc[field].value='0';
        document.calc[field].disabled=true;
}

function neonstart(field) {
        document.calc[field].disabled=false;
        if (document.calc[field].value=='0') {
                document.calc[field].value='1';
        }
}