function CForm(NomeCampo, Anchor){
	nc=$(NomeCampo);
	an=Anchor;
	if(!$('BD_CFormMore').visible()){
		Effect.SlideDown('BD_CFormMore');
		$('BD_FAlert').show();
		//Effect.Grow('BD_CFormMore');
		setTimeout("scwShow(nc, an)", 1250);
	} else scwShow(nc, an);
}

function SendMail(theForm){
	var timestamp = new Date(); //EVITA LA CACHE DEL FILE ;)
	//alert(tmpName);
	new Ajax.Updater('form_results', '/includes/contactform.php?' + timestamp.getTime(), {
			asynchronous: true,
			method      : 'post',
			parameters  : $(theForm).serialize(),
			onLoading   : function(rq){$('form_results').hide();$('form_wait').show();},
			onComplete  : function(rq){$('form_wait').hide();$('form_results').show();},
			onFailure   : function(rq){alert('Errore ' + rq.status + ' -- ' + rq.statusText);}
		}
	);
}

function SendMail_eng(theForm){
	var timestamp = new Date(); //EVITA LA CACHE DEL FILE ;)
	//alert(tmpName);
	new Ajax.Updater('form_results', '/includes/contactform_eng.php?' + timestamp.getTime(), {
			asynchronous: true,
			method      : 'post',
			parameters  : $(theForm).serialize(),
			onLoading   : function(rq){$('form_results').hide();$('form_wait').show();},
			onComplete  : function(rq){$('form_wait').hide();$('form_results').show();},
			onFailure   : function(rq){alert('Errore ' + rq.status + ' -- ' + rq.statusText);}
		}
	);
}


function GBForm(){
	if(!$('BD_CFormMore').visible()){
		Effect.SlideDown('BD_CFormMore');
		$('BD_FAlert').show();
	}
}

function GBSign(theForm){
	var timestamp = new Date(); //EVITA LA CACHE DEL FILE ;)
	//alert(tmpName);
	new Ajax.Updater('form_results', '/includes/gb_form.php?' + timestamp.getTime(), {
			asynchronous: true,
			method      : 'post',
			parameters  : $(theForm).serialize(),
			onLoading   : function(rq){$('form_results').hide();$('form_wait').show();},
			onComplete  : function(rq){$('form_wait').hide();$('form_results').show();},
			onFailure   : function(rq){alert('Errore ' + rq.status + ' -- ' + rq.statusText);}
		}
	);
}

function GBSign_eng(theForm){
	var timestamp = new Date(); //EVITA LA CACHE DEL FILE ;)
	//alert(tmpName);
	new Ajax.Updater('form_results', '/includes/gb_form_eng.php?' + timestamp.getTime(), {
			asynchronous: true,
			method      : 'post',
			parameters  : $(theForm).serialize(),
			onLoading   : function(rq){$('form_results').hide();$('form_wait').show();},
			onComplete  : function(rq){$('form_wait').hide();$('form_results').show();},
			onFailure   : function(rq){alert('Errore ' + rq.status + ' -- ' + rq.statusText);}
		}
	);
}
