function r1(In){ 
win2=window.open("","","width=500,height=356, top=145, left=320") 
if (win2){
win2.focus()
win2.document.open()
win2.document.write("<head><title>"+In+"</title></head>")
win2.document.write("<body background="+'"'+In+'"'+" onBlur='self.close()'>")
win2.document.write("</body>")
win2.document.close()
}
else
alert("Nie mogę otworzyć nowe okno")
}
function r2(In){ 
win2=window.open("","","width=400,height=313, top=145, left=300") 
if (win2){
win2.focus()
win2.document.open()
win2.document.write("<head><title>"+In+"</title></head>")
win2.document.write("<body background="+'"'+In+'"'+" onBlur='self.close()'>")
win2.document.write("</body>")
win2.document.close()
}
else
alert("Nie mogę otworzyć nowe okno")
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);

}
