function gentur()
{
	var selectcountry = jQuery('#selectcountry').val();        
        var select2 = jQuery('#select2').val();
	var selecttype2 = jQuery('#selecttype2').val();
        var valute = jQuery('#valute').val();
        //var type_export = jQuery('#type_export').val();
	
	 jQuery.ajax({
                type: "POST",
                url: "/js/gentur.php",
              
                data: "selectcountry="+selectcountry+"&select2="+select2+"&select3="+selecttype2+"&valute="+valute,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function createxportprice()
{
	
        
        
	var select4 = jQuery('#select4').val();
        var valute = jQuery('#valute').val();
        var type_export = jQuery('#type_export').val();
        
	
	 jQuery.ajax({
                type: "POST",
                url: "/js/createxportprice.php",
              
                data: "select4="+select4+"&valute="+valute+"&type_export="+type_export,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function createxport()
{
	var selectcountry = jQuery('#selectcountry').val();
        var type = jQuery('#type').val();
        var select2 = jQuery('#select2').val();
	var select3 = jQuery('#select3').val();
        var valute = jQuery('#valute').val();
        var type_export = jQuery('#type_export').val();
	
	 jQuery.ajax({
                type: "POST",
                url: "/js/createxport.php",
              
                data: "type="+type+"&selectcountry="+selectcountry+"&select2="+select2+"&select3="+select3+"&valute="+valute+"&type_export="+type_export,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function searchturs(id)
{
	var placeid = jQuery('#selectcountry').val();
        var placeid2 = jQuery('#select2').val();
	var typeid = jQuery('#typeid').val();
	
	 jQuery.ajax({
                type: "POST",
                url: "/js/ajax_searchtur.php",
                data: "id="+id+"&placeid="+placeid+"&typeid="+typeid+"&placeid2="+placeid2,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function exchange(id,id_obj) //пересчет цен
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/templates/jscripts/ajax_exchange.php",
                data: "id="+id+"&id_obj="+id_obj,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#price").empty();
                        jQuery("#price").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}

function exchangetrans(id,id_city) // пересчет трансферов
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/ajax_pricetrans.php",
                data: "id="+id+"&id_city="+id_city,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#pricetrans").empty();
                        jQuery("#pricetrans").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}

function exchangetrans2(id,id_city) // пересчет трансферов
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/ajax_pricetrans2.php",
                data: "id="+id+"&id_city="+id_city,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#pricetrans").empty();
                        jQuery("#pricetrans").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function exchangetranstr(id,id_city) // пересчет трансферов
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/ajax_pricetranstr.php",
                data: "id="+id+"&id_city="+id_city,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#pricetrans").empty();
                        jQuery("#pricetrans").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}


function exchangetur(id,id_obj)//туры пересчет
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/templates/jscripts/ajax_exchangetur.php",
                data: "id="+id+"&id_obj="+id_obj,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#price").empty();
                        jQuery("#price").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function add_otzivtur(id)
{
	var name = jQuery('#textfield2').val();
	var mail = jQuery('#textfield3').val();
	var text = jQuery('#textfield5').val();
	 jQuery.ajax({
                type: "POST",
                url: "/js/add_otzivtur.php",
                data: "id="+id+"&name="+name+"&mail="+mail+"&text="+text,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}

function add_otziv(id)
{
	var name = jQuery('#textfield2').val();
	var mail = jQuery('#textfield3').val();
	var text = jQuery('#textfield5').val();
	 jQuery.ajax({
                type: "POST",
                url: "/js/add_otziv.php",
                data: "id="+id+"&name="+name+"&mail="+mail+"&text="+text,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function add_useragent()
{
	var login = jQuery('#login').val();
	var pass = jQuery('#pass').val();
	var mail = jQuery('#mail').val();
	var comp = jQuery('#comp').val();
	var city = jQuery('#city').val();
	var fio = jQuery('#fio').val();
	 jQuery.ajax({
                type: "POST",
                url: "/js/add_useragent.php",
                data: "login="+login+"&pass="+pass+"&mail="+mail+"&comp="+comp+"&city="+city+"&fio="+fio,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result").empty();
                        jQuery("#result").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function regionlisttur() //регионы для расширеного поиска
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');
				var id = jQuery('#selectcountry').val();
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/ajax_placelist.php",
                data: "id="+id,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#select2").empty();
                        jQuery("#select2").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}


	






