function ShowImg(imgid)
{
    $('#'+imgid).show();
}
function HideImg(imgid)
{
    $('#'+imgid).hide();
}
function GetData(action,data,ret,loader)
{
	if(loader != undefined)
	{
        $('#'+ret).html('<div align="center"><img src=\'/userscript/'+loader+'.gif\' border=\'0\'  alt=\'\'/></div>');
	}
$.post(
	   '/userscript/backend.php?ajax='+action+'',
	   {
		   MDSE_data:data
	   },function (data){
           $('#'+ret).html(data.content);
		   eval(data.ajax)},
	   'json'
);
}
function SendQuest()
{
    if ($('#c_name').val().length < 3){confirm('Пожалуйста заполните поле Имя');return false;}
    if ($('#c_phone').val().length < 3){confirm('Пожалуйста заполните поле Телефон');return false;}
    if ($('#c_quest').val().length < 3){confirm('Пожалуйста заполните поле Вопрос');return false;}
    
    GetData('send','name<#>'+$('#c_name').val()+'<|>phone<#>'+$('#c_phone').val()+'<|>quest<#>'+$('#c_quest').val()+'','cont_return','ajax');
}
