// PARA AS POP-UPS
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// AJAX GERAL
CarregaAjax = function(id) {
 pars = "id="+id;
 oAjax = new Ajax.Updater('ajax_cont',id,{parameters:pars,evalScripts:true});
}

tam = 75;

function tamFonte(modo){
  if((tam < 55 && modo == "menos") || (tam > 95 && modo == "mais")){
    alert("Limite");
    return false;
  }
  var x = 10;

  tam=(modo=="mais")?tam+x:tam-x;

  jQuery("body").css("fontSize",tam+"%");
}

function letras(e){

    if (e.keyCode) // Internet Explorer
            var tecla = e.keyCode;
    else if(e.which) // Nestcape
            var tecla = e.which;
            
    if ((tecla > 47 && tecla < 58)) // numeros de 0 a 9
        return false;
    else
        return true;
}
