function showPOT(potID){
	var pot = null;
	var i=1;
	do{
		pot = document.getElementById("POT" + i);
		if (pot){
			pot.className = 'hiddenDIV';
		}
		i++;
	}while (pot);
	
	pot = document.getElementById("POT" + potID);
	if (pot) pot.className='shownDIV';
}

function limpiarFormularioBuzon(){
		var form = document.getElementById("buzon_sugerencias");
		form.ventanilla_nombre.value = "";
		form.ventanilla_email.value = "";
		//form.ventanilla_telefono.value = "";
		form.ventanilla_comentario.value = "";
	}
function showDiv(divID){
	var divOK = document.getElementById('buzon_sugerencias_ok');
	var divError = document.getElementById('buzon_sugerencias_error');
	if (divID=="OK"){
		divOK.style.display = "block";
		divOK.style.visibility = "visible";
		
		divError.style.display = "none";
		divError.style.visibility = "hidden";
	}
	if (divID=="ERROR"){
		divOK.style.display = "none";
		divOK.style.visibility = "hidden";
		
		divError.style.display = "block";
		divError.style.visibility = "visible";
	}
}
function st_consulta(){
	var __tmp_consulta=document.getElementById('st_resultado');
	if(!__tmp_consulta){
		alert('En estos momentos no podemos procesar su solicitud.\r\nInténtelo de nuevo más tarde.');
		return false;
	}
	__tmp_consulta.className='st_consultando';
	__tmp_consulta.innerHTML='Espere por favor...';
	xajax_obtener_estado_solicitud(xajax.getFormValues('fr_consulta_recurso'));
}
function consulta_salvoconducto(){
	$("#result_salvoconducto").attr({className:""}).html("La consulta se encuentra en proceso.<br />Espere un momento por favor.");
	if($("#territorial").val()==""){
		alert("Por favor seleccione la territorial en la cual se expidio el salvoconducto");
		return false;
	}
	if($("#num_resolucion").val()==""){
		alert("Por favor digite el numero de resolucion");
		return false;
	}
	if($("#num_salvoconducto").val()==""){
		alert("Por favor digite el numero de salvoconducto");
		return false;
	}
	$("#result_salvoconducto").addClass("st_consultando").html("Su consulta se");
	xajax_consultar_salvoconducto(xajax.getFormValues('valores_salvoconducto'));
}

function show_submenu(item_c){
	var id_submenu = item_c.id.substr(2);
	if($("#"+id_submenu).css("display")!="block"){
		$("#"+id_submenu).slideDown();
		return false;
	}
	else{
		$("#"+id_submenu).slideUp();
		return true;
	}
}