function ble()
{
  if(cur > last)
    cur=0;
  document.getElementById("a1").src = "http://beskidy24.eu/" + phs[cur][0];
  document.getElementById("a2").innerHTML = "<a href=http://wiadomosci.beskidy24.eu/" + phs[cur][2] + ">" + phs[cur][1] + "</a>"; 
  document.getElementById("a3").href = "http://wiadomosci.beskidy24.eu/" + phs[cur][2];
  cur++;
  autocontrolvar=setTimeout("ble()",8000)
}
function ble2()
{
  if(cur2 > last2)
    cur2=0;
  document.getElementById("a12").src =  phs2[cur2][0];
  document.getElementById("a22").innerHTML = "<a href="+ phs2[cur2][2] + ">" + phs2[cur2][1] + "</a>"; 
  document.getElementById("a32").href = phs2[cur2][2];
  cur2++;
  autocontrolvar=setTimeout("ble2()",8000)
}

function photoSubmit()
{
  showLoadingStatus(); 
  //alert('aaa');
 // return StartUpload();
}
function showLoadingStatus()
{
  document.getElementById('loadingStatus').style.display = '';
  document.getElementById('loadingSubmit').style.display = 'none';
}
function Myconfirm(Str)
{
	return confirm(Str);
}
function ratesOn(rate)
{
	for(i=1;i<=5;i++)
		document.getElementById(('rate'+i)).src='pix/gwiazda_off.gif';
	for(i=1;i<=rate;i++)
		document.getElementById(('rate'+i)).src='pix/gwiazda_on.gif';
		
}
function Gfx(pic,x,y)
{
    var s='<html><head><TITLE>www.beskidy24.eu</TITLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"></head>\n';
     s=s+'<body BGCOLOR="#ffffff" MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 LEFTMARGIN=0>\n';
    s=s+'<A HREF="javascript:close()"><IMG ALT="Close..." BORDER=0 SRC="'+pic+'"></A>\n';
    s=s+'</body></html>';

    var f = null;
    f = window.open('','','width='+x+',height='+y+',left=50,top=20,resizable=1,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0');
    if(f != null) {
        if(f.opener == null) {
          f.opener = self
        }
        f.document.clear();
        f.document.write(s);
        f.document.close();
    }
}
function ePrint(url)
{
	f = window.open(url,'','width=800,height=600,left=50,top=20,resizable=1,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0');
	
}
function radarInfo(url)
{
	f = window.open(url,'','width=300,height=200,left=50,top=20,resizable=1,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0');
	
}
function showHide(id)
{
  if(document.getElementById(id).style.display == "")
    document.getElementById(id).style.display = "none";
  else
    document.getElementById(id).style.display = "";
}  
function hide(id)
{
  document.getElementById(id).style.display = "none";
}  
function show(id)
{
    document.getElementById(id).style.display = "";
}  
function fieldValid(field,warning)
{
	if(field.value == '')
	{
		alert(warning);
		field.focus();
		return false;
	}
	else
		return true;
}
function abuseSend(site,type,id)
{
  document.location.href='http://www.beskidy24.eu/'+site+','+type+','+id+'.html';
}  
