function getWorkers(id,itemid,partid)
	{
		$.get("ajax.php", { funct: "GetFormWorkers", partid: partid, option: "com_content", view: "article", id: id, Itemid:itemid},
		  function(data)
		  	{
		    $("#WorkersResponse").html(data);
  			});
	}
function sendForm()
	{
	 var mail = $("#f0").val();
	 var person = $("#f1").val();
	 var pmail = $("#f2").val();
	 var topic = $("#f3").val();
	 var text = $("#t1").val();



 

		var character = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?");
		if( (character.test(pmail)) && (mail != "") && (text != "") && (person != "") && (topic !="") ) 
			{
				$.get("http://www.chodzen.pl/toyota-pulawska/ajax.php", { funct: "SendForm", mail: mail, person: person, pmail: pmail, topic: topic, text: text},
				  function(data)
				  	{		  	
				    $("#contForm").html(data);
		  			});	
			} 
		else 
			{
				alert("Poprawne wypełnienie wszystkich pól formularza jest warunkiem koniecznym do jego wysłania.");
			}
			  

	}

function CarOver(image,obj)
	{
	 var imgObj = $(obj);
	  
	 imgObj.fadeOut('fast',function(){imgObj.attr('src',image).css('margin','-22px 12px 0 -12px');});
	 imgObj.fadeIn('fast'); 
	}
function CarOut(image,obj)
	{
	 var imgObj = $(obj);
	 
	 imgObj.fadeOut('fast',function(){imgObj.attr('src',image).css('margin','0');})
	 $(obj).fadeIn('fast');	  
	}
