// JavaScript Document
<!--
function abrirjanela(theurl)
			{
						window.open(theurl,'print',"toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=no,resizable=no,copyhistory=no,width=615,height=400");
			}

function abrirjanelaFriend(theurl)
			{
						window.open(theurl,'EnviarAmigo',"toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=no,resizable=no,copyhistory=no,width=400,height=200");
			}
			
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function validateDate () {
 var field = document.getElementById("data1").value;
 var field2 = document.getElementById("data2").value;
 ddate=field.split("-");
 ddate2=field2.split("-");
 if (ddate[1] != ddate2[1]) { alert('Tem de escolher data dentro do mesmo mês') };
}
function rightAd () {

var element;
if (document.all)
element = document.all['tableGeral'];
else if (document.getElementById)
element = document.getElementById('tableGeral');
if (element) {
 //alert(element.offsetWidth);
 element.width = element.offsetWidth - 130;
 element.align = '';
 alert(parseInt(document.body.leftMargin));
 
 var x = (element.width + 15);
   alert(x);
 
 if (document.getElementById) {
 document.getElementById('Layer1').style.left = x;

 document.getElementById('Layer1').style.visibility = "visible";
 }
 else if (document.all) {
 document.all['Layer1'].style.visibility = "visible";
 }
}


}
//-->