function popPlayer(url, title, w ,h) {
 var left = (screen.width/2)-(w/2)-30;
 var top = (screen.height/2)-(h/2);
 w = window.open (url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=1, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
 w.focus();
}

function popAdmin(url, w ,h) {
 var left = (screen.width/2)-(w/2)-30;
 var top = (screen.height/2)-(h/2);
 var w;
 w = window.open (url, 'admin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=1, resizable=1, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
 w.focus();
}

function programmaCompleto(id,status) {
 for(i=0; i<50; i++) {
if(document.getElementById('scheda_a_'+i)) {
 document.getElementById('scheda_a_'+i).style.display = 'block';
 document.getElementById('scheda_b_'+i).style.display = 'block';
 document.getElementById('scheda_completa_'+i).style.display = 'none';
}
 }
 if(status==0) {
document.getElementById('scheda_a_'+id).style.display = 'none';
document.getElementById('scheda_b_'+id).style.display = 'none';
document.getElementById('scheda_completa_'+id).style.display = 'block';
 } else {
document.getElementById('scheda_a_'+id).style.display = 'block';
document.getElementById('scheda_b_'+id).style.display = 'block';
document.getElementById('scheda_completa_'+id).style.display = 'none';
 }
}
