function zmien_oferte(oferta) 
{
   var req = null;
   
   req = mint.Request();   
   
   req.AddParam('oferta', oferta);
   req.Send('zmiana_oferty.php' , 'oferta');	
}

function ColorIn1() {
	mint.fx.Color("box1", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box1", "borderColor", null, "000000", 20, 500);
}
function ColorOut1() {
	mint.fx.Color("box1", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box1", "borderColor", null, "8F9D11", 20, 500);
}

function ColorIn2() {
	mint.fx.Color("box2", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box2", "borderColor", null, "000000", 20, 500);
}
function ColorOut2() {
	mint.fx.Color("box2", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box2", "borderColor", null, "8F9D11", 20, 500);
}

function ColorIn3() {
	mint.fx.Color("box3", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box3", "borderColor", null, "000000", 20, 500);
}
function ColorOut3() {
	mint.fx.Color("box3", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box3", "borderColor", null, "8F9D11", 20, 500);
}

function ColorIn4() {
	mint.fx.Color("box4", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box4", "borderColor", null, "000000", 20, 500);
}
function ColorOut4() {
	mint.fx.Color("box4", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box4", "borderColor", null, "8F9D11", 20, 500);
}

function ColorIn5() {
	mint.fx.Color("box5", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box5", "borderColor", null, "000000", 20, 500);
}
function ColorOut5() {
	mint.fx.Color("box5", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box5", "borderColor", null, "8F9D11", 20, 500);
}

function ColorIn6() {
	mint.fx.Color("box6", "backgroundColor", null, "3470a2", 20, 500);
	mint.fx.Color("box6", "borderColor", null, "000000", 20, 500);
}
function ColorOut6() {
	mint.fx.Color("box6", "backgroundColor", null, "ffffff", 20, 500);
	mint.fx.Color("box6", "borderColor", null, "8F9D11", 20, 500);
}

function validate(email) 
{
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	var address = document.forms[form_id].elements[email].value;
	if(reg.test(address) == false) 
	{
		alert('Niepoprawny adres e-mail!');
		return false;
	}
}

function wyslij_zapytanie()
{
	var req = null;
	req = mint.Request();   
	
	req.OnSuccess = function()
	{
		$("formularz_zapytania").innerHTML = this.responseText;
	}					
	req.SendForm("form", "wysylanie_zapytania.php");

}
