/* function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

window.name = 'RespWin';
function PopUp(url, tscrollbars, width, height){
var scrollbars='no';
flwin = window.open(url,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+tscrollbars+',resizable=no,menubar=no,width='+width+',height='+height)
}

function Contador(comentario,MaxLength) {
      obj = document.getElementById('comentario');
      if (MaxLength !=0) {
         if (obj.value.length > MaxLength)  {
            obj.value = obj.value.substring(0, MaxLength);
            alert ("Número de caracteres excedido! O limite máximo é de 300 caracteres.");
            }
      }
      document.coment.contador.value = obj.value.length + '/300';
   }

*/


   function Contador(field,MaxLength) {
      /* obj = document.all(field); */
      obj = document.getElementById(field);
      if (MaxLength !=0) {
         if (obj.value.length > MaxLength)  {
            obj.value = obj.value.substring(0, MaxLength);
            }
      }
      document.form1.contador.value = obj.value.length + '/1000';
   }



/*
function Valida(){

  if (theForm.name.value.length == "")
  {
    alert("Digite o nome completo");
    theForm.name.focus();
    return (false);
  }
 }
*/