
function getElement(id) {
	if ( document.all )
		return document.all[id];
	else
		return document.getElementById(id);
}

function switchImage(imageId, oNewImage) {
	var oImage;
	if ( document.images )
		oImage = document.images[imageId];
	else
		oImage = getElement(imageId);

	if ( oImage == null ) {
		alert('Nie znaleziono obrazka o ID='+imageId);
		return false;
	}
	oImage.src = oNewImage.src;
	return true;
}

function loadLinks(Url1,Frame1,Url2,Frame2) {
  parent.frames[Frame1].location = Url1
  parent.frames[Frame2].location = Url2
}

