function resize(idObjReceives, idObjInformation){
    parent.document.getElementById(idObjReceives).height = (parseInt(document.getElementById(idObjInformation).scrollHeight))+'px';
}
function sleep(tempoMilisegundos,func){ 
	$j('body').append("<div id='ctnTempoJquery' style='position:absolute; width:0px; height:0px;'></div>");
	$j('#ctnTempoJquery').fadeOut(tempoMilisegundos,function(){
		if(func!='' && func!=null && func!='undefined') func();
		$j('#ctnTempoJquery').remove();
	});
}

function getUrlVars(){
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i=0;  i<hashes.length;  i++){	
        hash = hashes[i].split('=');
		hash[1]=unescape(hash[1]);
		vars.push(hash[0]);
        vars[hash[0]]=hash[1];
    }
    return vars;
}

function char2html(str) { 	
	for(i = 0; i < str.length; i++){
		str = str.replace('&','-*-');
		str = str.replace(';','ppta');
	}  
	return str;	
}
