function enter(e,func)
{
	var key_code = e.keyCode ? e.keyCode : e.charCode ? e.charCode : e.which ? e.which : void 0;

	if (key_code == 13) {
		func()
	}
}

function TRIM(v)
{
	return v.replace(/^\s*/, "").replace(/\s*$/, "");
}

function aguarde(divID, texto, image) {
	var img = "<img src='/sia/css_atlas/imagens/"+image+"' border='0' />";
	texto = "<span style='color:#000000;font-weight:bold;'>"+texto+"</span>";
	document.getElementById(divID).innerHTML = "<br />"+img+"<br />"+texto;;
}
