function imprSelec(nombre, titulo)
{
var ficha = document.getElementById(nombre);
if(ficha){
var ventimp = window.open('', 'popimpr');
ventimp.document.write('
' + titulo + '' + ficha.innerHTML);
var head = document.getElementsByTagName('head')[0];
var ventHead = ventimp.document.getElementsByTagName('head')[0];
var regexProtocolo = new RegExp("^(https?://)", 'i');
var serverUrl = window.location.protocol + '//' + window.location.host;
if(window.location.pathname != ''){
var partesPathname = window.location.pathname.split('/');
partesPathname.pop();
serverUrl += partesPathname.join('/');
}
serverUrl += '/';
for(var i=0, c=head.childNodes.length; i