<!--Início Janela Ver Foto Zoom
function ampliar_imagem(URL, width, height) {
	
   var left = 50;
   var top = 50;

   window.open(URL, '', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=auto, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
//-->Termino Janela Ver Foto Zoom

// inicio  valida form webmail
function valida_formwebmail(){
	var user = document.formwebmail.user.value;
	var pass = document.formwebmail.pass.value;
    if(user.indexOf('@') < 2){
		alert('Campo Usuário possui Email inválido.');
		formulario.user.focus();
		return false;
		} else if(pass.length < 2){
		alert('O campo senha deve estar preenchido.');
		formulario.pass.focus();
		return false;
	} else {
		return true;
	}
}
// termino valida form webmail 

// inicio valida form newsletter
function valida_formnewsletter(){
	var nome = document.formulario.nome.value;
	var email = document.formulario.email.value;
    if(nome.length < 2){
		alert('Prencha o campo Nome.');
		formulario.nome.focus();
		return false;
		} else if(email.indexOf('@') < 2){
		alert('Prencha o campo Email com um endereço válido.');
		formulario.email.focus();
		return false;
	} else {
		return true;
	}
}
// termino valida form newsletter 

/* Validação do campo busca de galerias - NÃO ESTÁ SENDO UTILIZADO*/
function ValidaBusca(){
	var buscar = document.form_busca.buscar.value;
	if(buscar.length < 2){
		alert('Digite uma palavra no campo de busca.');
		return false;
	} else {
		return true;
	}
}	

<!-- Pop Rádio Lokodokoko POP -->
	function pop_radio_loko_pop(theURL,winName,features) { 
	  window.open('http://www.lokodokoko.com.br/siteloko/arquivos_internos/radio_loko_pop.php','','scrollbars=no,width=314,height=314, top=50,left=50');
	}
<!-- Pop Rádio Lokodokoko POP -->

<!-- Pop Rádio Lokodokoko LIGHT -->
	function pop_radio_loko_light(theURL,winName,features) { 
	  window.open('http://www.lokodokoko.com.br/siteloko/arquivos_internos/radio_loko_light.php','','scrollbars=no,width=314,height=314, top=50,left=50');
	}
<!-- Pop Rádio Lokodokoko LIGHT -->

<!-- Pop Rádio Lokodokoko SERTANEJO -->
	function pop_radio_loko_nejo(theURL,winName,features) { 
	  window.open('http://www.lokodokoko.com.br/siteloko/arquivos_internos/radio_loko_nejo.php','','scrollbars=no,width=314,height=314, top=50,left=50');
	}
<!-- Pop Rádio Lokodokoko SERTANEJO -->

<!-- Pop Rádio Atual FM Online -->
	function pop_radio_atual(theURL,winName,features) { 
	  window.open('arquivos_internos/radio_atual_fm.php','','scrollbars=no,width=482,height=308, top=10,left=20');
	}
<!-- Pop Rádio Atual FM Online -->

<!-- Pop Rádio Oeste Capital Online -->
	function pop_radio_oeste(theURL,winName,features) { 
	  window.open('arquivos_internos/radio_oeste_online.php','','scrollbars=no,width=482,height=308, top=10,left=20');
	}
<!-- Pop Rádio Oeste Capital Online -->

<!-- Pop Rádio 96 FM Online -->
	function pop_radio_96(theURL,winName,features) { 
	  window.open('arquivos_internos/radio_96_online.php','','scrollbars=no,width=482,height=308, top=10,left=20');
	}
<!-- Pop Rádio 96 FM Online -->

<!-- Pop Chat -->
	function pop_chat(theURL,winName,features) { 
	  window.open('http://www.96fm.fm.br/papo','','scrollbars=yes,width=770,height=600, top=10,left=20');
	}
<!-- Pop Chat -->

<!-- Pop Jingle -->
	function pop_jingle(theURL,winName,features) { 
	  window.open('arquivos_internos/jingle.php','','scrollbars=no,width=450,height=380, top=10,left=20');
	}
<!-- Pop Jingle -->

<!-- Pop Indique o Website -->
	function abrir_indique(theURL,winName,features) { 
	  window.open('arquivos_indique/indique.php','','scrollbars=no,width=410,height=365, top=50,left=50');
	}
<!-- Pop Indique o Website -->

<!--Início Janela Pânico
			function abre_panico(pagina,titulo)
			{
				window.open(pagina,titulo,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,fullscreen=yes')
			}
//-->Termino Janela Pânico

<!-- Pop Copa 2006 -->
function pop_copa2006(theURL,winName,features) {
	var larguratela = screen.width;
	var alturatela = screen.height;
	var largurajanela = 430;
	var alturajanela = 560;
	
	var iniciolargura = (larguratela - largurajanela) / 2;
	var inicioaltura = (alturatela-alturajanela) / 2;
	

   window.open('arquivos_publicidade/hot_site_patrocinio/copa_2006/index.html', '', 'width='+largurajanela+', height='+alturajanela+', top='+inicioaltura+', left='+iniciolargura+',  scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
<!-- Pop Copa 2006 -->

<!-- Pop Azaração -->
function abrir_azaracao(theURL,winName,features) {
	var larguratela = screen.width;
	var alturatela = screen.height;
	var largurajanela = 600;
	var alturajanela = 615;
	
	var iniciolargura = (larguratela - largurajanela) / 2;
	var inicioaltura = (alturatela-alturajanela) / 2;
	

   window.open('arquivos_azaracao/index.php', '', 'width='+largurajanela+', height='+alturajanela+', top='+inicioaltura+', left='+iniciolargura+',  scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
<!-- Pop Azaração -->

<!-- Pop Galera MSN -->
function abrir_galera_msn(theURL,winName,features) {
	var larguratela = screen.width;
	var alturatela = screen.height;
	var largurajanela = 600;
	var alturajanela = 590;
	
	var iniciolargura = (larguratela - largurajanela) / 2;
	var inicioaltura = (alturatela-alturajanela) / 2;
	

   window.open('arquivos_galera_msn/index.php', '', 'width='+largurajanela+', height='+alturajanela+', top='+inicioaltura+', left='+iniciolargura+',  scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
<!-- Pop Galera MSN -->

<!--Inicio Janela Compra de Ingressos
function Abre(tipo, prodID) {
	var larguratela = screen.width;
	var alturatela = screen.height;
	var largurajanela = 630;
	var alturajanela = 500;
	
	var iniciolargura = (larguratela - largurajanela) / 2;
	var inicioaltura = (alturatela-alturajanela) / 2;
	
	if(tipo == "detalhes")
	url = 'arquivos_ingressos/verdet.php?id=';	
	else
	url = 'arquivos_ingressos/comprar.php?id=';	

   window.open(url + prodID, 'verprod', 'width='+largurajanela+', height='+alturajanela+', top='+inicioaltura+', left='+iniciolargura+',  scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
} 
//-->Termino Janela Compra de Ingressos

<!-- Inicio Janela Central -->
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
<!-- Fim Janela Central -->

//inicio carrega flash
function carregaFlash(caminho,largura,altura)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
document.write('</object>');
}
//final carrega flash

<!-- Inicio Exibe as caixas de diálogo na página -->
function CaixaDialogo(Url,Height,Width)
{
caixa = window.showModalDialog(Url,"Dialog Box Arguments # 1","dialogHeight: "+Height+"px; dialogWidth: "+Width+"px; dialogTop: 150px; dialogLeft: 150px; edge: raised; center: Yes; help: No; resizable: No; scroll:No; status: No;");
eval(caixa);
}
<!-- Fim Exibe as caixas de diálogo na página -->