



/*
DivHide (c) Creative Commons 2008
Author: Lukasz Czarzasty
*/

function change(id){

var ID;

/*
for (var i=0; i<10; ++i)
{
    ID = document.getElementById(i+"");
if (ID!=null)
    ID.style.visibility = "hidden";
}

//alert('dupa');
*/

    ID = document.getElementById(id);
    ID.style.visibility = "visible";
}

//

function hide(id){

/*
var ID;
for (var i=0; i<10; ++i)

{
    ID = document.getElementById(i+"");
if (ID!=null)
    ID.style.visibility = "visible";
}
*/

//alert('dupa');

    ID = document.getElementById(id);
    ID.style.visibility = "hidden";

}





function checkZgoda() {

	

	if(document.getElementById('zgoda_1').checked) {

		

		return true;

	}

	else {

		if(!document.getElementById('zgoda_1').checked) {

			document.getElementById('wypelnij_1').innerHTML = 'Wymaga zaznaczenia!';

		}

		

			

		return false;

	}

}





function cancel(text, url) {

	if(confirm(text)) {

		document.location=url;

	}

	else {

		return false;

	}

}



function poptastic(url)

{

	newwindow=window.open(url,'name','height=200,width=600');

	if (window.focus) {newwindow.focus()}

}





/*

window.addEvent('domready', function(){

	

	$('blokuj').addEvent('onclick', function(action,usr){

		

		var req = new Request({

			url: 'http://forum.bauschlomb.pl/blokuj.php?action=block&usr='+usr,

			

			onSuccess: function(){

				$('img_block').set('src', 'images/m_unblock.png');

			},		

			onFailure: function(){

				$('img_block').set('src', 'images/m_block.png');

			}

		});

	

		req.send();

	});	



});

*/










