// JavaScript Document

function firma()
//âuáî? ô?aíoeçu
{ 
if (document.getElementById('um_firma').checked == true) 
{document.getElementById('Nipid').disabled=false; 
document.getElementById('FirmNameid').disabled=false; }

else {
document.getElementById('Nipid').disabled=true; 
document.getElementById('FirmNameid').disabled=true;
}
}

function frrr(nStr)
{
 nStr += '';
 x = nStr.split('.');
 x1 = x[0];
 if (x[1]==null) x[1]='00';
 x2 = x.length > 1 ? ',' + x[1] : '';
 var rgx = /(\d+)(\d{3})/;
 while (rgx.test(x1)) {
  x1 = x1.replace(rgx, '$1' + ' ' + '$2');
 }
 return x1 + x2;
}

function w(co) 
{ 
//co.style.backgroundColor='white'; 
var obiekt=co.getElementsByTagName('TD') 
obiekt[7].style.backgroundColor='#E7E7E7';
obiekt[6].style.backgroundColor='#E7E7E7';
obiekt[5].style.backgroundColor='#E7E7E7';
obiekt[4].style.backgroundColor='#E7E7E7';
obiekt[3].style.backgroundColor='#E7E7E7';
obiekt[2].style.backgroundColor='#E7E7E7';
obiekt[1].style.backgroundColor='#E7E7E7'; 
obiekt[0].style.backgroundColor='#E7E7E7'; 
} 

function y(co) 
{ 
//co.style.backgroundColor='#FCCF02'; 
var obiekt=co.getElementsByTagName('TD') 
obiekt[7].style.backgroundColor='#B6B6B6'; 
obiekt[6].style.backgroundColor='#B6B6B6'; 
obiekt[5].style.backgroundColor='#B6B6B6'; 
obiekt[4].style.backgroundColor='#B6B6B6'; 
obiekt[3].style.backgroundColor='#B6B6B6'; 
obiekt[2].style.backgroundColor='#B6B6B6'; 
obiekt[1].style.backgroundColor='#B6B6B6'; 
obiekt[0].style.backgroundColor='#B6B6B6'; 

} 

function displayWindow(url, name, width, height) {
var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,' );
}