function ConfirmChoice(locationOnAccept) 
{ 
	answer = confirm("Na pewno?")
	if ( answer !=0 ) 
	{
		location = locationOnAccept; 
	} 
}

function zwiekszLicznik(plikLicznika) {
  window.open("zwiekszLicznik.php?plik="+plikLicznika,"Nowy","menubar=no,width=30,height=30");
  //zwiekszLicznik.php?plik;
  
}

function czyscSzukaj(AInput)
{
    if (AInput.value == "search") {
        AInput.value = '';
    }
    return true;
}

function przywrocSzukaj(AInput,zmienna)
{
    
    if (AInput.value == '') {
        AInput.value = "search";
    }
    return true;
}

function czyscSzukaj2(AInput)
{
    if (AInput.value == "Proszę wpisać treść i klikn-ć Wyślij Formularz:") {
        AInput.value = '';
    }
    return true;
    
}

function przywrocSzukaj2(AInput)
{
    if (AInput.value == '') {
        AInput.value = "Proszę wpisać treść i klikn-ć Wyślij Formularz:";
    }
    return true;
}

function czyscSzukaj3(AInput)
{
    if (AInput.value == "Please enter content about You and pick Send Form:") {
        AInput.value = '';
    }
    return true;
    
}

function przywrocSzukaj3(AInput)
{
    if (AInput.value == '') {
        AInput.value = "Please enter content about You and pick Send Form:";
    }
    return true;
}

function setCookie(name, value)
{
  data = new Date();
  data.setMonth(data.getMonth() + 1);
  var cookie = name + "=" + value + ";";
  cookie += "expires=" + data.toGMTString();
  document.cookie = cookie;
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function newwindow(img)
{
newWindow = open(""+self.location, "", "width=750, height=600, left=100, top=100, screenX=100, screenY=100");
var nazwa=img.split(".");
if (window.focus) {newWindow.focus()}
newWindow.document.write("<title>wwww.hanimex.com.pl</title>");
newWindow.document.write("<BODY bgcolor=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");
newWindow.document.write("<table width=100% border=0 cellspacing=0 cellpadding=0 height=100%><tr><td align=center valign=middle><a href=\"javascript:window.close();\"><img name=\"zdjecie\" src="+img+" height=550 border=0></a><br><a href=\"javascript:void(0);\" onClick=\"zdjecie.src='"+img+"'\"><b>Przód</b></a>  <b>/</b>  <a href=\"javascript:void(0);\" onClick=\"zdjecie.src='"+nazwa[0]+"t."+nazwa[1]+"'\"><b>Tył</b></a></td></tr></table>");
newWindow.document.write("</BODY>");
newWindow.document.close();
}