function Report()
{var old_property;var sold_property;var not_exist_user;var other_reason;if(document.getElementById("report_old").checked)
old_property=1;if(document.getElementById("report_sold").checked)
sold_property=1;if(document.getElementById("report_not_exist_user").checked)
not_exist_user=1;if(document.getElementById("report_other").checked)
other_reason=1;url=document.getElementById("write_friend_url").value;city=document.getElementById("write_city").value;region=document.getElementById("write_region").value;prop_id=document.getElementById("write_prop_id").value;country_id=document.getElementById("write_country_id").value;ip_ip=document.getElementById("ip").value;cur_lang=document.getElementById("cur_lang_email").value;report_ok=document.getElementById("report_estate_ok").value;report_limit=document.getElementById("report_limit").value;$.post('/report.php',{url:url,city:city,region:region,prop_id:prop_id,country_id:country_id,ip:ip_ip,cur_lang_email:cur_lang,old_property:old_property,sold_property:sold_property,not_exist_user:not_exist_user,other_reason:other_reason},function(returned_data)
{if(returned_data=="ok")
alert(report_ok);else
if(returned_data=="limit")
alert(report_limit);})}
function DeleteReport(id)
{$.post('/report_delete.php',{id:id},function(returned_data)
{if(returned_data=="ok")
{$("#report_"+id).remove();}})}
