// JavaScript Document

function pintarCalendario(){
	var codigo = "<a href=\" \"><img src=\"img\/ic_calendario.gif\" alt=\"Ver calendario\" \/><\/a>";
	document.write(codigo);	
	}
	
function ampliarImagen(url,alt){
	document.top_image.src = url;
	document.top_image.alt = alt;
 }
 
 function pintarImprimirX_1(title){
 	var printName=document.getElementById("textImprimir").value;	
	var codigo = "<a href=\"#\" class=\"imprimir\" onClick=\"javascript:window.print();\" onkeypress=\"javascript:window.print();\">"+printName+"<\/a>";
	document.write(codigo);	
	}
	
function pintarImprimir_1(nombreEnlace){
	var printName=document.getElementById("textImprimir").value;			
	var imagePath='#';
	
	var anchorTag = document.createElement('a');
	anchorTag.appendChild(document.createTextNode(printName));
	anchorTag.setAttribute('href', imagePath);
	anchorTag.setAttribute('title', printName);
	anchorTag.setAttribute('class', 'imprimir');
	anchorTag.onclick = function(){window.print();};
	anchorTag.onkeypress = function(){window.print();};
	
	var htmlBody = document.getElementById(nombreEnlace);
	htmlBody.appendChild(anchorTag);
	}
	
function pintarImprimir_2(nombreEnlace){
	var printName=document.getElementById("textImprimir").value;			
	var imagePath='#';
	
	var anchorLiTag = document.createElement('li');
	anchorLiTag.setAttribute('class', 'imprimir');
	
	var anchorTag = document.createElement('a');
	anchorTag.appendChild(document.createTextNode(printName));
	anchorTag.setAttribute('href', imagePath);
	anchorTag.setAttribute('title', printName);
	anchorTag.setAttribute('class', 'sigue');
	anchorTag.onclick = function(){window.print();};
	anchorTag.onkeypress = function(){window.print();};
	
	anchorLiTag.appendChild(anchorTag);
	
	var htmlBody = document.getElementById(nombreEnlace);
	htmlBody.appendChild(anchorLiTag);
	
	
	}
