function send_over(id) {
	$('btn_send_'+id).style.top = '-49px';
}

function send_out(id) {
	$('btn_send_'+id).style.top = '0px';
}

function submit_hcon(id) {
	$('hcon_notification_'+id).innerHTML = "<span style='color:#FF8040'>[ Sending info... ]</span>";
	
	if (($('hcon_email_'+id).value == '') && ($('hcon_phone_'+id).value == '')) {
		$('hcon_notification_'+id).innerHTML = "<span>Please provide your e-mail or phone.</span>";
	} else {
		new Ajax.Request('/pricing/help', {
			method: 'POST',
			parameters: {name: $('hcon_name_'+id).value,
			             email: $('hcon_email_'+id).value,
			             phone: $('hcon_phone_'+id).value,
			             hcon: id
			            },
			onSuccess: function(transport) {
				if (transport.responseText == '1') {
					$('hcon_notification_'+id).innerHTML = "<span style='color:#0A0'>Thanks! We'll be in touch soon.</span>";
					$('hcon_name_'+id).value = '';
					$('hcon_email_'+id).value = '';
					$('hcon_phone_'+id).value = '';
				}
			},
			onFailure: function (transport) {
				$('hcon_notification_'+id).innerHTML = "<span style='color:#F00'>[ Server error. <a style='color:#F00' href='javascript:submit_hcon(" + id + ")'>Try again</a>. ]</span>";
			}
		});
	}
}

