function strrev(str) { if (!str) return ''; var revstr=''; for (i = str.length-1; i>=0; i--) revstr+=str.charAt(i) return revstr; } $(document).ready(function(){ $('#infomessage').text('Пожалуйста, заполните форму!').show(); $('#errormessage').hide(); function validateForm() { flag = true; $('.inp_fld').each(function(){ if(!/([0-9]+|[0-9]+\.?[0-9]+)$/.test(this.value)) { $('#'+this.id+'_req').addClass('fail_req'); flag = false; } else { $('#'+this.id+'_req').removeClass('fail_req'); } }); return flag; } $('#calcbutton').click(function(){ if(validateForm() == false) { $('#infomessage').hide(); $('#errormessage') .addClass('error-message') .text('Вы допустили ошибку!') .show(); } else { $('#errormessage').hide(); //Calculate the form var cenaGbo = $('#cenagbo').val(); var cenaLBen = $('#cenalben').val(); var cenaLGaz = $('#cenalgaz').val(); var rashodBen = $('#rashodben').val(); var probegAvto = $('#probegavto').val(); var okupitsya = Math.floor(((cenaGbo*100)/((cenaLBen-cenaLGaz*1.15)*probegAvto*rashodBen)))+'мес.'; var ekonomiya = parseInt(Math.floor((probegAvto*rashodBen/100)*(cenaLBen-cenaLGaz*1.15)*36))+' грн.'; var ek = ''; var ekrev = strrev(ekonomiya); for (var ind=ekonomiya.length-1; ind>=0; ind--) { if((ind+1) % 3 == 0) ek += ' '; ek += ekrev[ind]; } ekonomiya=ek; $('#ustanovkagbo').val(String(okupitsya)); $('#ekonmesyac').val(String(ekonomiya)); $('#infomessage').text('Готово!').show(); } }); });

Калькулятор окупаемости ГБО

We were amazed by how little effort was required on our part to have Consulting WP prepare these materials. We exchanged a few phone calls and e-mails, and they… handled the rest.

Amanda Seyfried
Founder & CEO, Arcade Systems

The demands for financial institutions have changed a bit. Obfuscation is no longer accepted, which is why this Business WordPress Theme is so perfect.

Debbie Kübel-Sorger
Chairman, Kreutz Airlines

When you are in the financial industry you know the image you have to project to people. You have to be agile and authoritative; Consulting WP is the way to go for financial institutions

Donald Simpson
Chief Financial Officer, Jamaica International

We thought a lot before choosing the Financial WordPress Theme because we wanted to sure our investment would yield results. This was clearly the best choice, it combines a fantastic design with great UI.

Christian Marcil
Chairman, Harmony Corporation

Testimonials Carousel

Looking for a First-Class Business Plan Consultant?

эротический массаж Киев эротический массаж салон эротического массажа