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

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function city_cpo_list() //регионы для расширеного поиска
{
                //jQuery.("#load").show('fast');
                //jQuery.("#load").fadeIn('slow');

				var id = jQuery('#selectcountry').val();
				//alert(id);
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/cityspo.php",
                data: "id="+id,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#select3").empty();
                        jQuery("#select3").append(html);

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

function searchspo() //расширеный поиск
{
         var id_country = jQuery('#selectcountry').val();
		 var id_city = jQuery('#select3').val();
		 var datestart = jQuery('#textfieldstart').val();
		 var datefinish = jQuery('#textfieldfinish').val();
		 var id_type = jQuery('#select2').val();
		// var id_lech = jQuery('#select7').val();
		 //var id_deti = jQuery('#select8').val();
        // Отсылаем паметры
        jQuery.ajax({
                type: "POST",
                url: "/js/ajax_searchspo.php",
                data: "id_country="+id_country+"&id_city="+id_city+"&datestart="+datestart+"&datefinish="+datefinish+"&id_type="+id_type,
                // Выводим то что вернул PHP
                success: function(html){
                        //$("#mess-"+id).slideUp('slow');
                        jQuery("#result1").empty();
                        jQuery("#result1").append(html);

                        // Убираем хрень
                        //jQuery.("#load").fadeOut('slow');
                }
        });
}
function transfer() //трансферы поиск
{
        var typ = jQuery('#typ').val();
	var typ2 = jQuery('#typ2').val();

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

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





