<!--
/***
** remove espacos em branco do inicio e fim de uma String
** args : String
** return: String
***/
function Trim(str){
	if(typeof(str)=='undefined' || str =='')
		return('');
	return str.replace(/^\s+|\s+$/g,"");
}
/***
** Tenta encontrar um objeto, ou certifica-se que field é um objeto
** args: String, Object;
** return Object, false;
***/
function findel(field){
	var obj = false;
	if(typeof(field) == 'object'){
		return field;
	}
	if(Trim(field) != ''){
		obj = document.getElementById(field); 
		if(!obj && document.all){
			obj = document.all[field];
		}
	}
	return obj;
}
//eh ie?
function isIE(versao){
	var agent = navigator.userAgent.toLowerCase();
	versao = typeof(versao)=='undefined' ? '' : " "+versao+".";
	return agent.indexOf("msie"+versao) > -1;
}
function AjustaIe(){
	if(!isIE()) return;
	try{
		findel('meio').className += '-ie';
	}catch(e){}
}
//-->