function getHexaRandom(){
    return '#'+Math.floor(Math.random()*16777215).toString(16);
}
jQuery(document).ready(function(){
    jQuery('input[type=file]').click(function(){
        jQuery(this).next().removeAttr('generated');
    });
});
function emailValido(mail){
    var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
    if(typeof(mail) == "string"){
        if(er.test(mail)){
            return true;
        }
    }else if(typeof(mail) == "object"){
        if(er.test(mail.value)){
            return true;
        }
    }else{
        return false;
    }
}
function voltarTopo(){
    $j('html, body').animate({scrollTop:0}, 'fast');
}
