function validaEmail(email){		var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;	if(filter.test(email)){			return true;		}else{			return false;			}}function abreJanela(caminho, largura, altura){	window.open(""+caminho+"","_blank","height = "+largura+", width = "+altura+", status=yes, scrollbars=yes, resizable=yes,");}function suporteAjax () {  var req;          try { req = new ActiveXObject("Microsoft.XMLHTTP"); }  catch ( e ) {        try { req = new ActiveXObject("Msxml2.XMLHTTP"); }        catch ( ex ) {          try { req = new XMLHttpRequest(); }          catch ( exc ) {                return false;          }        }  }          delete req;}function ucwords (str) {    return (str + '').replace(/^([a-z])|\s+([a-z])/g, function ($1) {        return $1.toUpperCase();    });}// Resolvendo o bug do placeholder no IE$(function(){        //  Initialize auto-hint fields    $('INPUT.auto-hint, TEXTAREA.auto-hint').focus(function(){        if($(this).val() == $(this).attr('title')){             $(this).val('');            $(this).removeClass('auto-hint');        }    });        $('INPUT.auto-hint, TEXTAREA.auto-hint').blur(function(){        if($(this).val() == '' && $(this).attr('title') != ''){             $(this).val($(this).attr('title'));            $(this).addClass('auto-hint');         }    });        $('INPUT.auto-hint, TEXTAREA.auto-hint').each(function(){        if($(this).attr('title') == ''){ return; }        if($(this).val() == ''){ $(this).val($(this).attr('title')); }        else { $(this).removeClass('auto-hint'); }     });});
