﻿function getArgs(doc) { 
	var args = new Object(); 
	var query = doc.location.search.substring(1); 
	var pairs = query.split("&"); 
	for(var i = 0; i < pairs.length; i++) { 
		var pos = pairs[i].indexOf('='); 
		if (pos == -1) continue; 
		var argname = pairs[i].substring(0,pos); 
		var value = pairs[i].substring(pos+1); 
		args[argname] = unescape(value); 
	} 
	return args; 
} 

function myLoad(){
	if (window.location.href == window.top.location.href) {
  		window.top.location.replace('index.html?url='+window.location.href);
  	}
}
function magnify(txt,opis,plik,szer,wys){
	var okno=window.open ('','_blank','width='+szer+',height='+wys+',resizable=no,scrollbars=no');
	okno.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"><title>'+txt+'</title></head>');
	okno.document.write('<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0><img src="images/'+plik+'" border=0 alt="'+opis+'"></body></html>');
}