function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ChecaTodos()
{
	for (var i=0;i<document.form.elements.length;i++)
        {
            var e = document.form.elements[i];
        	e.checked=(!e.checked)
        }
 }

function MM_excluir_unico(theURL) { //v2.0
 if (confirm('O item selecionado será excluído.\nDeseja continuar ?'))
  	{
		url = theURL
		window.location.href(url);
  	}
}
  
function MM_excluir(theURL) { //v2.0
 if (confirm('O(s) item(ns) selecionado(s) será(ão) excluído(s).\nDeseja continuar ?'))
  	{
		VFormObj = document.form; 
		numero = VFormObj.elements.length; 
		for(i = 0; i < numero; i++) 
		{ 
			var selecionados; 
			if(VFormObj.elements[i].checked == true) 
			{ 
				if (selecionados == null) 
				{ 
					selecionados=VFormObj.elements[i].value; 
				} 
				else 
				{ 
					selecionados=selecionados + "," + VFormObj.elements[i].value; 
				} 
			} 
		} 
		
		url = theURL + '?id=' + selecionados

	 	window.location.href(url);

  	}
}

function MM_excluir_p(theURL,parametros) { //v2.0
 if (confirm('O(s) item(ns) selecionado(s) será(ão) excluído(s).\nDeseja continuar ?'))
  	{
		VFormObj = document.form; 
		numero = VFormObj.elements.length; 
		for(i = 0; i < numero; i++) 
		{ 
			var selecionados; 
			if(VFormObj.elements[i].checked == true) 
			{ 
				if (selecionados == null) 
				{ 
					selecionados=VFormObj.elements[i].value; 
				} 
				else 
				{ 
					selecionados=selecionados + "," + VFormObj.elements[i].value; 
				} 
			} 
		} 
		
		url = theURL + '?id=' + selecionados + '&' + parametros

	 	window.location.href(url);

  	}
}

   function fim()
   {
   window.opener.history.go(0)
  self.close()
   }

var posX = 700;
var iniX = posX; 
var velocidade = 12; 


var margem = 1; 
var objeto; 
var podeSubir = true; 

function paraOuContinua(valor) 
{ 
   podeSubir = valor; 
} 

function inicioNoticias(idDiv) 
{ 
   objeto = eval("document.all."+idDiv+".style" ); 
   sobeNoticias(); 
} 

function sobeNoticias() 
{ 
   if( podeSubir ) 
   { 
      if( largura <= (-1* (posX-margem) ) ) 
         posX = iniX; 
      else 
         posX = posX - 1; 
      objeto.left = posX; 
   } 
   setTimeout( "sobeNoticias()",velocidade); 
} 
