
function windowInfo(url,ow,oh)
{
return window.open(url,'Informacja','width='+ow+',height='+oh+',screenX='+(screen.width-ow)/2+',screenY='+(screen.height-oh)/2);
}



function windowPopup(url,ow,oh,opcje)
{
if (opcje!='') opcje=','+opcje;
window.open(url,'Informacja','width='+ow+',height='+oh+',left='+(screen.width-ow)/2+',top='+(screen.height-oh)/2+opcje);
}




function MenuLeftOver(co) {
 co.style.background='#0a67cb';
 co.style.color='#FFFFFF';
}




function MenuLeftOut(co) {
 co.style.background='#ffcc00';
 co.style.color='#000000';
}



function MenuButtonOver(co,col1,col2) {
 co.style.background=col2;
 co.style.color=col1;
}

function MenuButtonOut(co,col1,col2) {
 co.style.background=col2;
 co.style.color=col1;
}




function imgpop(Url){
	window.open(Url, 'obrazek', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=10,height=10,left=10,top=10');
}


function listapop(){
	window.open('clear.php?id=pirotechnika/referencjeall', 'lista', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=700,height=480,left=10,top=10');
}


function flipVis(co)
{
	if (document.getElementById(co).style.display=='none') {
		document.getElementById(co).style.display='block';
//		return true;
		} else {
		document.getElementById(co).style.display='none';
//		return false;
		}
}


function potwierdz(txt,url) {
	if (confirm(txt))
		{
		document.location.href=url;
		return true;
		}
	else
		return false;
}

