server='http://localhost/machines/'
server='http://www.sunstamper.pl/work/machines/'

function getContent(remoteUrl,where,pars)
{
var url = remoteUrl;

new Ajax.Updater(where, url, {method: 'post', parameters: pars});

}

function sendForm(formId)
{
x=checkForm(formId);
var inputs=new Array('email','name','subject');
inputs=inputs.without(x);
inputs.each(function(sos){
				//alert(sos);
				
					if($(sos+'_error').visible()==true){
					//alert(sos);
					$(sos+'_error').hide();
					  }
			
			}
			);

if (x!=true){

x.without(inputs).each(function(s)
				{
					//alert(s)
	//alert($(s+'_error').visible());
	$(s+'_error').appear();
	if($(s+'_error').visible()==false){
	//Effect.BlindDown(s+'_error');
	}
}
);
}
else
{
//alert(x);

	pars=$(formId).serialize();
	getContent(server+'info/send_message/','form_contener',pars);
}

}