function printE2() {

	for (var i=1; i<4; i++) {

		document.write('<link href="/xcss/t'+i+'.css" rel="');
		if (cur!=i) document.write('alternate ');
		document.writeln('stylesheet" type="text/css" title="t'+i+'" media="screen,print" />');
								
	}
							
}
function printE() {
	
	var ar=["A","A+","A++"];
	
	for (var i=1; i<4; i++) {
								
		document.write('<p class="tt'+i+'"><a href="javascript:void(0)" onclick="msetActiveStyleSheet('+i+');return false;" id="tl'+i+'"');
		
		if (cur==i) document.write(' class="active"');
								
		document.writeln('>'+ar[i-1]+'</a></p>');
								
	}
							
}

function msetActiveStyleSheet(cual) {

	if(1==2 && !document.setActiveStyleSheet) {
		
		alert("Lo sentimos, su navegador no soporta esta opción");
		return;
	}

	setActiveStyleSheet("t"+cual);
	
	if (document.getElementById) {
		
		if (cur) document.getElementById("tl"+cur).className="";
		document.getElementById("tl"+cual).className="active";
	
		cur=cual;
	}
}

function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
   createCookie("style", title, 365);
}
 function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

function abreVentana(cual, ancho,alto) {
	
		var anchod=((screen.width)/2)-(ancho/2);
		
		var altod=((screen.height-16)/2)-(alto/2);
		
		var w=window.open("",'','resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,width='+ancho+',height='+alto+',screenX='+anchod+',screenY='+altod+',left='+anchod+',top='+altod+'');
		w.document.write("<html><head><body style='margin:0;padding:0'><img src='"+cual+"'></body></html>");
	
}

function ob(dir,dom,show,su) {

	if (show==1) show=dir+'@'+dom;

	if (!su) document.write('<a href=\"mailto:' + dir + '@' + dom + '\">'+ show +'</a>');
	else document.write('<a href=\"mailto:' + dir + '@' + dom + '\"><u>'+ show +'</u></a>');
}