// 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});
}

function validaCadas(){
	var msg = '';
        
	if(jQuery('#user_login').val().length == 0) msg += '<li><a href="#user_login">Usu&acute;rio >></a></li>';
	if(jQuery('#user_email').val().length == 0) msg += '<li><a href="#user_email">E-mail >></a></li>';
	if(jQuery('#cimy_uef_1').val().length == 0) msg += '<li><a href="#cimy_uef_1">Nome completo >></a></li>';
	if(jQuery('#cimy_uef_2').val().length == 0) msg += '<li><a href="#cimy_uef_2">CPF >></a></li>';
	if(jQuery('#cimy_uef_4').val().length == 0) msg += '<li><a href="#cimy_uef_4">Data de nascimento >></a></li>';
	if(jQuery('#cimy_uef_5').val().length == 0) msg += '<li><a href="#cimy_uef_5">Ocupa&ccedil;&tilde;o >></a></li>';
	if(jQuery('#cimy_uef_7').val().length == 0) msg += '<li><a href="#cimy_uef_7">Telefone Celular >></a></li>';
	if(jQuery('#cimy_uef_9').val().length == 0) msg += '<li><a href="#cimy_uef_6">Telefone residencial >></a></li>';
	if(jQuery('#cimy_uef_10').val().length == 0) msg += '<li><a href="#cimy_uef_6">Telefone residencial >></a></li>';

	return retornaMsg(msg);
}

function retornaMsg(msg){
	if(msg){
		jQuery('#erro_valida').show('slow');
		//jQuery('#erro_valida').html(msg).show();
		return false;
	}else
		jQuery('#erro_valida').hide('slow');
		return true;
}
