function minimum(dz,ss)
{


dz=document.form.numberofdays.options[document.form.numberofdays.selectedIndex].value;

//window.alert(dz);

arrivalday=document.form.arrivalday.options[document.form.arrivalday.selectedIndex].value;
arrivalmonth=document.form.arrivalmonth.options[document.form.arrivalmonth.selectedIndex].value;
arrivalyear=document.form.arrivalyear.options[document.form.arrivalyear.selectedIndex].value;

lang=document.form.lang.value;

sstemp = new Date(arrivalyear,arrivalmonth-1,arrivalday);
ss = sstemp.getTime();



//2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 2009 

// SEMANA SANTA MIN 5
hsdate="8/4/2009";
hedate="9/4/2009";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}

// PUENTE DE MAYO MIN 3
hsdate="1/5/2009";
hedate="3/5/2009";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 3 ))
{
texteng = "On these dates there is a minimum booking requirement of 3 nights.";
textspan = "En estas fechas el mínimo de noches es 3";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}


// OCTOBRER
hsdate="9/10/2009";
hedate="12/10/2009";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 3 ))
{
texteng = "On these dates there is a minimum booking requirement of 3 nights.";
textspan = "En estas fechas el mínimo de noches es 3";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// PUENTE INMAC MIN 3
hsdate="4/12/2009";
hedate="8/12/2009";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// NAVIDAD MIN 5
//hsdate="31/12/2009";
//hedate="1/1/2010";
//overlap(ss,dz,hsdate,hedate)
//if (hold > 0 && (dz < 3 ))
//{
//texteng = "On these dates there is a minimum booking requirement of 3 nights.";
//textspan = "En estas fechas el minimo de noches es 3";
//
//if (lang == "english")
//{text = texteng}
//if (lang == "spanish")
//{text = textspan}
//
//window.alert(text)
//return false;
//}

//2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 

// SEMANA SANTA MIN 5
hsdate="31/3/2010";
hedate="1/4/2010";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}

// PUENTE DE MAYO MIN 3
hsdate="1/5/2010";
hedate="3/5/2010";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 2 ))
{
texteng = "On these dates there is a minimum booking requirement of 2 nights.";
textspan = "En estas fechas el mínimo de noches es 2";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}


// OCTOBRER
hsdate="9/10/2010";
hedate="12/10/2010";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 3 ))
{
texteng = "On these dates there is a minimum booking requirement of 3 nights.";
textspan = "En estas fechas el mínimo de noches es 3";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// PUENTE INMAC MIN 3
hsdate="4/12/2010";
hedate="8/12/2010";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// NAVIDAD MIN 5
hsdate="31/12/2010";
hedate="1/1/2011";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}

//2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 

// SEMANA SANTA MIN 5
hsdate="20/4/2011";
hedate="21/4/2011";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}

// PUENTE DE MAYO MIN 3
hsdate="1/5/2011";
hedate="3/5/2011";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 3 ))
{
texteng = "On these dates there is a minimum booking requirement of 3 nights.";
textspan = "En estas fechas el mínimo de noches es 3";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}


// OCTOBRER
hsdate="9/10/2011";
hedate="12/10/2011";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 3 ))
{
texteng = "On these dates there is a minimum booking requirement of 3 nights.";
textspan = "En estas fechas el mínimo de noches es 3";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// PUENTE INMAC MIN 3
hsdate="4/12/2011";
hedate="8/12/2011";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}



// NAVIDAD MIN 5
hsdate="31/12/2011";
hedate="1/1/2012";
overlap(ss,dz,hsdate,hedate)
if (hold > 0 && (dz < 4 ))
{
texteng = "On these dates there is a minimum booking requirement of 4 nights.";
textspan = "En estas fechas el minimo de noches es 4";

if (lang == "english")
{text = texteng}
if (lang == "spanish")
{text = textspan}

window.alert(text)
return false;
}

}

////////////////////////////////////////////////////////////////





