 //visibilidade
 function toggle( targetId )
 { 
 if (document.getElementById)
	 { 
	 		target = document.getElementById( targetId );
		 	if (target.style.display == "none")
			 
			 {target.style.display = ""; } 
			 
			 else
			 {target.style.display = "none"; }
	}
 }

//FUNCAO2

function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}


//FUNCTION BACK

function goBack()
  {
  window.history.back()
  }


 function OpenWnd(url, w, h)
 {
	var posx, posy;

	posx = (screen.width/2)-(w/2);
	posy = (screen.height/2)-(h/2);

	var wname = url.replace(/[^A-Za-z0-9]/g, '');
	if ( wname.length > 60 )
	{
	  wname = wname.substring(0, 60);
    }
	window.open (url, wname, "screenX=" + posx + ",screenY=" + posy + ",top=" + posy + ",left=" + posx + ",toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,width=" + w + ",height=" + h)
}
