<!-- 
//***********************************************************************
function wst(){
window.status="» AmauriVerdan.com Fev-2008 // Desenvolvimento: leandrorocha.com - soluções para web.";
window.setTimeout("wst()",2);
}
wst();
//***********************************************************************

function LocURL(url) {
if (url != "") 
{ document.location = (url); }
}
//***********************************************************************
function IrParaEvento(idEvento) {
if (idEvento != "") 
{ document.location = ('Galeria.asp?Evento='+idEvento); }
}
//***********************************************************************
function AbreJanela(theURL,winName,features) 
{ window.open(theURL,winName,features); }

//***********************************************************************
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'); }
}
//***********************************************************************
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 ComfirmaRedireciona(aPag,aMsg) {
if(confirm(aMsg)){
    document.location = aPag;
} else {
	return; //document.write("Cancelado!");
}

}
//***********************************************************************
function AbreEventoPop(oID,numfotos,aPasta) { //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+'&nFotos='+numfotos,'Evento_'+oID,'status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

//***********************************************************************
function AbreIndicarEvento(theID,NFotos) { //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('IndicarEvento.asp?idEvento='+theID+'&NFotos='+NFotos,'IndicarEvento_'+theID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************
function AbreIndicarFotoEvento(theID,aFoto) { //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('IndicarFotoEvento.asp?idEvento='+theID+'&Foto='+aFoto,'IndicarFotoEvento_'+theID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
//***********************************************************************

function AbreVideo(oID) { //v2.0
var top; var left; var width; var height;
width  = 445;
height = 520;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Video_Popup.asp?ID='+oID,'Videos_'+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 goTo(form) {
var myindex = form.dest.selectedIndex;
var IdCat   = (form.dest.options[myindex].value);

if (IdCat != "") 
{ document.location = ('FotosFestas.asp?idCat='+IdCat); }
else
{ document.location = ('FotosFestas.asp.asp'); }
}
//***********************************************************************
function AbreEvento(theID) { //v2.0
document.location = ('Galeria.asp?Evento='+theID);
}
//***********************************************************************
function AbreDicaVideo(theID) { //v2.0
document.location = ('DicasVideo_Ver.asp?ID='+theID);
}
//***********************************************************************
function AbreGarotaMes(theID) { //v2.0
document.location = ('GarotaMes_Galeria.asp?ID='+theID);
}
//***********************************************************************
function GeraStatusEvento(Evento) 
{ //window.status = "Abrir Evento: " + Evento; 
}
//***********************************************************************
function goToEvento(form) {
var myindex  = formTop.destevento.selectedIndex;
var IdEvento = (formTop.destevento.options[myindex].value);

if (IdEvento != "") {
document.location = ('Galeria.asp?Evento='+IdEvento);
}
else
{ document.location = ('Galeria.asp'); }
}
//***********************************************************************
function TopFoto(foto,theID) {
	document.topfoto.src = foto;
	//document.topfotoGeraVisita.src = 'GarotaMes_Gera_Visitas.asp?ID='+theID;
	//document.topif.src = 'GarotaMes_Gera_Visitas.asp?ID='+theID;
	return;
}

//-------------------------------------------------------------------------------------
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)
{
	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;
    width  = 500;
    height = 420;
    top    = (screen.height/2)-(height/1.6);
    left   = (screen.width/2)-(width/2);
	AbreEnquete("Enquete_Acoes.asp" + respostas,'Eqt_'+formID,'status=yes,scrollbars=yes,width='+width+',height='+height+',left='+left+',top='+top);
	}
	else
	
    {
    window.location = "Enquete_Acoes.asp" + respostas;
	}
}
//-------------------------------------------------------------------------------------
function EnquetePopup(idE)
{
    var top; var left; var width; var height;
    width  = 500;
    height = 420;
    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  = 500;
    height = 420;
    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 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('Usuario_FotoRecPopUp.asp?ID='+oID,'Foto_'+oID,'status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
function AbreAddRecadoMural(Acao) { //v2.0
var top; var left; var width; var height;
width  = 600;
height = 540;
top = (screen.height/2)-(height/1.6);
left = (screen.width/2)-(width/2);
AbreJanela('Mural_ADD.asp?Acao='+Acao,'Msg_'+Acao,'status=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]+"'");
}
//-------------------------------------------------------------------------------------

// -->
