function blog_cfocus(obj) { if (obj.value == '(unikālie apmkl. dienā tagad..)' || obj.value == '(..un pirms 6 mēnešiem)') { obj.value = ''; obj.style.color = 'black'; } } function blog_cblur(obj, text) { text = (text == 1) ? '(unikālie apmkl. dienā tagad..)' : '(..un pirms 6 mēnešiem)'; if (obj.value == '') { obj.value = text; obj.style.color = 'gray'; } } function blog_allowint(event) { var e = event; if (window.event) var charCode = e.keyCode; else if (e.which) var charCode = e.which; if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } function blog_ccalc() { now = document.getElementById('blog-visits-now').value; was = document.getElementById('blog-visits-was').value; if ((now > 100000 || now < 0) || (was > 100000 || was < 0)) { alert('Jā, protams'); return; } if (!now || !was || now == '(unikālie apmkl. dienā tagad..)' || was == '(..un pirms 6 mēnešiem)') return; eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('d=((6>9)?-a/6+3:8.b(6,2)*0.5/(9*9)+0.5);e=(8.c(8.b((6/((7>0)?7:6/4)),(1+7/a)))>2)?2:8.c(8.b((6/((7>0)?7:6/4)),(1+7/a)));',15,15,'||||||now|was|Math|5000|10000|pow|sqrt|apkoef|izkoef'.split('|'),0,{})); value = Math.round(now * apkoef * izkoef); time = Math.floor(new Date().getTime() / 1000); code = '<script src="http://blog.capitalia.lv/calc/blog.php?show=results&date=' + time + '&value=' + value + '&color=1070c0" type="text/javascript"></script>'; result = '
Šī bloga
'; result += '
vērtība ir:
'; result += '
Ls ' + value + '
'; result += ''; result += ''; result += 'Uzzini vairāk'; result += '
Capitalia
'; result += '
'; document.getElementById('capw').innerHTML = result; } document.write(''); document.write('
'); document.write('
Cik vērts ir tavs
'); document.write('
blogs?
'); document.write(' '); document.write(' '); document.write(' Aprēķināt'); document.write('
Capitalia
'); document.write('
'); document.write('
');