function popup(id)
{
	window.open('/index.php?C='+id.toString(), '' , 'width=10,height=10,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes');
}

function alertTime() {
	main = xGetElementById('big_ban_main');
	if (main != undefined)
	{
		main.style.display="none";
	}
	main2 = xGetElementById('big_ban_main2');
	if (main2 != undefined)
	{
		main2.style.display="block";
	}
}

function TimeOut() {
	setTimeout("alertTime()", 9000);
}


function initOrderedLists() {
	o = document.getElementsByTagName('OL');
	for ( i = (o.length-1); i >= 0; i--) {
		if (o[i].tagName == 'OL') {
			var newOL = document.createElement("TABLE");
			newOL.cellPadding = '5px';
			var newOLBody = document.createElement("TBODY");
			newOL.appendChild(newOLBody);
			var k = 1;
			for ( j in o[i].childNodes ) {
				if (o[i].childNodes[j].tagName == 'LI') {
					var newOLRow = document.createElement("TR");
					newOLBody.appendChild(newOLRow);
				    newOLCell1 = document.createElement("TD");
					newOLCell1.vAlign = 'top';
					newOLCell1.width = '50px';
					newOLCell1.innerHTML = '<img src="img/cifra/' + k + '.gif">';
				    newOLRow.appendChild(newOLCell1);
				    newOLCell2 = document.createElement("TD");
					newOLCell2.vAlign = 'top';
					newOLCell2.innerHTML = o[i].childNodes[j].innerHTML;
				    newOLRow.appendChild(newOLCell2);
					k++;
				}
			}
			p = o[i].parentNode;
			p.replaceChild(newOL, o[i]);
		}
	}
}
