function jancinema(dochtml) {
if (navigator.appName == "Netscape") { sec=window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=350,width=450'); window.sec.focus(); } 
else { window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=350,width=450'); }
}

function janagenda(dochtml) {
if (navigator.appName == "Netscape") { sec=window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=250,width=300'); window.sec.focus(); } 
else { window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=250,width=300'); }
}

function janenquete(dochtml) {
if (navigator.appName == "Netscape") { sec=window.open(dochtml,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=360,width=320'); window.sec.focus(); } 
else { window.open(dochtml,'_blank','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,height=360,width=320'); }
}

function jannews(dochtml) {
if (navigator.appName == "Netscape") { sec=window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=350,width=450'); window.sec.focus(); } 
else { window.open(dochtml,'_blank','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,height=350,width=450'); }
}

function OpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!--
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_validateForm() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve conter um endereço de e-mail válido.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (val!=''+num) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' é necessário o preenchimento.\n'; }
  } if (errors) alert('Ocorreram os seguintes erros no processamento de sua mensagem:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->


<!--
function countChars(form) {

var text1 = document.forum.Nome.value
var text2 = document.forum.Email.value
var text3 = document.forum.Mensagem.value


document.forum.totalChars.value = text1.length
document.forum.msg_total.value = text1
document.forum.totalCounter.value = 1200 - text1.length;

if (text2.length >= 1)
{

document.forum.totalChars.value = text1.length + text2.length
document.forum.totalCounter.value = 1200 - (text1.length + text2.length )
document.forum.msg_total.value = text1;

}

if (text3.length >= 1)
{

document.forum.totalChars.value = text1.length + text2.length + text3.length
document.forum.totalCounter.value = 1200 - (text1.length + text2.length + text3.length)
document.forum.msg_total.value = text1;

}


if (document.forum.totalCounter.value < 1) {
	alert ("Atenção, sua mensagem não deve ter mais de 1200 caracteres")
}

}
//-->

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function imagemleg(width,local,imagem,legenda) {
	document.write("<table border='0' cellspacing='0' cellpadding='0' width='" + width + "' align='" + local + "' valign='top'>");
	document.write("<tr valign='top'><td>");
	document.write("<img src='imagensdb/" + imagem + "' border='0' vspace='0' hspace='0' align='" + local + "'>");
	document.write("</td></tr>");
	document.write("<tr valign='top'><td bgcolor='#000000'>");
	document.write("<font face='arial' size='1' color='#FFFFFF'>");
	document.write("<b>" + legenda + "</b>");
	document.write("</font>");
	document.write("</td></tr>");
	document.write("</table");
}

function StatusBar(msgStr) { //v1.0
  status=msgStr;
  document.ReturnValue = true;
}


function Aspas(teclapres) {
	var tecla = teclapres.keyCode;
	// vr = document.form[campo].value;
	vr = event.srcElement.value;
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	vr = vr.replace( "'", "" );
	event.srcElement.value = vr
}


function AbreTeSesamo(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
{
newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
}

function AbreTeSesamo2(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=yes,left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
{
newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' alt=\"'+alt+'\">'); 	}
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
}