function sendContactSite(form_object, prefix)
{
	var form_validator = new formValidator(form_object, '../includes/helpers/get_contact_edit_results.php', {'Prefix':prefix, 'CloseOnSubmit':'true'});
	if(form_validator.send())
	{
		setTimeout("document.documentElement.scrollTop = 0; document.body.scrollTop = 0;", 200);
	}
}
function sendContact(form_object, prefix)
{
	var form_validator = new formValidator(form_object, '../modules/object/helpers/_30_user_send_feedback.php', {'Prefix':prefix, Callback:'callbackfunction(reply)'});
	if(form_validator.send())
	{
		setTimeout("document.documentElement.scrollTop = 0; document.body.scrollTop = 0;", 200);
	}
}
function sendContactClient(form_object, prefix)
{
	var form_validator = new formValidator(form_object, '../modules/object/helpers/_30_client_send_feedback.php', {'Prefix':prefix, Callback:'callbackfunctionClient(reply)'});
	if(form_validator.send())
	{
		setTimeout("document.documentElement.scrollTop = 0; document.body.scrollTop = 0;", 200);
	}
}

function callbackfunction(a)
{
	$('#alertMessage').hide();
	$('#messageSent').hide();

	if (a.substring(0, 2) == 'ok')
	{
		$.post("../modules/object/helpers/_30_user_feedback.php", { id:0 } ,
			function(reply)
			{
				$('#menu-popup-content').html(reply);
				$('#messageSent').slideDown(500);
				setTimeout("$('#messageSent').slideUp(500);", 5000);
			}
		);
	} else
	{
		$('#alertMessage').html(a)
		$('#alertMessage').slideDown(500)
		//setTimeout("$('#alertMessage').slideUp(500);", 5000);
	}
}
function callbackfunctionClient(a)
{
	$('#alertMessage').hide();
	$('#messageSent').hide();

	if (a.substring(0, 2) == 'ok')
	{
		var tempa = a.split('|');
		$.post("../modules/object/helpers/_30_client_feedback.php", { id:0, user_id:tempa[1]} ,
			function(reply)
			{
				$('#menu-popup-content').html(reply);
				$('#messageSent').slideDown(500);
				setTimeout("$('#messageSent').slideUp(500);", 5000);
			}
		);
	} else
	{
		$('#alertMessage').html(a)
		$('#alertMessage').slideDown(500)
		//setTimeout("$('#alertMessage').slideUp(500);", 5000);
	}
}

function radioSelected(prefix, name)
{
	document.getElementById(prefix + name + "_empty").style.display = "none";
}
