function dodaj_email(email)
{
	var req = mint.Request();
	req.method='POST';
	req.getJSON = true;
	req.AddParam("adres_email", email);
	req.Send("ajax/biuletyn.php", "sBiuletynInfo");
}

function pokaz_zdjecie(sciezka,rozmiar,rodzaj)
{
	//alert(sciezka)
	//alert(rozmiar);
	var req = mint.Request();
	
	req.OnSuccess = function() {
		//alert(this.responseJSON[0].width);
		//alert(this.responseJSON[0].height);
		//alert(this.responseJSON[0].html);
		
		
		var IE = document.all?true:false; 
		
		if (IE)
		{ // grab the x-y pos.s if browser is IE 
			tempY = document.documentElement.scrollTop; 
		} 
		else
		{ // grab the x-y pos.s if browser is NS 
			tempY = window.scrollY;
		} 
		
		document.getElementById("dPowiekszZdjecie").innerHTML=this.responseJSON[0].html;
		document.getElementById("dPowiekszZdjecie").style.width=this.responseJSON[0].width+'px';
		document.getElementById("dPowiekszZdjecie").style.height=this.responseJSON[0].height+'px';
		document.getElementById("dPowiekszZdjecie").style.top=(100+tempY)+'px';
		document.getElementById("dPowiekszZdjecie").style.display='block';
		/*
        for(var i = 0; i < this.responseJSON.length; ++i) 
		{
            
			grid.InsertRow(this.responseJSON[i].name, this.responseJSON[i].mail);
        }
		*/
    }
	
	req.method='POST';
	req.getJSON = true;
	req.AddParam("sciezka", sciezka);
	req.AddParam("rodzaj", rodzaj);
	req.AddParam("rozmiar", rozmiar);
	req.Send("ajax/ajax_zdjecia.php");
}
