var domain_link = 'http://www.reservationpage.com';
var mychainid = 'C00195';
var mycombo_2;
var lg = 1;
var date_arr = new Array; var days_arr = new Array; 
date_arr[0]=new Option("January",31); date_arr[1]=new Option("February",28); 
date_arr[2]=new Option("March",31); date_arr[3]=new Option("April",30); 
date_arr[4]=new Option("May",31); date_arr[5]=new Option("June",30); 
date_arr[6]=new Option("July",31); date_arr[7]=new Option("August",30); 
date_arr[8]=new Option("September",30); date_arr[9]=new Option("October",31); 
date_arr[10]=new Option("November",31); date_arr[11]=new Option("December");
date_arr[12]=new Option("January",31); date_arr[13]=new Option("February",28); 
date_arr[14]=new Option("March",31); date_arr[15]=new Option("April",30); 
date_arr[16]=new Option("May",31); date_arr[17]=new Option("June",30); 
date_arr[18]=new Option("July",31); date_arr[19]=new Option("August",30); 
date_arr[20]=new Option("September",30); date_arr[21]=new Option("October",31); 
date_arr[22]=new Option("November",31); date_arr[23]=new Option("December");
var right_now=new Date();

var current_year = right_now.getYear();
if (current_year==106) current_year = 1900 + right_now.getYear();
if (current_year==107) current_year = 1900 + right_now.getYear();
if (current_year==108) current_year = 1900 + right_now.getYear();
if (current_year==109) current_year = 1900 + right_now.getYear();
if (current_year==110) current_year = 1900 + right_now.getYear();

var current_year_2 = current_year + 1
var current_month = right_now.getMonth();
//alert(current_month +' '+ current_year );
function fill_select(f) {
    var y = 0;

    for(x=current_month;x<24;x++) {
       var y; 
       if (x > 11) { current_year = current_year_2 }
	 if (x == 0)  { y = 1 };
	 if (x == 1)  { y = 2 };
	 if (x == 2)  { y = 3 };
	 if (x == 3)  { y = 4 };
	 if (x == 4)  { y = 5 };
	 if (x == 5)  { y = 6 };
	 if (x == 6)  { y = 7 };
	 if (x == 7)  { y = 8 };
	 if (x == 8)  { y = 9 };
	 if (x == 9)  { y = 10 };
	 if (x == 10)  { y = 11 };
	 if (x == 11)  { y = 12 };
	 if (x == 12)  { y = 1 };
	 if (x == 13)  { y = 2 };
	 if (x == 14)  { y = 3 };
	 if (x == 15)  { y = 4 };
	 if (x == 16)  { y = 5 };
	 if (x == 17)  { y = 6 };
	 if (x == 18)  { y = 7 };
	 if (x == 19)  { y = 8 };
	 if (x == 20)  { y = 9 };
	 if (x == 21)  { y = 10 };
	 if (x == 22)  { y = 11 };
	 if (x == 23)  { y = 12 };

       document.writeln("<OPTION value=\""+y+' '+current_year+"\">"+date_arr[x].text+' '+current_year+"</"+"OPTION>");
    }

    
}


function start_cal() {
    fill_select(document.Form1);
}
/*****************************************************************/


function validate() {

	
var item_one = document.getElementById('combo_0').value;
var item_two = document.getElementById('combo_1').value;
var item_three = document.getElementById('combo_2').value;

//Country
if (document.getElementById('combo_0').value =="") { 
	alert('Missing Country') 
};

//City
if (document.getElementById('combo_1').value =="") { 
	alert('Missing City') 
};

//Hotel
if (document.getElementById('combo_2').value =="") { 
	alert('Missing Hotel') 
};

//Day
if (document.getElementById('day1').value =="") { 
	alert('Missing Number of Days') 
};

//Nights
if (document.getElementById('nightstay').value =="") { 
	alert('Missing Number of Nights') 
};
//Adults
if (document.getElementById('adults').value =="") { 
	alert('Missing Number of Adults') 
};

//send hotel ID, month, year, adults(1), children(0)
//alert("Combo One:" + item_one + "\nCombo Two:" +  item_two + "\nCombo Three:" + item_three);

	
	var mycombo_2;	
	var lg, language, promo;
	

	if (document.getElementById('monthyear1').value == '3 2005') {alert('Missing Month/Year')};
	if (document.getElementById('day1').value == '0') {alert('Missing Day')};
	if (document.getElementById('nightstay').value == '0') {alert('Missing Number of Nights')};
	if (document.getElementById('combo_2').value == '0') {alert('Missing Hotel Selection')};

	

	if ((document.getElementById('monthyear1').value !== '3 2005') && (document.getElementById('day1').value !== '0') && (document.getElementById('nightstay').value !== '0') && (document.getElementById('combo_2').value !== '0')) {

		mycombo_2 = document.getElementById('combo_2').value;
		var my = document.getElementById('monthyear1').value;
		var dy = document.getElementById('day1').value;
		var ns = document.getElementById('nightstay').value;
		var ad = document.getElementById('adults').value;
		var ch = document.getElementById('child').value;
		
		var newlink = domain_link+'/'+ mychainid+'/'+mycombo_2+'/pickdateteaser.aspx?date1='+my+'&nightstay='+ns+'&day1='+dy+'&ddadults='+ad+'&ddchildren='+ch+'&lg=1';
		//alert(newlink);
		//alert(my +'\n'+ dy);
		window.location.href = newlink;
	}

}
<!--
// first combo box //countries

	data_1 = new Option("1", "$");
	data_2 = new Option("2", "$$");
	data_3 = new Option("3", "$$$");
	data_4 = new Option("4", "$$$$");
	data_5 = new Option("5", "$$$$$");
	data_6 = new Option("6", "$$$$$$");
	
// second combo box  //cities
	data_1_1 = new Option("Buenos Aires", "*");
	data_2_1 = new Option("Paris", "--");
	data_3_1 = new Option("Belo Horizonte", "--");
	data_3_2 = new Option("Bzios", "--");
	data_3_3 = new Option("Fortaleza", "--");
	data_3_4 = new Option("Franca", "--");
	data_3_5 = new Option("Manaus", "--");
	data_3_6 = new Option("Paraty", "--");
	data_3_7 = new Option("Petrpolis", "--");
	data_3_8 = new Option("Ribeiro Preto ", "--");
	data_3_9 = new Option("Rio de Janeiro", "--");
	data_3_10 = new Option("Salvador", "--");
	data_3_11 = new Option("So Jos dos Campos", "--");
	data_3_12 = new Option("So Paulo", "--");
	data_4_1 = new Option("Lima", "--");
	data_5_1 = new Option("Lisbon", "--");
	data_6_1 = new Option("San Francisco", "--");
	
// third combo box   //combo_2
	
	data_1_1_1 = new Option("Claridge Hotel", "H00262");

	data_2_1_1 = new Option("Waldorf Madeleine Othon Palace", "H00267");
	data_2_1_2 = new Option("Waldorf Trocadero Othon Palace", "H00268");
	data_2_1_3 = new Option("Accias St. Germain Othon Classic ", "H00269");

	data_3_1_1 = new Option("Belo Horizonte Othon Palace", "H00261");
	data_3_2_1 = new Option("Colona Park Othon Classic", "H00271");
	data_3_2_2 = new Option("Colona Beach Othon Travel", "H00282");
	data_3_3_1 = new Option("Othon Palace Fortaleza", "H00693");
	data_3_3_2 = new Option("Iracema Othon Travel", "H00284");
	data_3_4_1 = new Option("Nena Suite Othon Classic", "H00273");
	data_3_5_1 = new Option("Jungle Othon Palace", "H00263");
	data_3_6_1 = new Option("Othon Pousada Villa Del Sol", "H00294");
	data_3_7_1 = new Option("Othon Pousada Riverside Park", "H00289");
	data_3_8_1 = new Option("Osis Othon Classic ", "H00274");
	data_3_9_1 = new Option("Rio Othon Palace ", "H00266");
	data_3_9_2 = new Option("Leme Othon Palace", "H00264");
	data_3_9_3 = new Option("Califrnia Othon Classic", "H00270");
	data_3_9_4 = new Option("Olinda Othon Classic", "H00275");
	data_3_9_5 = new Option("Aeroporto Othon Travel", "H00281");
	data_3_9_6 = new Option("Lancaster Othon Travel", "H00285");
	data_3_9_7 = new Option("Savoy Othon Travel", "H00287");
	data_3_9_8 = new Option("Trocadero Othon Travel", "H00288");
	data_3_10_1 = new Option("Bahia Othon Palace", "H00260");
	data_3_11_1 = new Option("Intervale Othon Travel", "H00283");
	data_3_12_1 = new Option("So Paulo Othon Classic", "H00279");
	data_3_12_2 = new Option("Bienal Othon Flat", "H00290");
	data_3_12_3 = new Option("Le Premier Othon Flat", "H00293");
	data_3_12_4 = new Option("London Othon Flat", "H00291");
	data_3_12_5 = new Option("The Time Paulo Othon Flat", "H00292");

	//data_3_1_4 = new Option("Renoir Othon Classic", "H00277");
	//data_3_1_5 = new Option("Rochambeau Othon Classic ", "H00278");
	//data_3_1_6 = new Option("Unic Othon Classic", "H00280");
	
	data_4_1_1 = new Option("Hotel del Pilar Miraflores Othon Classic", "H00272");
	data_5_1_1 = new Option("Olissipo Castelo Othon Palace", "H00265");
	data_5_1_2 = new Option("Olissippo Marques de S Othon Classic", "H00276");
	data_6_1_1 = new Option("Renoir Othon Classic", "H00295");
	
// other parameters

    displaywhenempty=""
    valuewhenempty=-1

    displaywhennotempty="Select"
    valuewhennotempty=0


function change(currentbox) {
	numb = currentbox.id.split("_");
	currentbox = numb[1];

    i=parseInt(currentbox)+1

// I empty all combo boxes following the current one

    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
           (document.getElementById("combo_"+i)!=null)) {
         son = document.getElementById("combo_"+i);
	     // I empty all options except the first one (it isn't allowed)
	     for (m=son.options.length-1;m>0;m--) son.options[m]=null;
	     // I reset the first option
	     son.options[0]=new Option(displaywhenempty,valuewhenempty)
	     i=i+1
    }


// now I create the string with the "base" name ("stringa"), ie. "data_1_0"
// to which I'll add _0,_1,_2,_3 etc to obtain the name of the combo box to fill

    stringa='data'
    i=0
    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
           (document.getElementById("combo_"+i)!=null)) {
           eval("stringa=stringa+'_'+document.getElementById(\"combo_"+i+"\").selectedIndex")
           if (i==currentbox) break;
           i=i+1
    }


// filling the "son" combo (if exists)

    following=parseInt(currentbox)+1

    if ((eval("typeof(document.getElementById(\"combo_"+following+"\"))!='undefined'")) &&
       (document.getElementById("combo_"+following)!=null)) {
       son = document.getElementById("combo_"+following);
       stringa=stringa+"_"
       i=0
       while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0)) {

       // if there are no options, I empty the first option of the "son" combo
	   // otherwise I put "Select" in it

	   	  if ((i==0) && eval("typeof("+stringa+"0)=='undefined'"))
	   	      if (eval("typeof("+stringa+"1)=='undefined'"))
	   	         eval("son.options[0]=new Option(displaywhenempty,valuewhenempty)")
	   	      else
	             eval("son.options[0]=new Option(displaywhennotempty,valuewhennotempty)")
	      else
              eval("son.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)")
	      i=i+1
	   }
       //son.focus()
       i=1
       combostatus=''
       cstatus=stringa.split("_")
       while (cstatus[i]!=null) {
          combostatus=combostatus+cstatus[i]
          i=i+1
          }
       return combostatus;
    }
}