function criaElement(place, type, name, value) {  
	var _loc0 = document.createElement('input');
	_loc0.setAttribute('type', type);
	_loc0.setAttribute('name', name);
	_loc0.setAttribute('id', name);
	document.getElementById(place).appendChild(_loc0);  
	if(value)
	{
		_loc0.setAttribute('value', value);
	}
}

function removeAllElement(place)
{
	var _loc0 = document.getElementById(place);
	while (_loc0.firstChild)
	{
		_loc0.removeChild(_loc0.firstChild);
	}
}
function removeOneElement(place, name)
{
	var _loc0 = document.getElementById(place);
	var _loc1 = document.getElementById(name);
	_loc0.removeChild(_loc1);
}

function Confirm(texto,indice, area){
	if (window.confirm (texto)) {
		switch (indice){
			case "alert":
				window.alert(" Continuando.. ")
				break;
			case "location":
				window.location = area;
				break
			case "back":
				window.back(-1);
				break;
		}
	}else {
		//window.alert(" Cancelando... ")
	}
}