All pastes #127114 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-12 00:53 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>.:: CNJ :: Cadastro das Despesas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/estilohelp.css" type="text/css" rel="stylesheet" />
<link href="css/validator.css" type="text/css" rel="stylesheet" />
<script language="Javascript" src="/scripts/src/domapi.js?skin=true&theme=system"></script>
<script language="JavaScript" type="text/javascript">
	    domapi.loadUnit("window");  
</script>    
    
<script language="JavaScript" type="text/javascript" src="numberFormat154.js"></script>
<script language="JavaScript" type="text/javascript">
<!--

function formatNumber(id)
{
var obj = document.getElementById(id);
var num = new NumberFormat();
num.setInputDecimal(',');
num.setNumber(obj.value); // obj.value is '354235,32'
num.setPlaces('2', false);
num.setCurrencyValue('$');
num.setCurrency(false);
num.setCurrencyPosition(num.LEFT_OUTSIDE);
num.setNegativeFormat(num.LEFT_DASH);
num.setNegativeRed(false);
num.setSeparators(true, '.', ',');
obj.value = num.toFormatted();

}
//-->
</script>

<script language="JavaScript" src="scripts/validator.js" type="text/javascript"></script>

</head>
<body>

<script type="text/javascript">
/***********************************************
* Cool DHTML tooltip script II- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="images/arrow.gif">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false



if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""


function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

</script>


<script type="text/javascript" language="javascript">
function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}


function checkind(f)
{


var msg = new String

with (document.forms.formdespesa)
{


// loading input variables

_pib = parseFloat(pib.value);
_h = parseInt(h.value);
_gt = parseFloat(gt.value);

_dpj = dpj.value
_dpj = replace(_dpj,".","");
_dpj = replace(_dpj,",",".");
_dpj = parseFloat(_dpj)

_pe = pe.value
_pe = replace(_pe,".","");
_pe = replace(_pe,",",".");
_pe = parseFloat(_pe)

_cca = cca.value
_cca = replace(_cca,".","");
_cca = replace(_cca,",",".");
_cca = parseFloat(_cca)

_prh = prh.value
_prh = replace(_prh,".","");
_prh = replace(_prh,",",".");
_prh = parseFloat(_prh)

_bs = bs.value
_bs = replace(_bs,".","");
_bs = replace(_bs,",",".");
_bs = parseFloat(_bs)

_ginf = ginf.value
_ginf = replace(_ginf,".","");
_ginf = replace(_ginf,",",".");
_ginf = parseFloat(_ginf)

_jg = jg.value
_jg = replace(_jg,".","");
_jg = replace(_jg,",",".");
_jg = parseFloat(_jg)



    alert('checando indicadores');

    if (_dpj == 0 || _pe == 0 || _cca == 0 || _prh == 0 || _bs == 0 || _ginf == 0 || _jg == 0)
	 {
	 msg = 'Não deixe nenhum dos valores com "0".Quando for indisponível coloque "-1".\n' 
 	 } 

    if (_dpj < -1 || _pe < -1 || _cca < -1 || _prh < -1 || _bs < -1 || _ginf < -1 || _jg < -1)
	 {
	 msg = 'Não existe valor negativo em Despesa.\n' 
 	 } 

	if (_pe > _dpj) 
	 {
	 msg = 'Pe não pode ser maior que a Despesa Total.\n' 
 	 } 

	 if (_cca > _dpj) 
	 {
	 msg = msg + 'Cca não pode ser maior que a Despesa Total.\n' 
     }

 	 if (_prh > _dpj) 
	 {
	 msg = msg + 'Prh não pode ser maior que a Despesa Total.\n' 
     }

 	 if (_bs > _dpj) 
	 {
	 msg = msg + 'BS não pode ser maior que a Despesa Total.\n' 
     }

 	 if (_ginf > _dpj) 
	 {
	 msg = msg + 'Ginf não pode ser maior que a Despesa Total.\n' 
     }

 	 if (_ginf > _cca) 
	 {
	 msg = msg + 'Ginf não pode ser maior do que Cca.\n' 
     }

 	 if (_jg > _dpj) 
	 {
	 msg = msg + 'JG não pode ser maior que a Despesa Total.\n' 
     }

 	 if (_jg > _cca) 
	 {
	 msg = msg + 'JG não pode ser maior do que Cca.\n' 
     }


var tmp = 0
tmp = _pe+_cca
 	 if (tmp != _dpj )
	 {
	 msg = msg + 'Pe + Cca tem que ser igual à Despesa Total.\n' 
     }

tmp = _prh+_bs
 	 if (tmp != _dpj )
	 {
	 msg = msg + 'Prh + Bs tem que ser igual à Despesa Total.\n' 
     }


    if (msg.length > 0) { 
	alert(msg);
    return false;
	}
	


}

// generating indicators
g1 = parseFloat(100*(_dpj/_pib));
g2 =  parseFloat(100*(_dpj/_gt));
g3 = parseFloat(100*(_prh/_dpj));
g4 = parseFloat(100*(_bs/_dpj));
g5 = parseFloat(100*(_pe/_dpj));
g6 = parseFloat(100*(_cca/_dpj));
g7 = parseFloat(_dpj/_h);
inf1 = parseFloat(100*(_ginf/_dpj));
a1 = parseFloat(100*(_jg/_pib));
a2 = parseFloat(100*(_jg/_gt));
a3 = parseFloat(100*(_jg/_dpj));
a4 = parseFloat(100*(_jg/_h));

      
      oW = parent.domapi.Window({
        text:'<img src="images/16/expense.gif" alt="" align="texttop" width="16" height="16" border="0"> Indicadores de Despesa',
        x:1,y:1,
        w:535,h:540
      });
      oW.workspace.innerHTML = 

'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' +
'<html xmlns="http://www.w3.org/1999/xhtml">'+
'<head><title>.:: CNJ :: Indicadores de Despesa da Justi&ccedil;a Estadual</title>'+
'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'+
'</head>'+
'<body>'+
'<form  action="" method="get" name="formIndDpjJE" id="formIndDpjJE" onsubmit="">'+
'<input name="IdUser" type="hidden" value="0" />'+
'<input name="IdModule" type="hidden" value="0" />'+
'<input name="IdCourt" type="hidden" value="0" />'+
'<input name="campo" type="hidden" value="" />'+
'<table class="buttons" width="100%" align="center" border="0">'+
'<tr ><td>&nbsp;<img src="images/capa.jpg" /></td></tr>'+
'<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/indicadores.jpg" /></td></tr>'+
'<tr valign="top" bgcolor="#f8fafa">'+
'<td bgcolor="#f8fafa">'+
'<table class="buttons" width="100%" align="center" border="0">'+
'<tr >'+
'<td width="100%">'+
'<fieldset >'+
'<table  bgcolor="#F0F1F7" class="tdfield">'+
'<tr  valign="middle">'+
'<td  colspan="2"><div align="center"><strong >Indicadores de Despesa da Justi&ccedil;a Estadual </strong></div></td>'+
'<td  width="65"><div align="center"><strong class="buttons">Valor</strong></div></td>'+
'</tr>'+
'<tr  bgcolor="#F8FAFA">'+
'<td  width="40">&nbsp;&nbsp;&nbsp;G1</td>'+
'<td  width="325">&nbsp;Despesa Total sobre o PIB Estadual (%)</td>'+
'<td><div align="center"><input name="g1" type="text" class="buttons" size="7" maxlength="7" value="' + g1.toFixed(2) + '"" readonly />'+
'</div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G2</td>'+
'<td>&nbsp;Despesa Total sobre a Despesa P&uacute;blica Estadual (%)</td>'+
'<td><div align="center"><input name="g2" type="text" class="buttons" id="g2" size="7" maxlength="7" value="' + g2.toFixed(2) + '"" readonly />'+
'</div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G3</td>'+
'<td>&nbsp;Despesa com Pessoal (Rh) sobre a Despesa Total (%)</td>'+
'<td><div align="center"><input name="g3" type="text" class="buttons" id="g3" size="7" maxlength="7"  value="' + g3.toFixed(2) + '"" readonly />'+
'</div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G4</td>'+
'<td>&nbsp;Despesa com Bens e Servi&ccedil;os sobre a Despesa  Total (%)</td>'+
'<td><div align="center"><input name="g4" type="text" class="buttons" id="g4" size="7" maxlength="7"  value="' + g4.toFixed(2) + '""  readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G5</td>'+
'<td>&nbsp;Despesa com Pessoal e Encargos sobre a Despesa  Total (%)</td>'+
'<td><div align="center"><input name="g5" type="text" class="buttons" id="g5" size="7" maxlength="7"  value="' + g5.toFixed(2) + '""  readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G6</td>'+
'<td>&nbsp;Despesa com Custeio e Capital sobre a Despesa  Total (%)</td>'+
'<td><div align="center"><input name="g6" type="text" class="buttons" id="g6" size="7" maxlength="7"  value="' + g6.toFixed(2) + '""   readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;G7</td>'+
'<td>&nbsp;Despesa Total por Habitante (R$)</td>'+
'<td><div align="center"><input name="g7" type="text" class="buttons" id="g7" size="7" maxlength="7"    value="' + g7.toFixed(2) + '"" readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;Inf1</td>'+
'<td>&nbsp;Gastos com Inform&aacute;tica sobre Despesa Total (%)</td>'+
'<td><div align="center"><input name="inf1" type="text" class="buttons" id="inf1" size="7" maxlength="7"  value="' + inf1.toFixed(2) + '""   readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;A1</td>'+
'<td>&nbsp;Despesa com Assist&ecirc;ncia Judici&aacute;ria sobre o PIB  Estadual (%)</td>'+
'<td><div align="center"><input name="a1" type="text" class="buttons" id="a1" size="7" maxlength="7"  value="' + a1.toFixed(2) + '""  readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;A2</td>'+
'<td>&nbsp;Despesa com Assist&ecirc;ncia Judici&aacute;ria sobre Despesa  P&uacute;blica Total (%)</td>'+
'<td><div align="center"><input name="a2" type="text" class="buttons" id="a2" size="7" maxlength="7" value="' + a2.toFixed(2) + '"" readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;A3</td>'+
'<td>&nbsp;Despesa com Assist&ecirc;ncia Judici&aacute;ria sobre Despesa  Total (%)</td>'+
'<td><div align="center"><input name="a3" type="text" class="buttons" id="a3" size="7" maxlength="7"  value="' + a3.toFixed(2) + '""  readonly /></div></td>'+
'</tr>'+
'<tr bgcolor="#F8FAFA">'+
'<td>&nbsp;&nbsp;&nbsp;A4</td>'+
'<td>&nbsp;Despesa com Assist&ecirc;ncia Judici&aacute;ria por Habitante (R$)</td>'+
'<td><div align="center"><input name="a4" type="text" class="buttons" id="a4" size="7" maxlength="7"   value="' + a4.toFixed(2) + '"" readonly /></div></td>'+
'</tr>'+
'</table>'+
'</fieldset>'+
'</td>'+
'</tr>'+
'</table>'+
'<table class="buttons" width="470" border="0">'+
'<tbody>'+
'<tr>'+
'<td width="100%" bgcolor="#ccd0e3"><div align="center">Pressione os bot&otilde;es ao lado para imprimir ou salvar</div></td>'+
'<td><button class="buttons" onclick="oW.print();return false">Imprimir</button></td>'+
'<td><button class="buttons" onclick="self.print();return false">Salvar</button></td>'+
'</tr>'+
'</tbody>'+
'</table>'+
'</table>'+
'</form>'+
'</body>'+
'</html>';
 
/*msg = 'INDICADORES DE DESPESA:\n\n'
msg = msg + '---------------------------------------------------------\n'
msg = msg + 'Despesa Total sobre o PIB Estadual                 : ' + g1.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa Total sobre a Despesa Pública              : ' + g2.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Pessoal sobre a Despesa total          : ' + g3.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Bens e Serviços sobre a Despesa Total  : ' + g4.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa de Pessoal e Encargos sobre a Despesa Total: ' + g5.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Custeio e Capital sobre a Despesa Total: ' + g6.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa Total por Número de Habitantes             : ' + 'R$ ' + g7.toFixed(2) + '\n'
msg = msg + 'Gastos com Informática: ' + inf1.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Assistência Judiciária sobre o PIB Estadual: ' + a1.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Assistência Judiciária sobre Despesa Pública Total: ' + a2.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Assistência Judiciária sobre Despesa Total: ' + a3.toFixed(2) + '%' + '\n'
msg = msg + 'Despesa com Assistência Judiciária por Habitante: ' + a4.toFixed(2) + '%' + '\n'
*/


//alert(msg)
 
return false;


}	


	
</script>

<form action="" method="get" name="formdespesa" id="formdespesa" onsubmit="return checkind();">
<input name="IdUser" type="hidden" value="0" />
<input name="IdModule" type="hidden" value="0" />
<input name="IdCourt" type="hidden" value="0" />
<input name="campo" type="hidden" value="" />
<!-- load values from insumes table -->
<input name="pib" type="hidden" id="pib" value="557197780000" />
<input name="h" type="hidden" id="h" value="40442795" />  
<input name="gt" type="hidden" id="gt" value="65724833218" />

   <table width="100%" align="center" border="0">
      <tr valign="top" bgcolor="#ccd0e3">
        <td bgcolor="#ccd0e3">Preencha os dados abaixo:</td>
   	  </tr>
    <tr valign="top" bgcolor="#f8fafa">
        <td bgcolor="#f8fafa">
	<table class="buttons" width="100%" align="center" border="0">
    <tr>
        <td width="100%">
    <fieldset>
            <legend>&nbsp;Dados das Despesas do Tribunal:&nbsp;</legend>
            <br />
      
	   <table width="342" class="tdfield" border="0">
           <tr>
           <td width="25%" id="t_iddatebegin"><span onmouseover="ddrivetip('Entre com a data inicial dos dados informados.', 130); this.style.cursor='pointer'";
			 onmouseout="hideddrivetip()">Data Inicial:</span></td>
			 <td width="75%" id="t_iddateend"><span onmouseover="ddrivetip('Entre com a data final dos dados informados.', 130); this.style.cursor='pointer'";
			onmouseout="hideddrivetip()">Data Final:</span></td>
		   <tr>
		   <td><input name="iddatebegin" type="text" class="buttons" value="01/01/2005" size="10" maxlength="10" readonly /></td>
           <td><input name="iddateend" type="text" class="buttons" value="31/12/2005" size="10" maxlength="10" readonly /></td>
			</tr>
           </table>
    <table bgcolor="#F0F1F7" class="tdfield">
	   <tr valign="middle">
             <td width="293"><div align="center"><strong>Despesa Total Liquidada </strong></div></td> 
             <td width="75"><div align="center"><strong>Em R$</strong></div></td>
	     </tr>
		<tr bgcolor="#F8FAFA">
		<td id="t_dpj"><span onMouseover="ddrivetip('Despesas efetivamente realizadas, considerando como despesa realizada, o or&ccedil;amento liquidado no per&iacute;odo-base (ano ou semestre) pelo Tribunal, exclu&iacute;dos os gastos com precat&oacute;rios judiciais e requisi&ccedil;&otilde;es de pequeno valor (RPV) e despesas de exerc&iacute;cios anteriores no per&iacute;odo-base (ano ou semestre).', 330); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Dpj - Despesa Total da Justi&ccedil;a no per&iacute;odo</span></td>
        <td><div align="center"><input name="dpj" type="text" class="buttons" id="dpj" size="15" onblur="formatNumber('dpj');"/></div></td>
		</tr>
    </table>
      <table bgcolor="#F0F1F7" class="tdfield">
	   <tr valign="middle">
       <td width="293"><div align="center"><strong>Composi&ccedil;&atilde;o da Despesa Total da Justi&ccedil;a</strong></div></td>
	   <td width="75"><div align="center"><strong>Em R$ </strong></div></td>
	   </tr>
       
	   <tr bgcolor="#F8FAFA">
	     <td><div align="center"><strong>Dpj = Pe + Cca </strong></div></td>
	     <td>&nbsp;</td>
	     </tr>
	   <tr bgcolor="#F8FAFA">
	   <td id="t_pe" width="293"><span onMouseover="ddrivetip('Todas as despesas de &iacute;ndole remunerat&oacute;ria para os servidores ativos e inativos do quadro permanente, exclu&iacute;das as despesas de exerc&iacute;cios anteriores, pagas a conta dos recursos consignados ao Tribunal no or&ccedil;amento do Estado no per&iacute;odo-base (ano ou semestre).', 320); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Pe - Despesas com Pessoal e Encargos</span></td>
              <td><div align="center">
                <input name="pe" type="text" class="buttons" id="pe" size="15" onblur="formatNumber('pe');"/>
              </div></td>
              </tr>
	   <tr bgcolor="#F8FAFA">
	   <td id="t_cca"><span onMouseover="ddrivetip('Todas as despesas com custeio e capital, inclu&iacute;das as despesas relativas a pessoal e a encargos dos servidores que n&atilde;o integram o quadro permanente, pagas a conta dos recursos consignados ao Tribunal no or&ccedil;amento do Estado no per&iacute;odo-base (ano ou semestre), exclu&iacute;das as despesas de exerc&iacute;cios anteriores.', 350); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Cca - Despesas com Custeio e Capital</span></td>
              <td><div align="center">
                <input name="cca" type="text" class="buttons" id="cca" size="15" onblur="formatNumber('cca');"/>
              </div></td>
              </tr>
		<tr bgcolor="#F8FAFA">
		<td id="t_aiar"><div align="center"><strong>Dpj = Prh + Bs</strong></div></td>
              <td>&nbsp;</td>
              </tr>
		<tr bgcolor="#F8FAFA">
		<td id="t_prh"><span onMouseover="ddrivetip('Todas as despesas relacionadas a recursos humanos, independentemente da nomenclatura adotada (gratifica&ccedil;&atilde;o, adicional, di&aacute;rias, passagens, representa&ccedil;&atilde;o, verba de gabinete, etc.), tanto para servidores ativos quanto para inativos e instituidores de pens&atilde;o, servidores que n&atilde;o integram o quadro efetivo e terceirizados (inclusive estagi&aacute;rios), pagas a conta dos recursos consignados ao Tribunal no or&ccedil;amento do Estado no per&iacute;odo-base (ano ou semestre), exclu&iacute;das as despesas de exerc&iacute;cios anteriores.', 380); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Prh - Despesas com Pessoal (recursos humanos)</span></td>
              <td><div align="center">
                <input name="prh" type="text" class="buttons" id="prh" size="15" onblur="formatNumber('prh');"/>
              </div></td>
              </tr>
		<tr bgcolor="#F8FAFA">
		<td id="t_bs"><span onMouseover="ddrivetip('Todas as despesas com outros custeios e de capital, exclu&iacute;das as despesas relativas &agrave; pessoal (Prh) e despesas de exerc&iacute;cios anteriores, pagas a conta dos recursos consignados ao Tribunal no or&ccedil;amento do Estado no per&iacute;odo-base (ano ou semestre).', 300); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Bs - Despesas com Bens e Servi&ccedil;os</span></td>
              <td><div align="center">
                <input name="bs" type="text" class="buttons" id="bs" size="15" onblur="formatNumber('bs');"/>
              </div></td>
              </tr>
		</table>
		<table bgcolor="#F0F1F7" class="tdfield">
		<tr>
		  <td width="293"><div align="center"><strong>Despesa com Inform&aacute;tica</strong></div></td>
		  <td width="75"><div align="center"><strong>Em R$</strong></div></td>
		  </tr>
		<tr bgcolor="#F8FAFA">
		  <td id="t_ginf"><span onMouseover="ddrivetip('Todos os gastos com inform&aacute;tica, inclusive os de origem extra-or&ccedil;ament&aacute;ria (fundos, conv&ecirc;nios, etc.) no per&iacute;odo-base (ano ou semestre).', 270); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;Ginf - Gasto total com inform&aacute;tica no per&iacute;odo</span></td>
		  <td><div align="center"><input name="ginf" type="text" class="buttons" id="ginf" size="15" onblur="formatNumber('ginf');"/></div></td>
		  </tr>
       </table>
     <table bgcolor="#F0F1F7" class="tdfield">
		<tr>
		  <td width="293"><div align="center"><strong>Despesa com Assist&ecirc;ncia Judici&aacute;ria Gratuita </strong></div></td>
		  <td width="75"><div align="center"><strong>Em R$</strong></div></td>
		  </tr>
		<tr bgcolor="#F8FAFA">
		  <td id="t_jg"><span onMouseover="ddrivetip('Todas as despesas com assist&ecirc;ncia judici&aacute;ria gratuita, incluindo remunera&ccedil;&atilde;o de defensores dativos, tradutor/int&eacute;rprete, peritos e conv&ecirc;nios com a OAB que implicaram em repasse de verbas do Tribunal no per&iacute;odo-base (ano ou semestre).', 360); this.style.cursor='pointer'"; onMouseout="hideddrivetip()">&nbsp;&nbsp;&nbsp;&nbsp;JG - Assist&ecirc;ncia Judici&aacute;ria gratuita </span></td>
		  <td><div align="center"><input name="jg" type="text" class="buttons" id="jg" size="15" onblur="formatNumber('jg');" /></div></td>
		  </tr>
       </table>
	  </fieldset>
         </td></tr>
         </table>
         <table class="buttons" width="435" border="0">
             <tbody>
             <tr>
                <td align="middle" width="100%" bgcolor="#ccd0e3"><div align="center">Pressione o bot&atilde;o ao lado para calcular </div></td>
                <td><span onMouseover="ddrivetip('Calcular os Indicadores', 120); this.style.cursor='pointer'"; onMouseout="hideddrivetip()"><input name="Submit" type="submit" class="buttons" value="Calcular" />
                </span></td>
			</tr>
		   </tbody>
		</table>
      </table>
      <hr align="center" width="100%" noshade="noshade" size="1" />
	  
      <table class="buttons" width="100%" bgcolor="#fcfcfe" border="0">
       <tbody>
        <tr>
        <td>&nbsp;&nbsp;D&uacute;vidas, coment&aacute;rios e sugest&otilde;es, enviar e-mail para 
       <a href="mailto:estatistica@cnj.gov.br">estatistica@cnj.gov.br</a></td>
	    </tr>
	   </tbody>
	 </table>
</form>

<script>
// form fields description structure
var a_fields = {
	'iddatebegin':{'l':'Data Inicial','r':true,'f':'date','t':'t_iddatebegin'},
	'iddateend':{'l':'Data Final','r':true,'f':'date','t':'t_iddateend'},
	'dpj':{'l':'Despesa Total da Justiça','r':true,'t':'t_dpj'},
	'pe':{'l':'Pe - Despesa com Pessoal e Encargos','r':true,'t':'t_pe'},
	'cca':{'l':'Cca - Despesa com Custeio e Capital','r':true,'t':'t_cca'},
	'prh':{'l':'Prh - Despesa com Pessoal (recursos humanos)','r':true,'t':'t_prh'},
	'bs':{'l':'BS - Despesa com Bens e Serviços','r':true,'t':'t_bs'},
	'ginf':{'l':'Ginf - Gastos com Informática','r':true,'t':'t_ginf'},
	'jg':{'l':'JG - Assistência Judiciária Gratuita','r':true,'t':'t_jg'}
},

o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
}

// validator constructor call
var v = new validator('formdespesa', a_fields, o_config);

</script>
</body>
</html>