﻿function sendform(){
	
if(idForm.hotelid.value!=""){
	idForm.DateIn.value=idForm.frommonth.value+'/'+idForm.fromday.value+'/'+idForm.fromyear.value;
clickimage=new Image();
	clickimage.src="./bztrack.gif"+"?D"+idForm.fromday.value+"&M"+idForm.frommonth.value+"&Y"+idForm.fromyear.value+"&A"+idForm.Adults.value+"&C"+idForm.Children.value+"&N"+idForm.Length.value;
	idForm.submit();
	} else {
		alert("Por favor, seleccione un hotel.")
		}
	
}
function sendform_de(){
	
if(idForm.hotelid.value!=""){
	idForm.DateIn.value=idForm.frommonth.value+'/'+idForm.fromday.value+'/'+idForm.fromyear.value;
clickimage=new Image();
	clickimage.src="./bztrack.gif"+"?D"+idForm.fromday.value+"&M"+idForm.frommonth.value+"&Y"+idForm.fromyear.value+"&A"+idForm.Adults.value+"&C"+idForm.Children.value+"&N"+idForm.Length.value;
	idForm.submit();
	} else {
		alert("Wähle Sie ein Hotel.")
		}
	
}

function sendform_en(){
	
if(idForm.hotelid.value!=""){
	idForm.DateIn.value=idForm.frommonth.value+'/'+idForm.fromday.value+'/'+idForm.fromyear.value;
clickimage=new Image();
	clickimage.src="./bztrack.gif"+"?D"+idForm.fromday.value+"&M"+idForm.frommonth.value+"&Y"+idForm.fromyear.value+"&A"+idForm.Adults.value+"&C"+idForm.Children.value+"&N"+idForm.Length.value;
	idForm.submit();
	} else {
		alert("Please select a hotel.")
		}
	
}

function sendform_ru(){
	
if(idForm.hotelid.value!=""){
	idForm.DateIn.value=idForm.frommonth.value+'/'+idForm.fromday.value+'/'+idForm.fromyear.value;
clickimage=new Image();
	clickimage.src="./bztrack.gif"+"?D"+idForm.fromday.value+"&M"+idForm.frommonth.value+"&Y"+idForm.fromyear.value+"&A"+idForm.Adults.value+"&C"+idForm.Children.value+"&N"+idForm.Length.value;
	idForm.submit();
	} else {
		alert("ВЫБЕРИТЕ ОТЕЛЬ")
		}
	
}

function start()
{

var nbm = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
jour = 7;
MD=new Date();
nday=MD.getDate();
aday=MD.getDay();
amois=MD.getMonth();
ayear=MD.getYear();
nday += jour;
if(nday > nbm[amois])
{   		
	nday -= nbm[amois]; 
	amois++;  
	if(amois > 11) { ayear++; amois = 0; } }
document.idForm.fromday.selectedIndex = nday-1;
document.idForm.frommonth.selectedIndex = amois; 
document.idForm.fromyear.selectedIndex = ayear-2005;

}
