function win()
{
 
	//Hotels.com
     if (document.getElementById("chHotelscom").checked == true)
        {
            var strSite = document.getElementById("chHotelscom").value;
            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + 'search.do?children[0]=0&showSimilarDestinations=true&searchParams.arrivalDate=' + strSPaiva + '-' + strSKuukausi + '-' + strSVuosi + '&searchParams.departureDate=' + strLPaiva + '-' + strLKuukausi + '-' + strLVuosi + '&searchParams.rooms[0].numberOfAdults=2&queryFormState=CLOSED&page=1&activeTab=DESTINATION&searchParams.sortOrder=BEST_SELLER&rooms=1&destination=' + strKaupunki + ')';

		window.open(url);

        }



	//Bookingcom
     if (document.getElementById("chBooking").checked == true)
        {
            var strSite = document.getElementById("chBooking").value;

            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + '&lang=fi&return_url=http%3A%2F%2Fbooking.com%2Fsearchresults.html&found_addresses=&error_url=http%3A%2F%2Fbooking.com%2Findex.html%3F&order=&addressAddress=&addressCity=&addressZIP=&addressCountry=&si=ai%2Cco%2Cci%2Cre&ss=' + strKaupunki + '&checkin_monthday=' + strSPaiva + '&checkin_year_month=' + strSVuosi + '-' + strSKuukausi + '&checkout_monthday=' + strLPaiva + '&checkout_year_month=' + strLVuosi + '-' + strLKuukausi + '&radius=';
		
		window.open(url);
        }



	//HotelsCombined.com
     if (document.getElementById("chHotelscombined").checked == true)
        {
            var strSite = document.getElementById("chHotelscombined").value;
            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + '&fileName=' + strKaupunki + '&checkin=' + strSVuosi + '-' + strSKuukausi + '-' + strSPaiva + '&checkout=' + strLVuosi + '-' + strLKuukausi + '-' + strLPaiva + '&languageCode=EN&brandId=null&Adults=1&Rooms=1';


		window.open(url);

        }


	//Hotel.info 
     if (document.getElementById("chHotelinfo").checked == true)
        {
            var strSite = document.getElementById("chHotelinfo").value;
            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + '&hs_destination=' + strKaupunki + '&hs_ltype=1&hs_arrival=' + strSPaiva + '/' + strSKuukausi + '/' + strSVuosi + '&hs_departure=' + strLPaiva + '/' + strLKuukausi + '/' + strLVuosi + '&hs_circum=0&hs_validate=1&hs_landisoa3=FIN' ;

		window.open(url);

        }
        
        //eBookers.fi
     if (document.getElementById("chEbookers").checked == true)
        {
            var strSite = document.getElementById("chEbookers").value;
            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + 'hotelsearch?type=hotel&hotel.typeOfSearch=keyword&hotel.locationKeywordInput.key=' + strKaupunki + '&hotel.locationAddressInput.addressInput.countryCode=FI&hotel.locationAddressInput.addressInput.addressLine1=&hotel.locationAddressInput.addressInput.city=&hotel.locationAddressInput.addressInput.stateProvinceCode=&hotel.locationAddressInput.addressInput.postalCode=&hotel.hotelSearchDetails.checkinDate=' + strSPaiva + '.' + strSKuukausi + '.' + strSVuosi + '&hotel.hotelSearchDetails.checkoutDate=' + strLPaiva + '.' + strLKuukausi + '.' + strLVuosi + '&hotel.hotelSearchDetails.numberOfRooms=1&hotel.hotelSearchDetails.rooms[0].numberOfAdults=2&hotel.hotelSearchDetails.rooms[1].numberOfAdults=1&hotel.hotelSearchDetails.rooms[2].numberOfAdults=1&hotel.hotelSearchDetails.rooms[3].numberOfAdults=1&hotel.hotelRating=&hotel.hotelChain=&hotel.hotelName=&search=Etsi)';

		window.open(url);

        }

	//RatesToGo.com
     if (document.getElementById("chRatestogo").checked == true)
        {
            var strSite = document.getElementById("chRatestogo").value;
            strKaupunki = escape(document.getElementById("txtKaupunki").value);
		strLKuukausi = escape(document.getElementById("lKuukausi").value);
		strSPaiva = escape(document.getElementById("sPaiva").value);
		strLPaiva = escape(document.getElementById("lPaiva").value);
		strSKuukausi = escape(document.getElementById("sKuukausi").value);
		strSVuosi = escape(document.getElementById("sVuosi").value);
		strLVuosi = escape(document.getElementById("lVuosi").value);
		
		var url = strSite + 'inDate=' + strSVuosi + '-' + strSKuukausi + '-' + strSPaiva + '&outDate=' + strLVuosi + '-' + strLKuukausi + '-' + strLPaiva + '&country=Finland&star5=true&star4=true&star3=true&city=' + strKaupunki + ')';

		window.open(url);

        }
        

    
}
