function confirmDelete(url,item) 
{
  if (window.confirm("Deseja excluir o item '"+item.value+"'?")) 
  {
    window.document.location = url;
  }
}

function formataUrl(x,idAlvo)
{
	var y = document.getElementById(x).value;
	document.getElementById(idAlvo).value = strtr(y, '���������������������������������������������������y ', 
													 'AAAAAEEEEIIIIOOOOOUUUUaaaaaeeeeiiiiooooouuuuNncCYyyy-');
}

function formataUrl2(x,idAlvo)
{
	var y = document.getElementById(x).value;
	document.getElementById(idAlvo).value = strtr(y, '�', 'c');
}

function acessoIntranet(){
	var servico = document.getElementById('servico').value;
	if(servico == 'Webmail') {
		//location.href='http://mail.emae.com.br/';	
		window.open('http://mail.emae.com.br/', '_blank'); 
	} else if (servico == 'WebmailIntranet'){
		location.href='http://172.16.4.81/';
	} else if (servico == 'conselhofiscal'){
		//location.href='http://172.16.4.81/'; ---->>>>> Altera para o caminho correto, quando o mesmo existir.
		return;
	}
}
