
function markButton(sdr, dest_name) {
  if (sdr != null) {
    sdr.src = 'image/'+dest_name;
    return true;
  }
  return false;
}

function markButtonWithEx(sdr, dest_name, dest_head_name) {
  if (sdr != null) {
    sdr.src = 'image/'+dest_name;
	var img = document.all['head_image'];
	if (img != null) {
	  img.src = 'image/'+dest_head_name;
	} else {
	  // ??
	}
    return true;
  }
  return false;
}

function over(sdr1,col) {
  sdr1.style.backgroundColor = col;
  sdr1.style.cursor = 'hand';
}
function out(sdr1) {
  sdr1.style.backgroundColor = "";
  sdr1.style.cursor = 'hand';
}
function test3(src) {
	//RequestInfo(src,620,460);
	document.location.href=src;
}

function test1(sdr1) {
  sdr1.style.backgroundColor = "#F8F8F2"
  sdr1.style.cursor = 'hand'    
}
function test2(sdr1) {
  sdr1.style.backgroundColor = "" 
  sdr1.style.cursor = 'hand'  
}
function test3(src) {
	//RequestInfo(src,620,460);
	document.location.href=src;
}

function or1(lok,nam)
{
/*
//    var nowe1 = open( lok,nam,"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,width="+w+",height="+h+"");
*/

    var l=0;
    var t=0;
    var w=screen.availWidth-8;
    var h=screen.availHeight-8;
    var nowe1 = open( lok,nam,"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=0,left="+l+",top="+t+",width="+w+",height="+h);	
//    nowe1.moveTo(0,0);
    
};

function RequestInfo1(adr, w, h) {    
    if (w == 0) w = screen.availWidth * (2/3);
    if (h == 0) h = screen.availHeight * (1/3);
    okno1 = window.open("","okno1","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,width="+w+",height="+h+",left="+(screen.availWidth - w) / 2+",top="+(screen.availHeight - h) / 2);
    okno1.resizeTo(w, h + 30);
    okno1.document.write("<HEAD><TITLE>Wczytuję serwis...</TITLE></HEAD>");
    okno1.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję serwis. Proszę czekać...</B></BIG></CENTER></font>');
    okno1.focus();
    okno1.location.href=""+adr;
};

function or1(lok,nam)
{
/*
//    var nowe1 = open( lok,nam,"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,width="+w+",height="+h+"");
*/

    var l=0;
    var t=0;
    var w=screen.availWidth-8;
    var h=screen.availHeight-8;
    var nowe1 = open( lok,nam,"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=0,left="+l+",top="+t+",width="+w+",height="+h);	
//    nowe1.moveTo(0,0);
    
};

function wydrukOferta(src) {
  RequestInfo1(src, 630, 450);
}



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 += 1900

    return DayName[WeekDay] + "" + " " + Day + " " + MonthName[Month] + " " + Year + "r."
}
