	window.onLoad = function(){ 
		if (document.getElementsByTagName) { 
			var objs = document.getElementsByTagName("object"); 
			for (i=0; i<objs.length; i++) { 
				objs[i].outerHTML = objs[i].outerHTML; }}} 
	
	window.onunload = function() { 
		if (document.getElementsByTagName) { 
			var objs = document.getElementsByTagName("object"); 
			for (i=0; i<objs.length; i++) { 
				objs[i].outerHTML = ""; }}}
				
	function getID(ID) {
		return document.getElementById(ID);}
	
	function alertMSGS(erro){
		alert(erro);}
		
	function focar(obj){
		var obj = getID(obj);
		obj.focus();}
	
	function popIT(pagina, largura, altura) {
	   var esquerda = (screen.width - largura)/2;
	   var topo = (screen.height - altura)/2;
	   window.open(pagina,'','height=' + altura + ', width=' + largura + ', top=' + topo + ', left=' + esquerda + ',status=YES'); }
	
	function popITscroll(pagina, largura, altura) {
	   var esquerda = (screen.width - largura)/2;
	   var topo = (screen.height - altura)/2;
	   window.open(pagina,'','height=' + altura + ', width=' + largura + ', top=' + topo + ', left=' + esquerda + ', status=YES, scrollbars=yes'); }
	
	function requestUser(ender){
		var conf = confirm("Deseja realmente excluir esse registro?");
		if(conf){
			location.href=ender;}}
			
	function refreshFather(){
		window.opener.location.reload();}
	
	function endF(){
		window.close();}
	
	function preLoader() {
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=preLoader.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
	
	function changeON(id){
		sht = document.getElementById(id);
		sht.style.cursor = 'hand';
		sht.className = "mOVER";}

	function changeOFF(id){
		sht = document.getElementById(id);
		sht.style.cursor = 'hand';
		sht.className = "mNRML";}

	function direct(url){
		window.location.href= url;}