function descarga(url) {
	window.open(url, 'descargas', 'width=250,height=200,resizable=yes');
}

function versImprimir() {
	if (document.getElementById('contenido')) {
		window.open('versImprimir.aspx', 'ventana', 'width=750,resizable=yes,scrollbars=yes');
	}
}

function teclaEntrar(elemento, codigo) {
	if (window.event.keyCode == 13) {
		event.returnValue = false;
		if (document.getElementById(elemento)) {
			switch (codigo) {
				case 0:
					document.getElementById(elemento).focus();
					break;
				case 1:
					document.getElementById(elemento).click();
					break;
			}
		}
	}
}

function abreTarifa(ruta, id) {
	window.open(ruta + id + '.aspx', "ventana", "width=780,status=1,scrollbars=1,resizable=1");
}

/**
* OnClick v1.0 - Accessible Onclick Javascript
* (c) 2008 Alejandro Arco <http://www.alejandroarco.es>
* MIT-style license
*/
function e(y) { y.setAttribute('name', 'onclick'); y.setAttribute('href', '#onclick'); var o, i, f, p, r = ''; o = y.getAttribute('rel'); i = o.indexOf('[') + 1; f = o.indexOf(']'); p = o.substring(i, f).split(','); for (i = 0; i < p.length; i++) { if (i == 0) r += p[i] + '('; else if (i == 1) r += p[i]; else r += ',' + p[i]; if (i == p.length - 1) r += ')' } eval(r); } var s = function() { if (!document.getElementsByTagName) return null; var x, i, y, o; x = document.getElementsByTagName('a'); for (i = 0; i < x.length; i++) { y = x[i]; o = y.getAttribute('rel'); if (o != '' && o != null && o.indexOf('onclick[') == 0) y.onclick = function() { e(this); return false; } } return true; }
var a, b; a = window.attachEvent; b = window.addEventListener; if (document.all && a) a('onload', s); else if (b) b('load', s, false)
