function chksmg()
	{
		
		if (document.sendmsg.message.value=="")    
			{
				alert("Введите, пожалуйста, сообщение");    
				document.sendmsg.message.focus();
				return false;     
			}
				
		if (document.sendmsg.phone.value=="")    
			{
				alert("Введите, пожалуйста, номер телефона");    
				document.sendmsg.message.focus();
				return false;     
			}
		if (document.sendmsg.email.value=="")    
		{
				alert("Введите, пожалуйста, адрес электронной почты");    
				document.sendmsg.email.focus();
				return false;     
		}
		
		name = document.sendmsg.name.value;
		email = document.sendmsg.email.value;
		phone = document.sendmsg.phone.value;
		company = document.sendmsg.company.value;
		message = document.sendmsg.message.value;
		art = document.sendmsg.art.value;
		if (document.fkol) {
			kol = document.fkol.kol.value;
		}

		if(art==0)
		{
			getVote(name,email,phone,company,message,0,0);
			document.getElementById('descr').style.display = 'none';
		}
		else if(kol<2)
		{
			getVote(name,email,phone,company,message,art,0);
			document.getElementById('descr').style.display = 'none';
		}
		else
		{
			getVote(name,email,phone,company,message,art,kol);
			document.getElementById('descr').style.display = 'none';
		}
		
		
	}
	
jQuery.noConflict();

function getVote(name,email,phone,company,message,art,kol)
	{
		
		jQuery("#msgform").hide(); 
		jQuery("#snake").show();
		
		jQuery.post("send_msg.php", { name: name, email: email, phone: phone, company: company, message: message, art: art, kol: kol },
			function(data) {
				jQuery("#msg").html(data);
			});
	}
