<!--
//#############################################################
msg	= "Todos os campos marcados com * devem ser preenchidos.";
//#############################################################
function vld_comentarios(){
	with(document.formComments){
		if(comNome.value.length == 0){
			alert(msg);
			comNome.focus();
			return false;
		}
		if(comEmail.value.length == 0){
			alert(msg);
			comEmail.focus();
			return false;
		}else{
			if(!vld_email(comEmail.value)){
				alert('O e-mail informado não é válido.');
				comEmail.focus();
				return false;
			}
		}
		if(comMensagem.value.length == 0){
			alert(msg);
			comMensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function vld_enquete(){
	with(document.form1){
		checado = false;
		for(var i=0; i<elements.length; i++){
			if(elements[i].type == 'radio'){
				if(elements[i].checked == true){
					checado = true;
				}
			}
		}
		if(!checado){
			alert('Selecione uma das respostas.');
			return false;
		}
	}
	return true;
}
//#############################################################
function vld_envie(){
	with(document.form1){
		if(remNome.value.length == 0){
			alert(msg);
			remNome.focus();
			return false;
		}
		if(remEmail.value.length == 0){
			alert(msg);
			remEmail.focus();
			return false;
		}else{
			if(!vld_email(remEmail.value)){
				alert('O e-mail informado não é válido.');
				remEmail.focus();
				return false;
			}
		}
		if(desNome.value.length == 0){
			alert(msg);
			desNome.focus();
			return false;
		}
		if(desEmail.value.length == 0){
			alert(msg);
			desEmail.focus();
			return false;
		}else{
			if(!vld_email(desEmail.value)){
				alert('O e-mail informado não é válido.');
				desEmail.focus();
				return false;
			}
		}
	}
	return true;
}
//#############################################################
// ALTERA O TAMANHO DAS FONTES
var curSizes = new Array();
function changeFontSize(action, module){

	// MÓDULO DIREITO - TAGS QUE DEVEM SER MODIFICADAS
	var tags_1 = new Array('h2','h3','h4','h5','li','p','div');
	var sizes_1 = new Array(22,16,14,13,12,12,12);

	var tags = eval('tags_'+module);
	var sizes = eval('sizes_'+module);
	for(i=0; i<tags.length; i++){
		if(isNaN(curSizes[i])){
			curSizes[i] = sizes[i];
		}
		newSize = curSizes[i] + (action * 2);
		if(newSize <= (sizes[i]*2) && newSize >= sizes[i]){
			curSizes[i] = newSize;
			var objs = document.getElementById('content').getElementsByTagName(tags[i]);
			for(j=0; j<objs.length; j++){
				objs[j].style.fontSize = newSize + 'px';
			}
		}
	}

};
//#############################################################
function exibeMultimidiaBox(div){
	if(div == 'box_entrevista'){
		document.getElementById('box_audiovideo').style.display = 'none';
		document.getElementById('box_entrevista').style.display = 'block';
		document.getElementById("b_box_audiovideo").className = "";
		document.getElementById("b_box_entrevista").className = "ativo";
	}else if(div == 'box_audiovideo'){
		document.getElementById('box_entrevista').style.display = 'none';
		document.getElementById('box_audiovideo').style.display = 'block';
		document.getElementById("b_box_entrevista").className = "";
		document.getElementById("b_box_audiovideo").className = "ativo";
	}
}
//#############################################################
function exibeAgendaBox(div){
	if(div == 'box_cinema'){
		document.getElementById('box_teatro').style.display = 'none';
		document.getElementById('box_shows').style.display = 'none';
		document.getElementById('box_cinema').style.display = 'block';
		document.getElementById("b_box_teatro").className = "";
		document.getElementById("b_box_shows").className = "";
		document.getElementById("b_box_cinema").className = "ativo";
	}else if(div == 'box_teatro'){
		document.getElementById('box_cinema').style.display = 'none';
		document.getElementById('box_shows').style.display = 'none';
		document.getElementById('box_teatro').style.display = 'block';
		document.getElementById("b_box_shows").className = "";
		document.getElementById("b_box_cinema").className = "";
		document.getElementById("b_box_teatro").className = "ativo";
	}else if(div == 'box_shows'){
		document.getElementById('box_cinema').style.display = 'none';
		document.getElementById('box_teatro').style.display = 'none';
		document.getElementById('box_shows').style.display = 'block';
		document.getElementById("b_box_cinema").className = "";
		document.getElementById("b_box_teatro").className = "";
		document.getElementById("b_box_shows").className = "ativo";
	}
}
//#############################################################
function exibeDiv(div){
	if(document.getElementById(div).style.display == 'block'){
		document.getElementById(div).style.display = 'none';
	}else{
		document.getElementById(div).style.display = 'block';
	}
}
//#############################################################
function load_swf(ban_widht,ban_height,ban_swf){
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + ban_widht + '" height="' + ban_height + '">');
	document.writeln('  <param name="movie" value="' + ban_swf + '">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <embed src="' + ban_swf + '" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + ban_widht + '" height="' + ban_height + '"></embed>');
	document.writeln('</object>');
}
//#############################################################
function vld_newsletter(){
	with(document.formNews){
		if(newAssEmail.value.length == 0 || newAssEmail.value == 'E-mail'){
			alert('Você precisa informar seu e-mail.');
			newAssEmail.focus();
			return false;
		}else{
			if(!vld_email(newAssEmail.value)){
				alert('O e-mail informado não é válido.');
				newAssEmail.focus();
				return false;
			}
		}
	}
	return true;
}
//#############################################################
function vld_email(email){
	var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
	if(er.test(email)){
		return true;
	}else{
		return false;
	}
}
//#############################################################
// CALENDÁRIO
function createQCObject() { 
   var req; 
   if(window.XMLHttpRequest){ 
	  // Firefox, Safari, Opera... 
	  req = new XMLHttpRequest(); 
   } else if(window.ActiveXObject) { 
	  // Internet Explorer 5+ 
	  req = new ActiveXObject("Microsoft.XMLHTTP"); 
   } else { 
	  alert('Problem creating the XMLHttpRequest object'); 
   } 
   return req; 
} 
// Make the XMLHttpRequest object 
var http = createQCObject(); 
function displayQCalendar(par,m,y) {
	var ran_no=(Math.round((Math.random()*9999))); 
	http.open('get', '/inc/calendar.php?par='+par+'&m='+m+'&y='+y+'&ran='+ran_no);
	http.onreadystatechange = function() {
		if(http.readyState == 4 && http.status == 200) { 
			var response = http.responseText;
			if(response) { 
				document.getElementById("calendar").innerHTML = http.responseText; 
			} 
		} 
	} 
	http.send(null); 
}
//#############################################################
function MM_openBrWindow(theURL,winName,features){ //v2.0
  window.open(theURL,winName,features);
}
//#############################################################
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//#############################################################
-->