<!-- 
function AbreMenu(pag) {
document.location = pag;
}

//***********************************************************************
function LocURL(url) {
if (url != "") 
{ document.location = (url); }
}
//***********************************************************************
function LocURLMA(url) {
if (url != "") 
{ document.location = ('Admin.asp?Pag='+url); }
}
//***********************************************************************
function IrParaEvento(idEvento) {
if (idEvento != "") 
{ document.location = ('Galeria.asp?idcat='+idEvento); }
}
//***********************************************************************
function AbreJanela(theURL,winName,features) 
{ 
window.open(theURL,winName,features);
}

//***********************************************************************
function AbreJanelaPop(aPag,oNome,w,h) { //v2.0
var top; var left; var width; var height;
width  = w;
height = h;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela(aPag,oNome,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
function AbreNovaJanelaFull(url,Nome) {
var width; var height;
height = (screen.height);
width  = (screen.width) - 8;
if (url != "") 
{
window.open(url,Nome,'status=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height+',left=0,top=0','fullscreen = yes'); }
//window.open(url, 'jan_'+Nome, 'fullscreen=yes,scrollbars=auto');
//{ window.open(url,Nome,'status=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height+',left=0,top=0','fullscreen = yes'); }
}
//***********************************************************************


function ComfirmaRedireciona(aPag,aMsg) {
if(confirm(aMsg)){
    document.location = aPag;
} else {
	return; //document.write("Cancelado!");
}

}
//***********************************************************************
function AbreEvento(oID,numfotos) { //v2.0
var top; var left; var width; var height;
//width  = 556;
//height = 515;
width  = 604;
height = 542;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Fotos_Frame.asp?idEvento='+oID+'&nFotos='+numfotos,'Evento_'+oID,'status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
function AbreIndicarEvento(theID,NFotos,FotoAnexa,Acao) { //v2.0
var top; var left; var width; var height;
width  = 440;
height = 390;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Evento_Acoes_Indicoes.asp?idEvento='+theID+'&NFotos='+NFotos,'IndicarEvento_'+theID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

//***********************************************************************
function AbreEventoPop(oID) { //v2.0
var top; var left; var width; var height;
//width  = 556;
//height = 515;
width  = 692;
height = 552;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Fotos_Frame.asp?idEvento='+oID,'Evento_'+oID,'status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
function AbreNoticiaPopup(theID) { //v2.0
var top; var left; var width; var height;
width = 680;
height = 460;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Noticia_Popup.asp?Noticia='+theID,'Noticia_'+theID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
function AbreReceitaPopup(theID) { //v2.0
var top; var left; var width; var height;
width = 680;
height = 460;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Receita_Popup.asp?Receita='+theID,'Receita_'+theID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

//***********************************************************************
function AbreFotoRec(oID) { //v2.0
var top; var left; var width; var height;
//width  = 556;
//height = 515;
width  = 690;
height = 540;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Leitor_FotoRecPopUp.asp?ID='+oID,'Foto_'+oID,'status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
	var tam = 10;
	function mudaFonte(tipo){
		if (tipo=="mais") {
			if(tam<30) tam+=2;
			//createCookie('fonte',tam,365);
		} else {
			if(tam>10) tam-=2;
			//createCookie('fonte',tam,365);
		}
		document.getElementById('txtnews').style.fontSize = tam+'px';
	}
	
//====================================================================
function MenuOver(obj)
{
obj.className='tdMenuOver';
}

function MenuOut(obj)
{
obj.className='';
}
//-------------------------------------------------------------------------------------
function AbreEnquete(url, width, height)
{
window.open(url,"_blank","resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height)
}

function Fun_Enviar(formID,tipo,strAdd)
{
	var formularios = document.forms.length;
	for(i=0;i<formularios;i++)
		{
		if(document.forms[i].name==formID)
		{
		var formulario = i;
		break;
		}
	}
	var num_respostas = document.forms[formulario].opcao.length;
	var resposta = num_respostas;
	var respostas = "";
	for(i=0;i<num_respostas;i++)
		{
		if(document.forms[formulario].opcao[i].checked)
			{
			resposta = i;
			if(respostas)
			{
				respostas=respostas + "&";
			}
			else
			{
				respostas=respostas + "?";
			}
			respostas=respostas + "opcao=" + document.forms[formulario].opcao[i].value;
		}
	}
	if(resposta==num_respostas)
	{
	alert("Uma opção deve ser escolhida!");
	}
	else
	if (tipo == 1) 
	{
    var top; var left; var width; var height; var strAdd2;
    strAdd2 =  strAdd;
	width   = 620;
    height  = 520;
    top     = (screen.height/2)-(height/1.6);
    left    = (screen.width/2)-(width/2);
	AbreEnquete("Enquete.asp" + respostas + strAdd2,'Eqt_'+formID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
//	AbreEnquete("Enquete_Acoes.asp" + respostas + strAdd2,'Eqt_'+formID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
//	AbreEnquete("Enquete_Acoes.asp" + respostas,width,height);
	}
	else
	
    {    window.location = "Enquete_Acoes.asp" + respostas+strAdd; }
}
//-------------------------------------------------------------------------------------
function EnquetePopup(idE)
{
    var top; var left; var width; var height;
    width  = 620;
    height = 520;
    top    = (screen.height/2)-(height/1.6);
    left   = (screen.width/2)-(width/2);
	AbreJanela("Enquete.asp?ID="+idE,'Eqt_'+idE,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//-------------------------------------------------------------------------------------
function EnquetePopupParcial(idE)
{
    var top; var left; var width; var height;
    width  = 620;
    height = 520;
    top    = (screen.height/2)-(height/1.6);
    left   = (screen.width/2)-(width/2);
//	AbreEnquete("Enquete_PopUp.asp?ID=" + idE,width,height);
	AbreJanela("Enquete_Popup.asp?ID="+idE,'Eqt_'+idE,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

//-------------------------------------------------------------------------------------
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-------------------------------------------------------------------------------------


//***********************************************************************
function playFullscreen(WM) {
if (3 == document.WM.playState) {
document.WM.fullscreen = 'true';
}
document.WM.controls.play();
}

function playFullscreen2() {
if (3 == MediaPlayer.playState) {
MediaPlayer.fullscreen = 'true';
}
MediaPlayer.controls.play();
}

//***********************************************************************
function PostaTextoNaDiv(Texto,idDiv){
var Div = document.getElementById(idDiv);
if( Div != ''){
Div.innerHTML = Texto;	
}	
}
//***********************************************************************
//***********************************************************************
function AlterarClasseCSS(id,classe) {
document.getElementById(id).className = classe;
}
//***********************************************************************
function MostraEsconde(id){
	if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id).style.display = 'block';
	}else{
			document.getElementById(id).style.display = 'none';
	}	
}
//***********************************************************************
function Mostra(id){
	if(document.getElementById(id).style.display == 'none')
	{
		document.getElementById(id).style.display = 'block';
	}
}
//***********************************************************************
function Esconde(id){
	if(document.getElementById(id).style.display == 'block')
	{
		document.getElementById(id).style.display = 'none';
	}
}
//***********************************************************************
//***********************************************************************
function MostraMensagem(aMsg) {
alert(aMsg);
return; 
} 	
//***********************************************************************


// -->