function feedback(){
	$.post("module/feedback/template_feedback.html",call_feedback);	
}
function call_feedback(data){
	$.prompt(data,{ prefix: 'jcs',buttons:{' ':true},submit:send_message});
}
function send_message(v,m,f){
	f1 = $('#error_1');
	f2 = $('#error_2');
	
	f1.css("display","none");
	f2.css("display","none");
	
	if(f.feed_name=='' || f.feed_phone==''){
		
		
		if(f.feed_name==''){
			f1.css("display","block");
			
		}
		if(f.feed_phone==''){
			f2.css("display","block");
			
		}
		return false;
	}
	else{
		$.post("module/feedback/send_mail.php",{'name':f.feed_name,'phone':f.feed_phone,'fromtime':f.fromtime,'tilltime':f.tilltime,'feed_message':f.feed_message},call_send_mail);
	}
	
}
function call_send_mail(data){
	$.prompt(data,{prefix:'notify',buttons:{' ':true},timeout:2000});	
}