
	function Roomsonchange()
	{
		var unDiv = document.getElementById("divRooms");
		var formulario = document.getElementById("form10");
		suma=parseInt(formulario["tailor_single"].value)+parseInt(formulario["tailor_doublemat"].value)*2+parseInt(formulario["tailor_triple"].value)*3+parseInt(formulario["tailor_doubletwin"].value)*2;
	sumaRooms=parseInt(formulario["tailor_single"].value)+parseInt(formulario["tailor_doublemat"].value)+parseInt(formulario["tailor_triple"].value)+parseInt(formulario["tailor_doubletwin"].value);
	
if (sumaRooms!=1)
		{roomS =" rooms";
			}else
{roomS =" room";
		}

	if (suma!=0)
		{
			if (suma>1)
			{
				unDiv.innerHTML="<font color='#31761d'><b>You have requested "+sumaRooms+roomS+" for a total of  "+suma+" travelers.</b></font><br><br>";
			}else
			{
				unDiv.innerHTML="<font color='#31761d'><b>You have requested 1 room for 1 traveler.</b></font><br><br>";
			}
		}else
		{
			unDiv.innerHTML="";
		}
	} 

	function DiasMes(formID,SelectMes,divMain, divDays, selectName){
		var formulario = document.getElementById(formID);

	   switch(formulario[SelectMes].value) {
   	   case " on January":
      	case "1":
				cantidad= 31
				break
      	case " on February":
			case "2":
				cantidad= 29
				break
       	case " on March":
			case "3":
				cantidad= 31
				break
       	case " on April":
			case "4":
				cantidad= 30
				break
   	   case " on May":
			case "5":
				cantidad= 31
				break
	      case " on June":
			case "6":
				cantidad= 30
				break
	      case " on July":
			case "7":
				cantidad= 31
				break
	      case " on August":
			case "8":  
				cantidad= 31
				break
	      case " on September":
			case "9":
				cantidad= 30
				break
	      case " on October":
			case "10":
				cantidad= 31
				break
	      case " on November":
			case "11":
				cantidad= 30	
				break
	      case " on December":
			case "12":
				cantidad= 31
				break
	   }
		var d = document.getElementById(divMain);
		var olddiv = document.getElementById(divDays);
		d.removeChild(olddiv);
		var newdiv = document.createElement('div');
		newdiv.setAttribute('id',divDays);
		texto="<select name='"+selectName+"'><option value='0'>0<\/option>";
		for(c=1;c<=cantidad;c++){
			texto=texto+"<option value='"+c+"'>"+c+"<\/option>";
		}
	
		texto=texto+"<\/select>";
		newdiv.innerHTML = texto;;
		d.appendChild(newdiv);
	}
