function BrowserCheck() {
	var b = navigator.appName;
	if  (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.version = navigator.appVersion;
	this.v = parseInt(this.version);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns4 = (this.b=="ns" && this.v==4);
	this.ns5 = (this.b=="ns" && this.v==5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (this.version.indexOf('MSIE 4')>0);
	this.ie5 = (this.version.indexOf('MSIE 5')>0);
	this.min = (this.ns||this.ie);
}

is = new BrowserCheck();

function impri(cual) {
	window.focus;
	if (is.ns || (is.ie && !is.ie4)) {
		cual.focus();
		cual.print();	
	}
	else if(confirm("Su navegador es demasiado antiguo. Desea instalar Internet Explorer 5?")) {
		var temp1 = document.location.pathname;
		var temp2 = temp1.indexOf("rulopluma",0);
		var temp3 = 0;
		var temp4 = 0;
		while (true) {
			var temp3 = temp1.indexOf("/",temp2);
			if (temp3 == -1) {
				var temp3 = temp1.indexOf("\\",temp2);
				if (temp3 == -1) break;
				else {
					temp2 = temp3+1;
					temp4++;
				}
			}
			else {
				temp2 = temp3+1;
				temp4++;			
			}
		}
		var temp5 = "";
		for (i=0;i<temp4;i++) {
			temp5 += "../";
		}
		alert("En la siguiente ventana, elija 'Ejecutar este programa...'\nMuchas gracias.");
		temp5 += "navegador/instalar.exe";
		window.open(temp5,"ie5");
	}
}