function newWindow () {
	var hyperlink = document.getElementsByTagName('a');
	
	for (var i=0; i<hyperlink.length; i++) {
		if (String(hyperlink[i].className).match("openNew")) {
			hyperlink[i].onclick = function () {
				window.open(this.href);
				return false;
			}
		}
	}
}

function ramka () {
	if (top.frames.length!=0) top.location=self.document.location;
}


function Visible (warstwa) {
document.getElementById(warstwa).style.display = "block";
}
function Hidden (warstwa) {
document.getElementById(warstwa).style.display = "none";

}

window.onload = function js() {
	newWindow();
	Visible ();
	Hidden ();
	
}