/*

	[	Desenvolvimento	 ]
		Filter Netmarketing
		www.filter.com.br
		falecom@filter.com.br
		47. 326 3742

	[	Responsável	]
		Marco Aurélio Neuwiem
		marco@filter.com.br
		07/2004
*/

function indicar(local){
	alert(local);
}

function aovivo(){

w = 550;
h = 530;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../aovivo/index.php','POP_AOVIVO','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=yes, toolbar=no,directories=no,menubar=no');


/*janela = window.open('http://terramundo.terra.com.br/video.htm?canal=114041','_blank');*/
janela.focus();
}

function muda_css(obj,classe){
if (document.all){elemento=event.srcElement;}
else if (document.getElementById){elemento=obj.target;}
elemento.className=classe;}

function vai(selObj)	{
	valor = selObj.options[selObj.selectedIndex].value;
		if(valor != "#")	{
			self.location = valor;
		}
}

function pop_video(gv_chave){
w = 500;
h = 340;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../galeria_video/pop_video.php?gv_chave='+gv_chave,'POP_VIDEO','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function pop_fotos(gf_chave){
w = 700;
h = 430;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../galeria_fotos/pop_fotos.php?gf_chave='+gf_chave,'POP_FOTOS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function vai_noticia(nt_chave){
	janela2 = window.opener.location = '../noticias/index.php?nt_chave='+nt_chave;
	self.close();
}

function indicar_video(gv_chave){
	window.opener.location = '../galeria_video/indique.php?gv_chave='+gv_chave;
	self.close();
}

function verifica_busca(){
	q = form_busca.q.value.length;
		if(q <3){
			alert("Você deve digitar uma palavra com mais de 3 dígitos.");
			form_busca.q.focus();
			return false;
		}
}


