
function Round(){
    mint.fx.Round("partners", "all", "small", true);		
}
function fxWyslij(){
    mint.fx.Round("wndWyslij", "all", "small", true);			
}
function fxOplaty(){
    mint.fx.Round("wndOplaty", "all", "small", true);			
}

function pokazDokumenty(idk){
		var req = mint.Request();
    
		req.AddParam("idk",idk);
		req.OnSuccess = function() {
				$("dokumenty"+idk).innerHTML=this.responseText;
				
				if ($("dokumenty"+idk).style.display=='block') $("dokumenty"+idk).style.display='none';
				else $("dokumenty"+idk).style.display='block';
		}
		
		req.Send("ajax/dokumenty.php");
}

function pokazKredyt(id){
		var req = mint.Request();
    
		req.AddParam("id",id);
		req.OnSuccess = function() {
				$("kredyt"+id).innerHTML=this.responseText;
				
				if ($("kredyt"+id).style.display=='block') $("kredyt"+id).style.display='none';
				else $("kredyt"+id).style.display='block';
		}
		
		req.Send("ajax/kredyty.php");
}

function pokazOgloszenie(id){
		var req = mint.Request();
    
		req.AddParam("id",id);
		req.OnSuccess = function() {
				$("ogloszenie"+id).innerHTML=this.responseText;
				
				if ($("ogloszenie"+id).style.display=='block') $("ogloszenie"+id).style.display='none';
				else $("ogloszenie"+id).style.display='block';
		}
		
		req.Send("ajax/praca.php");
}


function pokazFormularz(){
		var req = mint.Request();
    		
		req.OnSuccess = function() {
				$("wndFormularz").innerHTML=this.responseText;
		}
		
		req.Send("ajax/dodaj.php");
}


function pokazKalkulator(cena){
		var req = mint.Request();
    
		req.AddParam("cena",cena);
		req.OnSuccess = function() {
				$("wndKalkulator").innerHTML=this.responseText;
		}
		
		req.Send("ajax/kalkulator.php");
}

/*
function wyslijFormularz(){
		var req = mint.Request();

    req.OnSuccess = function() {
        $("formularz").innerHTML = this.responseText;
    }
		
    req.SendForm("formularz");
}

function wyslijFormularz() {
advAJAX.assign(document.getElementById("formularz"), {
onSuccess : function(obj) {
var element = document.getElementById("wndZglosOferte");
element.innerHTML = obj.responseText;
},
onLoading : function(obj) {
document.getElementById("wndZglosOferte").innerHTML='<img src="gfx/loading.gif">';
		}
});
}
*/


function wyslijFormularz(){
		var req = mint.Request();

    req.OnSuccess = function() {
        $("wndFormularz").innerHTML = this.responseText;
    }
		
    req.SendForm("formularz");
}

function pokazSchowek(){
		var req = mint.Request();		
		req.OnSuccess = function() {
				$("wndSchowek").innerHTML=this.responseText;				
		}
		
		req.Send("ajax/schowek.php");
}

function dodaj(id){
		var req = mint.Request();
		
		req.AddParam("id",id);
    req.OnSuccess = function() {
        $("wndSchowek").innerHTML = this.responseText;
    }
		
    req.Send("ajax/schowek.php");
		t=setTimeout('pokazSchowek()',100);
}
