// Funciones de JavaScript
var isIE = (window.navigator.userAgent.indexOf("MSIE")> 0); 
if ( !isIE ){   
	HTMLElement.prototype.__defineGetter__("innerText",function () { return(this.textContent); });   
	HTMLElement.prototype.__defineSetter__("innerText",function (txt) { this.textContent = txt; });
	}

function mostrar(obj) {
	document.getElementById(obj).style.display = 'block';
	}

function ocultar(obj) {
	document.getElementById(obj).style.display = 'none';
	}

function valor(opcion, accion) {
	document.miforma.itm.value = opcion;
	document.miforma.acc.value = accion;
	document.miforma.submit();
	}

function mueve(elemento1, elemento2){
	//Pasando los valores del elemento1 al elemento2
	for (var i = 0; i < document.getElementById(elemento1).length; i++) {
		if (document.getElementById(elemento1).options[i].selected) {
			document.getElementById(elemento2).options[document.getElementById(elemento2).length] = new Option(document.getElementById(elemento1).options[i].text, document.getElementById(elemento1).options[i].value, false, false);
			}
		}
	//Borrando los valores del elemento1
	for (i = (document.getElementById(elemento1).length - 1); i >= 0; i--) {
		if (document.getElementById(elemento1).options[i].selected) {
			document.getElementById(elemento1).options[i] = null;
			}
		}
	}
	
function tot( elem ){
	for(var i = 0; i < document.getElementById(elem).length; i++){
		document.getElementById( elem ).options[i].selected = true;
		}
	}

function fe13(){
		alert('CODIGO: '+event.keyCode);
	}