function openWindow(url, width, height) {
 var Win = window.open(url,"_blank",'width=' + width + ',height=' + height + ',resizable=0, scrollbars=no, menubar=no,' ); }

function focus() {
for (a=0;a<document.links.length;)
document.links[a].onfocus=document.links[a++].blur;
}

function displayWindow(str1,str2,str3,str4) {
 var winWidth = (screen.width ) / 2-300;
 var winHeight = (screen.height ) / 2-255;
 var i=0;
 if (navigator.appName == "Netscape") 
   i=40;
 winHeight = 20;
 winprops = 'width=720,height=640,top='+winHeight+',left='+winWidth+',toolbar=0,location=0,directories=0,menubar=0,resizeable=0';
 msg = window.open('','pro_creation_ecard', winprops);
 if (msg.document.images[0])
   msg.close();
 msg = window.open('','pro_creation_ecard', winprops);
 msg.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
 msg.document.write('<html>');
 msg.document.write('<head>');
 if (str2!=null)
   msg.document.write('<title>'+str2+'</title>');
 else
   msg.document.write('<title>***</title>');
 msg.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> ');
 msg.document.write('<link rel="stylesheet" href="../../skrypty/okno.css" type="text/css">');
 msg.document.write('</head>');
 msg.document.write('<body bgcolor="white" text="#771D2B">');
 msg.document.write('<p align="center" >');
 msg.document.write('<img src="'+str1+'" style="cursor: hand" border="1" title="kliknij, aby zamknąć" onclick="window.close()" >');
 msg.document.write('</p>');
 if (str4!=null)
   {
    msg.document.write('<p align="justify">'+str4+'</p>');
    i = i-40;    
   };
 if (str3!=null)
   {
    msg.document.write('<p align="center"><a href="javascript:window.close()">'+str3+'</a></p>');
    i = i-40;    
   };
 msg.document.write('</body>');
 msg.document.write('</html>');
 if (0 & msg.document.images[0])
  {
   winWidth  = msg.document.images[0].width +30;
   winHeight = msg.document.images[0].height+60-i;
   msg.window.resizeTo(winWidth, winHeight);
   msg.window.moveTo((screen.width-winWidth)/2,(screen.height-winHeight)/2);
  };
 msg.focus();
}

function focus() {
for (a=0;a<document.links.length;)
document.links[a].onfocus=document.links[a++].blur;
}

function displayWindow(str1,str2,str3,str4) {
 var winWidth = (screen.width ) / 2-300;
 var winHeight = (screen.height ) / 2-255;
 var i=0;
 if (navigator.appName == "Netscape") 
   i=40;
 winHeight = 20;
 winprops = 'width=720,height=640,top='+winHeight+',left='+winWidth+',toolbar=0,location=0,directories=0,menubar=0,resizeable=0';
 msg = window.open('','pro_creation_ecard', winprops);
 if (msg.document.images[0])
   msg.close();
 msg = window.open('','pro_creation_ecard', winprops);
 msg.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
 msg.document.write('<html>');
 msg.document.write('<head>');
 if (str2!=null)
   msg.document.write('<title>'+str2+'</title>');
 else
   msg.document.write('<title>***</title>');
 msg.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> ');
 msg.document.write('<link rel="stylesheet" href="skrypty/okno.css" type="text/css">');
 msg.document.write('</head>');
 msg.document.write('<body bgcolor="white" text="#771D2B">');
 msg.document.write('<p align="center" >');
 msg.document.write('<img src="'+str1+'" style="cursor: hand" border="1" title="kliknij, aby zamknąć" onclick="window.close()" >');
 msg.document.write('</p>');
 if (str4!=null)
   {
    msg.document.write('<p align="justify">'+str4+'</p>');
    i = i-40;    
   };
 if (str3!=null)
   {
    msg.document.write('<p align="center"><a href="javascript:window.close()">'+str3+'</a></p>');
    i = i-40;    
   };
 msg.document.write('</body>');
 msg.document.write('</html>');
 if (0 & msg.document.images[0])
  {
   winWidth  = msg.document.images[0].width +30;
   winHeight = msg.document.images[0].height+60-i;
   msg.window.resizeTo(winWidth, winHeight);
   msg.window.moveTo((screen.width-winWidth)/2,(screen.height-winHeight)/2);
  };
 msg.focus();
}

<!--

// script by javascript kit

var alternate=0
var standardbrowser=!document.all&&!document.getElementById

if (standardbrowser)
document.write('<form name="tick"><input type="text" name="tock" size="11"></form>')

function show(){
if (!standardbrowser)
var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var dn="AM"

if (hours==12) dn="PM" 
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0) hours=12
if (hours.toString().length==1)
hours="0"+hours
if (minutes<=9)
minutes="0"+minutes

if (standardbrowser){
if (alternate==0)
document.tick.tock.value=hours+" : "+minutes+" "+dn
else
document.tick.tock.value=hours+"   "+minutes+" "+dn
}
else{
if (alternate==0)
clockobj.innerHTML=hours+"<font color='lime'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:6pt'>"+dn+"</sup>"
else
clockobj.innerHTML=hours+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:6pt'>"+dn+"</sup>"
}
alternate=(alternate==0)? 1 : 0
setTimeout("show()",1000)
}
window.onload=show

//--><!-- Hide it
// Returns today's date in a string with full day and month names
// by Roger C. Scudder Jr. on 10-2-98
// corrected for Netscape by Grzegorz Golebiewski
DayName = new Array(7)
DayName[0] = "niedziela"
DayName[1] = "poniedziałek"
DayName[2] = "wtorek"
DayName[3] = "środa"
DayName[4] = "czwartek"
DayName[5] = "piątek"
DayName[6] = "sobota"

MonthName = new Array(12)
MonthName[0] = "stycznia"
MonthName[1] = "lutego"
MonthName[2] = "marca"
MonthName[3] = "kwietnia"
MonthName[4] = "maja"
MonthName[5] = "czerwca"
MonthName[6] = "lipca"
MonthName[7] = "sierpnia"
MonthName[8] = "września"
MonthName[9] = "października"
MonthName[10] = "listopada"
MonthName[11] = "grudnia"

function getDateStr(){
    var Today = new Date()
    var WeekDay = Today.getDay()
    var Month = Today.getMonth()
    var Day = Today.getDate()
    var Year = Today.getFullYear()

    if(Year <= 99)
        Year += 2000

    return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + " " + Year
}
//-->
var ie=document.all
var ns6=document.getElementById&&!document.all
var DataOffset = 0;

function drukuj(page) {
 if (jslock) {
//  closePopup('drukuj');
  parameters = "width=620,height=420,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=" + eval((screen.availWidth-620)/2) + ",top=" + ((screen.availHeight-400)/2);
  top.drukujWindow = window.open(page,'drukuj',parameters);
 }
}

function openWindow(url,windowName,width,height) {
  parameters = "width=" + width + ",height=" + height + "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
  window.open(url,windowName,parameters);
}

function openLoginWindow(url,windowName,width,height) {
  parameters = "width=" + width + ",height=" + height + "toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
  window.open(url,windowName,parameters);
}

function openFixedWindow(url,windowName,width,height) {
  parameters = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
  window.open(url,windowName,parameters);
}


function goCity(Strona,Lista)
{
 var i=0;
 var URL;
 while (Lista.options[i].selected != true) {
  i++;
 }
URL = Strona+'#'+ Lista.options[i].value;

if (i==0) 
{
alert ("Proszę wybrać miasto");
URL = "#";
}
//alert (URL);
document.location.href = URL;
}


function multiple(liczba)
{
//alert(liczba);
document.forms['pay'].Amount.value = parseFloat(liczba)*100;
//alert ("Amount " + document.forms['pay'].Amount.value);
}

function PokazDateFull()
{
//date in title by Randall Smith copyright 1999
//Permission given to Dynamicdrive.com to feature it in it's DHTML archive
//Script modified by Dynamicdrive.com to make it cross browser friendly. Visit Dynamicdrive.com for more DHTML scripts
//please visit me on the web at http://members.xoom.com/u4rstunzd/
//and to change the title:where it says Welcome todays date is: just put you own text in if you would like to--
var isnMonth = new
Array("stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia");
var isnDay = new
Array("Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela");

today = new Date () ;
today = DateAdd(today , DataOffset , 0, 0)

Year=today.getYear();
if (Year < 1000)
Year+=1900
var DataDzis=today.getDate();
return ( isnDay [today.getDay() - 1] + " " + DataDzis + " " + isnMonth[today.getMonth()] + " " + Year + " ");
//return ("Welcome. today\'s date is: "+isnDay[today.getDay()]+", "+isnMonth[today.getMonth()]+" "+Date+", "+Year+"");
}

function dzis()
{
//date in title by Randall Smith copyright 1999
//Permission given to Dynamicdrive.com to feature it in it's DHTML archive
//Script modified by Dynamicdrive.com to make it cross browser friendly. Visit Dynamicdrive.com for more DHTML scripts
//please visit me on the web at http://members.xoom.com/u4rstunzd/
//and to change the title:where it says Welcome todays date is: just put you own text in if you would like to--
var isnMonth = new
Array("stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia");
var isnDay = new
Array("Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","NIedziela");
today = new Date () ;
Year=today.getYear();
if (Year < 1000)
Year+=1900
var DataDzis=today.getDate();
return (DataDzis + " " + isnMonth[today.getMonth()] + " " + Year + " ");

//return ("Welcome. today\'s date is: "+isnDay[today.getDay()]+", "+isnMonth[today.getMonth()]+" "+Date+", "+Year+"");
}

function teraz()
{
today = new Date () ;
return today;
}

/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}

/***********************************************
* Image Thumbnail viewer- Š Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function ietruebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}
function enlarge(which,e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"
crossobj.innerHTML= "<div align=right id=dragbar> <span onClick='closepreview()'><img src="+which+"></span></div>"
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function initializedrag(e){
    if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
    offsetx=ie? event.clientX : e.clientX
    offsety=ie? event.clientY : e.clientY
    tempx=parseInt(crossobj.style.left)
    tempy=parseInt(crossobj.style.top)
    dragapproved=true
    document.onmousemove=drag_drop
    }
}

function DateAdd(startDate, numDays, numMonths, numYears)
{
 var returnDate = new Date(startDate.getTime());
 var yearsToAdd = numYears;
 
 var month = returnDate.getMonth() + numMonths;
 if (month > 11)
 {
  yearsToAdd = Math.floor((month+1)/12);
  month -= 12*yearsToAdd;
  yearsToAdd += numYears;
 }
 returnDate.setMonth(month);
 returnDate.setFullYear(returnDate.getFullYear() + yearsToAdd);
 
 returnDate.setTime(returnDate.getTime()+60000*60*24*numDays);
 
 return returnDate;
}



function zegarmenu() {
var date = new Date()
var year = date.getYear()
var month = date.getMonth()
var day = date.getDate()
var hour = date.getHours()
var minute = date.getMinutes()
var second = date.getSeconds()
var months = new Array("", "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień")

var monthname = months[month]

if (hour > 12) {
hour = hour - 12
}

if (minute < 10) {
minute = "0" + minute
}

if (second < 10) {
second = "0" + second
}


document.title = "JSS - " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second

setTimeout("clock()", 1000)

}

