
function submitHotel(form) {
var dt,mn,yr,nn,na,nr,price,location,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10
var url;

var tDay=new Date();
var fDay=new Date();
fDay.setDate(form.dt.value);
fDay.setMonth((form.mn.value)-1);
fDay.setFullYear(form.yr.value);

/*if (tDay.getFullYear() >= fDay.getFullYear() ) { 
  if (tDay.getMonth() >= fDay.getMonth() ) {
    if (tDay.getDate() >= fDay.getDate() ) {*/
if(fDay.getTime()<tDay.getTime()){
alert("Please choose a Date later then Today");  return; }
/*}}*/


 if (form.loc != undefined ){
 if (form.loc.value == "")
  { alert("Please chose location");form.loc.focus();  return; }
 }
for (lan=1;lan<=parseInt(form.nr.value);lan++) {

  if ( eval("form.all('chr"+lan+"')").value != "0")
    for (lan2=1;lan2<=parseInt( eval("document.all('chr"+lan+"')").value);lan2++) {
     if ( eval("document.all('ch"+lan2+"r"+lan+"')").value == "0")
       { alert("Please include the Child "+lan2+" age for room"+lan);  eval("document.all('ch"+lan2+"r"+lan+"')").focus(); return; }  
	} 
} 

url="?dt="+form.dt.value+"&mn="+form.mn.value+"&yr="+form.yr.value+"&nn="+form.nn.value+"&nr="+form.nr.value;
 if (form.loc != undefined ){
  url+="&location="+form.loc.value;
 }
for (lan=1;lan<=parseInt(form.nr.value);lan++) {
  url=url+"&na"+lan+"="+eval("document.all('na"+lan+"')").value;
  if ( eval("document.all('chr"+lan+"')").value != "0")
    url=url+"&chr"+lan+"="+eval("document.all('chr"+lan+"')").value
    for (lan2=1;lan2<=parseInt( eval("document.all('chr"+lan+"')").value);lan2++) {
    		url=url+"&ch"+lan2+"r"+lan+"="+eval("document.all('ch"+lan2+"r"+lan+"')").value; 
	} 
} 
if (price!="0")
 url=url+"&price="+price;


if (form.hotel_id != undefined ){
	url="/jsp/offer.jsp"+url+"&hotel_id="+form.hotel_id.value+"&name="+form.name.value;
}else{
	url="/jsp/offer list.jsp"+url;
}
document.location.href=url;

}



function Add_A_Favorite() 
{ 
if (window.external) 
// if the browser is IE open the add favorite window
{
external.AddFavorite("http://www.cupotico.com", document.title)
// Add the document location and title to the AddFavorite window parent.parent.location.href
}
else 
// Display and alert box for any other browser.
{
alert("Sorry, your browser doesn't support this feature." + 
"\nPlease use the bookmark feature of your browser to save the location of this page.");
}

}

function mmLoadMenus() { 
  if (window.mm_menu_0705205059_0) return;
   window.mm_menu_0705205059_0_1 = new Menu("Central Valley",110,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
    mm_menu_0705205059_0_1.addMenuItem("SAN JOSE","location='http://www.cupotico.com/cities/hotels%20San%20Jose.html'");
    mm_menu_0705205059_0_1.addMenuItem("TURRIALBA","location='http://www.cupotico.com/cities/hotels%20Turrialba.html'");
	mm_menu_0705205059_0_1.addMenuItem("CANO NEGRO","location='http://www.cupotico.com/cities/hotels%20Cano%20Negro.html'");
	mm_menu_0705205059_0_1.addMenuItem("SAN RAMON","location='http://www.cupotico.com/cities/hotels%20San%20Ramon.html'");
     mm_menu_0705205059_0_1.hideOnMouseOut=true;
     mm_menu_0705205059_0_1.bgColor='#555555';
     mm_menu_0705205059_0_1.menuBorder=1;
     mm_menu_0705205059_0_1.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_1.menuBorderBgColor='#777777';
    window.mm_menu_0705205059_0_2 = new Menu("North Pacific",163,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
    mm_menu_0705205059_0_2.addMenuItem("TAMARINDO","location='http://www.cupotico.com/cities/hotels%20Tamarindo.html'");
    mm_menu_0705205059_0_2.addMenuItem("FLAMINGO BEACH","location='http://www.cupotico.com/cities/hotels%20Flamingo.html'");
    mm_menu_0705205059_0_2.addMenuItem("PAPAGAYO","location='http://www.cupotico.com/cities/hotels%20Papagayo.html'");
    mm_menu_0705205059_0_2.addMenuItem("NOSARA","location='http://www.cupotico.com/cities/hotels%20Nosara.html'");
    mm_menu_0705205059_0_2.addMenuItem("SAMARA","location='http://www.cupotico.com/cities/hotels%20Samara.html'");
    mm_menu_0705205059_0_2.addMenuItem("MAL PAIS","location='http://www.cupotico.com/cities/hotels%20Mal%20Pais.html'");
    mm_menu_0705205059_0_2.addMenuItem("MONTEZUMA","location='http://www.cupotico.com/cities/hotels%20Montezuma.html'");
    mm_menu_0705205059_0_2.addMenuItem("TAMBOR","location='http://www.cupotico.com/cities/hotels%20Tambor.html'");
	mm_menu_0705205059_0_2.addMenuItem("PLAYA NEGRA","location='http://www.cupotico.com/cities/hotels%20Playa%20Negra.html'");
	mm_menu_0705205059_0_2.addMenuItem("JUNQUILLAL","location='http://www.cupotico.com/cities/hotels%20Junquillal.html'");
	mm_menu_0705205059_0_2.addMenuItem("SANTA CRUZ","location='http://www.cupotico.com/cities/hotels%20Santa%20Cruz.html'");
	mm_menu_0705205059_0_2.addMenuItem("PLAYA HERMOSA - GUANACASTE","location='http://www.cupotico.com/cities/hotels%20Playa%20Hermosa%20Guanacaste.html'");
	mm_menu_0705205059_0_2.addMenuItem("PLAYA DEL COCO","location='http://www.cupotico.com/cities/hotels%20Playa%20Del%20Coco.html'");
mm_menu_0705205059_0_2.addMenuItem("LIBERIA","location='http://www.cupotico.com/cities/hotels%20Liberia.html'");
     mm_menu_0705205059_0_2.hideOnMouseOut=true;
     mm_menu_0705205059_0_2.bgColor='#555555';
     mm_menu_0705205059_0_2.menuBorder=1;
     mm_menu_0705205059_0_2.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_2.menuBorderBgColor='#777777';
    window.mm_menu_0705205059_0_3 = new Menu("Central Pacific",167,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
     mm_menu_0705205059_0_3.addMenuItem("MANUEL&nbsp;ANTONIO","location='http://www.cupotico.com/cities/hotels%20Manuel%20Antonio.html'");
     mm_menu_0705205059_0_3.addMenuItem("JACO","location='http://www.cupotico.com/cities/hotels%20Jaco.html'");
     mm_menu_0705205059_0_3.addMenuItem("PLAYA&nbsp;HERMOSA","location='http://www.cupotico.com/cities/hotels%20Playa%20Hermosa.html'");
     mm_menu_0705205059_0_3.addMenuItem("PLAYA&nbsp;HERADURA","location='http://www.cupotico.com/cities/hotels%20Playa%20Heradura.html'");
     mm_menu_0705205059_0_3.addMenuItem("ESTERILLOS","location='http://www.cupotico.com/cities/hotels%20Esterillos.html'");
     mm_menu_0705205059_0_3.addMenuItem("BEJUCO","location='http://www.cupotico.com/cities/hotels%20Bejuco.html'");
     mm_menu_0705205059_0_3.addMenuItem("DOMINICAL","location='http://www.cupotico.com/cities/hotels%20Dominical.html'");
	 mm_menu_0705205059_0_3.addMenuItem("PUNTARENAS","location='http://www.cupotico.com/cities/hotels%20Puntarenas.html'");
     mm_menu_0705205059_0_3.hideOnMouseOut=true;
     mm_menu_0705205059_0_3.bgColor='#555555';
     mm_menu_0705205059_0_3.menuBorder=1;
     mm_menu_0705205059_0_3.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_3.menuBorderBgColor='#777777';
    window.mm_menu_0705205059_0_4 = new Menu("Northern Territories",180,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
     mm_menu_0705205059_0_4.addMenuItem("ARENAL","location='http://www.cupotico.com/cities/hotels%20Arenal.html'");
     mm_menu_0705205059_0_4.addMenuItem("MONTEVERDE","location='http://www.cupotico.com/cities/hotels%20Monteverde.html'");
     mm_menu_0705205059_0_4.addMenuItem("POAS","location='http://www.cupotico.com/cities/hotels%20Poas.html'");
     mm_menu_0705205059_0_4.addMenuItem("RINCON&nbsp;DE&nbsp;LA&nbsp;VIEJA","location='hotels%20Rincon%20De%20La%20Vieja.html'");
	 mm_menu_0705205059_0_4.addMenuItem("TENORIO&nbsp;AND&nbsp;MIRAVALLES","location='http://www.cupotico.com/cities/hotels%20Tenorio%20and%20Miravalles.html'");

     mm_menu_0705205059_0_4.hideOnMouseOut=true;
     mm_menu_0705205059_0_4.bgColor='#555555';
     mm_menu_0705205059_0_4.menuBorder=1;
     mm_menu_0705205059_0_4.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_4.menuBorderBgColor='#777777';
    window.mm_menu_0705205059_0_5 = new Menu("Caribbean",131,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
     mm_menu_0705205059_0_5.addMenuItem("PUERTO&nbsp;VIEJO","location='http://www.cupotico.com/cities/hotels%20Puerto%20Viejo.html'");
     mm_menu_0705205059_0_5.addMenuItem("TORTUGUERO","location='http://www.cupotico.com/cities/hotels%20Tortuguero.html'");
     mm_menu_0705205059_0_5.addMenuItem("SARAPIQUI","location='http://www.cupotico.com/cities/hotels%20Sarapiqui.html'");
	 mm_menu_0705205059_0_5.addMenuItem("LIMON","location='http://www.cupotico.com/cities/hotels%20Limon.html'");
     mm_menu_0705205059_0_5.addMenuItem("CAHUITA","location='http://www.cupotico.com/cities/hotels%20Cahuita.html'");
     mm_menu_0705205059_0_5.hideOnMouseOut=true;
     mm_menu_0705205059_0_5.bgColor='#555555';
     mm_menu_0705205059_0_5.menuBorder=1;
     mm_menu_0705205059_0_5.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_5.menuBorderBgColor='#777777';
    window.mm_menu_0705205059_0_6 = new Menu("South Pacific",147,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
     mm_menu_0705205059_0_6.addMenuItem("OSA&nbsp;PENINSULA","location='http://www.cupotico.com/cities/hotels%20Osa%20Peninsula.html'");
	 mm_menu_0705205059_0_6.addMenuItem("DRAKE BAY","location='http://www.cupotico.com/cities/hotels%20Drake%20Bay.html'");
	 mm_menu_0705205059_0_6.addMenuItem("GOLFITO","location='http://www.cupotico.com/cities/hotels%20Golfito.html'");
	 mm_menu_0705205059_0_6.addMenuItem("SAN ISIDRO","location='http://www.cupotico.com/cities/hotels%20San_Isidro%20del%20General.html'");
     mm_menu_0705205059_0_6.hideOnMouseOut=true;
     mm_menu_0705205059_0_6.bgColor='#555555';
     mm_menu_0705205059_0_6.menuBorder=1;
     mm_menu_0705205059_0_6.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205059_0_6.menuBorderBgColor='#777777';
  window.mm_menu_0705205059_0 = new Menu("root",142,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
    mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_1);
    mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_2);
    mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_3);
    mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_4);
    mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_5);
   mm_menu_0705205059_0.addMenuItem(mm_menu_0705205059_0_6);
   mm_menu_0705205059_0.hideOnMouseOut=true;
   mm_menu_0705205059_0.childMenuIcon="/images/arrows.gif";
   mm_menu_0705205059_0.bgColor='#555555';
   mm_menu_0705205059_0.menuBorder=1;
   mm_menu_0705205059_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0705205059_0.menuBorderBgColor='#777777';
   

if (window.mm_menu_0705205057_0) return;
   
   window.mm_menu_0705205057_0_1 = new Menu("For Sale",131,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   
   
  /* window.mm_menu_0705205057_0_1 = new Menu("Central Valley",101,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  		mm_menu_0705205057_0_1.addMenuItem("SAN JOSE","window.open('/jsp/realestate/list.jsp?location=San_Jose', '_self');");
		mm_menu_0705205057_0_1.addMenuItem("SANTA ANA","window.open('/jsp/realestate/list.jsp?location=Santa_Ana', '_self');");
		mm_menu_0705205057_0_1.addMenuItem("HEREDIA","window.open('/jsp/realestate/list.jsp?location=Heredia', '_self');");
		mm_menu_0705205057_0_1.addMenuItem("ALAJUELA","window.open('/jsp/realestate/list.jsp?location=Alajuela', '_self');");
		mm_menu_0705205057_0_1.addMenuItem("ESCAZU","window.open('/jsp/realestate/list.jsp?location=Escazu', '_self');");
    	mm_menu_0705205057_0_1.hideOnMouseOut=true;
    	mm_menu_0705205057_0_1.bgColor='#555555';
    	mm_menu_0705205057_0_1.menuBorder=1;
    	mm_menu_0705205057_0_1.menuLiteBgColor='#FFFFFF';
    	mm_menu_0705205057_0_1.menuBorderBgColor='#777777';
	window.mm_menu_0705205057_0_2 = new Menu("Central Pacific",131,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);*/
	  mm_menu_0705205057_0_1.addMenuItem("MANUEL&nbsp;ANTONIO","window.open('/jsp/realestate/list.jsp?location=Manuel_Antonio', '_self');");
      mm_menu_0705205057_0_1.addMenuItem("JACO","window.open('/jsp/realestate/list.jsp?location=Jaco&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("PLAYA&nbsp;HERMOSA","window.open('/jsp/realestate/list.jsp?location=Playa_Hermosa&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("ESTERILLOS","window.open('/jsp/realestate/list.jsp?location=Esterillos&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("HERRADURA","window.open('/jsp/realestate/list.jsp?location=Herradura&business=1', '_self');");
	   mm_menu_0705205057_0_1.addMenuItem("PUNTA LEONA","window.open('/jsp/realestate/list.jsp?location=Punta_Leona&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("AGUJAS","window.open('/jsp/realestate/list.jsp?location=Agujas&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("OROTINA","window.open('/jsp/realestate/list.jsp?location=Orotina&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("PARRITA AREA","window.open('/jsp/realestate/list.jsp?location=Parrita_Area&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("PUNTARENAS","window.open('/jsp/realestate/list.jsp?location=Puntarenas&business=1', '_self');");
      mm_menu_0705205057_0_1.addMenuItem("QUEBRADA&nbsp;AMARILLA","window.open('/jsp/realestate/list.jsp?location=Quebrada_Amarilla&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("QUEBRADA","window.open('/jsp/realestate/list.jsp?location=Quebrada&business=1', '_self');");
  	  mm_menu_0705205057_0_1.addMenuItem("TARCOLES","window.open('/jsp/realestate/list.jsp?location=Tarcoles&business=1', '_self');");
      mm_menu_0705205057_0_1.hideOnMouseOut=true;
      mm_menu_0705205057_0_1.bgColor='#555555';
      mm_menu_0705205057_0_1.menuBorder=1;
      mm_menu_0705205057_0_1.menuLiteBgColor='#FFFFFF';
      mm_menu_0705205057_0_1.menuBorderBgColor='#777777';

	/*window.mm_menu_0705205057_0_3 = new Menu("North Pacific",131,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
    mm_menu_0705205057_0_3.addMenuItem("TAMARINDO","window.open('/jsp/realestate/list.jsp?location=Tamarindo', '_self');");
  mm_menu_0705205057_0_3.addMenuItem("NOSARA","window.open('/jsp/realestate/list.jsp?location=Nosara', '_self');");
  mm_menu_0705205057_0_3.addMenuItem("FLAMINGO","window.open('/jsp/realestate/list.jsp?location=Flamingo', '_self');");
  mm_menu_0705205057_0_3.addMenuItem("MAL PAIS","window.open('/jsp/realestate/list.jsp?location=Mal_Pais', '_self');");
  mm_menu_0705205057_0_3.addMenuItem("JUNQUILLAL","window.open('/jsp/realestate/list.jsp?location=Junquillal', '_self');");
    mm_menu_0705205057_0_3.addMenuItem("TAMBOR","window.open('/jsp/realestate/list.jsp?location=Tambor', '_self');");
     mm_menu_0705205057_0_3.hideOnMouseOut=true;
     mm_menu_0705205057_0_3.bgColor='#555555';
     mm_menu_0705205057_0_3.menuBorder=1;
     mm_menu_0705205057_0_3.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205057_0_3.menuBorderBgColor='#777777';
window.mm_menu_0705205057_0_4 = new Menu("Northean Territiries",131,18,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
     mm_menu_0705205057_0_4.addMenuItem("ARENAL","location='/jsp/realestate/list.jsp?location=Arenal'");
     mm_menu_0705205057_0_4.addMenuItem("MONTEVERDE","location='/jsp/realestate/list.jsp?location=Monteverde'");
     mm_menu_0705205057_0_4.addMenuItem("POAS","location='/jsp/realestate/list.jsp?location=Poas'");
     mm_menu_0705205057_0_4.addMenuItem("LIBERIA","location='/jsp/realestate/list.jsp?location=Liberia'");
     mm_menu_0705205057_0_4.hideOnMouseOut=true;
     mm_menu_0705205057_0_4.bgColor='#555555';
     mm_menu_0705205057_0_4.menuBorder=1;
     mm_menu_0705205057_0_4.menuLiteBgColor='#FFFFFF';
     mm_menu_0705205057_0_4.menuBorderBgColor='#777777';*/
	 
window.mm_menu_0705205057_0_2 = new Menu("For Rent",131,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
      mm_menu_0705205057_0_2.addMenuItem("JACO","window.open('/jsp/realestate/list.jsp?location=Jaco&business=2', '_self');");
  	  mm_menu_0705205057_0_2.addMenuItem("PLAYA&nbsp;HERMOSA","window.open('/jsp/realestate/list.jsp?location=Playa_Hermosa&business=2', '_self');");
  	  mm_menu_0705205057_0_2.addMenuItem("ESTERILLOS","window.open('/jsp/realestate/list.jsp?location=Esterillos&business=2', '_self');");
  	  mm_menu_0705205057_0_2.addMenuItem("HERRADURA","window.open('/jsp/realestate/list.jsp?location=Herradura&business=2', '_self');");
	       mm_menu_0705205057_0_2.hideOnMouseOut=true;
      mm_menu_0705205057_0_2.bgColor='#555555';
      mm_menu_0705205057_0_2.menuBorder=1;
      mm_menu_0705205057_0_2.menuLiteBgColor='#FFFFFF';
      mm_menu_0705205057_0_2.menuBorderBgColor='#777777';


window.mm_menu_0705205057_0 = new Menu("root",131,15,"",12,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,100,-5,7,true,true,true,0,true,true);   
mm_menu_0705205057_0.addMenuItem(mm_menu_0705205057_0_1);
mm_menu_0705205057_0.addMenuItem(mm_menu_0705205057_0_2);
/*mm_menu_0705205057_0.addMenuItem(mm_menu_0705205057_0_3);
mm_menu_0705205057_0.addMenuItem(mm_menu_0705205057_0_4);*/
mm_menu_0705205057_0.hideOnMouseOut=true;
   mm_menu_0705205057_0.bgColor='#555555';
mm_menu_0705205057_0.childMenuIcon="/images/arrows.gif";
   mm_menu_0705205057_0.menuBorder=1;
   mm_menu_0705205057_0.menuLiteBgColor='';
   mm_menu_0705205057_0.menuBorderBgColor='#FFFFFF';





if (window.mm_menu_0104103704_0) return;
  window.mm_menu_0104103704_0 = new Menu("root",101,15,"",9,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0104103704_0.addMenuItem("BUDGET","window.open('http://www.cupotico.com/coupons/cars/cars1/cars1.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("EUROPCAR","window.open('http://www.cupotico.com/coupons/cars/cars2/cars2.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("TOYOTA","window.open('http://www.cupotico.com/coupons/cars/cars3/cars3.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("NATIONAL","window.open('http://www.cupotico.com/coupons/cars/cars4/cars4.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("SUZUKI","window.open('http://www.cupotico.com/coupons/cars/cars5/cars5.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("PAYLESS","window.open('http://www.cupotico.com/coupons/cars/cars6/cars6.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("MAPACHE","window.open('http://www.cupotico.com/coupons/cars/cars7/cars7.html', '_self');");
  mm_menu_0104103704_0.addMenuItem("ADOBE","window.open('http://www.cupotico.com/coupons/cars/cars8/cars8.html', '_self');");
  mm_menu_0104103704_0.hideOnMouseOut=true;
  mm_menu_0104103704_0.bgColor='#555555';
  mm_menu_0104103704_0.menuBorder=1;
  mm_menu_0104103704_0.menuLiteBgColor='';
  mm_menu_0104103704_0.menuBorderBgColor='#FFFFFF';
  
  if (window.mm_menu_0104103702_0) return;
  window.mm_menu_0104103702_0 = new Menu("root",141,15,"",9,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0104103702_0.addMenuItem("BEST OF COSTA RICA","window.open('/costaricapackages/best_of_costa_rica.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("ADVENTURE PACKAGE","window.open('/costaricapackages/costa_rica_adventure_package.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("VOLCANOES & BEACH PACKAGE","window.open('/costaricapackages/volcanoes_costa_rica_package.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("BEACH & SUN","window.open('/costaricapackages/beach_and_sun.html', '_self');");
    mm_menu_0104103702_0.addMenuItem("SURF CENTRAL PACIFIC","window.open('/costaricapackages/Costa_Rica_Surf_Package_1.html', '_self');");
	  mm_menu_0104103702_0.addMenuItem("SURF NORTHERN PACIFIC","window.open('/costaricapackages/Costa_Rica_Surf_Package_2.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("TORTUGUERO","window.open('/costaricapackages/Tortuguero_Package.html', '_self');");
    mm_menu_0104103702_0.addMenuItem("SPORT FISHING CENTRAL PACIFIC","window.open('/costaricapackages/costa_rica_fishing_package.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("SPORT FISHING NORTH PACIFIC","window.open('/costaricapackages/costa_rica_fishing_package_north_pacific.html', '_self');");
  mm_menu_0104103702_0.addMenuItem("RETIREMENT IN COSTA RICA","window.open('/costaricapackages/Retirement_package_Costa_Rica.html', '_self');");
   mm_menu_0104103702_0.hideOnMouseOut=true;
   mm_menu_0104103702_0.bgColor='#555555';
   mm_menu_0104103702_0.menuBorder=1;
   mm_menu_0104103702_0.menuLiteBgColor='';
   mm_menu_0104103702_0.menuBorderBgColor='#FFFFFF';
   

   
  if (window.mm_menu_0705205058_0) return;
   window.mm_menu_0705205058_0 = new Menu("root",171,15,"",9,"#FFFFFF","#FFCC00","#3399CC","#3399CC","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0705205058_0.addMenuItem("PLAYA&nbsp;HERADURA - LOS SUENIOS","window.open('/jsp/listRental.jsp?location=Playa_Heradura', '_self');");
  mm_menu_0705205058_0.addMenuItem("PLAYA&nbsp;HERMOSA","window.open('/jsp/listRental.jsp?location=Playa_Hermosa', '_self');");
  mm_menu_0705205058_0.addMenuItem("MANUEL&nbsp;ANTONIO","window.open('/jsp/listRental.jsp?location=Manuel_Antonio', '_self');");
  mm_menu_0705205058_0.addMenuItem("TAMARINDO","window.open('/jsp/listRental.jsp?location=Tamarindo', '_self');");
  mm_menu_0705205058_0.addMenuItem("NOSARA","window.open('/jsp/listRental.jsp?location=Nosara', '_self');");
  mm_menu_0705205058_0.addMenuItem("JACO","window.open('/jsp/listRental.jsp?location=Jaco', '_self');");
  mm_menu_0705205058_0.addMenuItem("ESTERILLOS","window.open('/jsp/listRental.jsp?location=Esterillos', '_self');");
  mm_menu_0705205058_0.addMenuItem("PUERTO&nbsp;VIEJO","window.open('/jsp/listRental.jsp?location=Puerto_Viejo', '_self');");
  mm_menu_0705205058_0.addMenuItem("MONTEZUMA","window.open('/jsp/listRental.jsp?location=Montezuma', '_self');");
  mm_menu_0705205058_0.addMenuItem("BEJUCO","window.open('/jsp/listRental.jsp?location=Bejuco', '_self');");
  mm_menu_0705205058_0.addMenuItem("JUNQUILLAL","window.open('/jsp/listRental.jsp?location=Junquillal', '_self');");
  mm_menu_0705205058_0.addMenuItem("FLAMINGO - CONCHAL","window.open('/jsp/listRental.jsp?location=Flamingo', '_self');");
  mm_menu_0705205058_0.addMenuItem("PLAYA DEL COCO","window.open('/jsp/listRental.jsp?location=Playa_del_Coco', '_self');");
  mm_menu_0705205058_0.addMenuItem("OSA PENINSULA","window.open('/jsp/listRental.jsp?location=Osa_Peninsula', '_self');");
  mm_menu_0705205058_0.hideOnMouseOut=true;
  mm_menu_0705205058_0.bgColor='#555555';
  mm_menu_0705205058_0.menuBorder=1;
  mm_menu_0705205058_0.menuLiteBgColor='';
  mm_menu_0705205058_0.menuBorderBgColor='#FFFFFF';

   mm_menu_0705205059_0.writeMenus();
   mm_menu_0104103704_0.writeMenus();
   mm_menu_0104103702_0.writeMenus();
   mm_menu_0705205058_0.writeMenus();
   mm_menu_0705205057_0.writeMenus();
} // mmLoadMenus()

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
 
function showRooms(selected){
  for (var i=1;i<5;i++) {
    if (i<=selected){
	 	if ( i >1){
        	eval("document.all('r"+i+"')").style.display=''; 
	    }
		if (i==1 && selected ==1){ 
	    		document.all.room.style.display='none'; 
			}
	 		else{
    			document.all.room.style.display='';
	 		}
	}else{
       eval("document.all('r"+i+"')").style.display='none';
	 } 
  }//for
}
var maxG=0;
var roomG=0;
function showChildren(selected,room){
  for (var i=1;i<=4;i++) {
    if (i<=selected){
	  eval("document.all('c"+i+"r"+room+"')").style.display='';
	  eval("document.all('child"+i+"')").style.display='';
	  eval("document.all('r"+(room+4)+"')").style.display=''; 
	   document.all.age23.style.display='';
    } 
	else {
 	      eval("document.all('c"+i+"r"+room+"')").style.display='none';
		  setMax();
		 if (i > maxG ) {
	       eval("document.all('child"+i+"')").style.display='none';
		 }
	     if (selected<1 &&room==roomG)
	      document.all.age23.style.display='none';
    } 
  }//for
  if (selected > maxG){
    maxG=selected;
	roomG= room
  }
  
  
   if (selected <1) {
     eval("document.all('r"+(room+4)+"')").style.display='none'; 
	 document.all('age23').style.display='none';
		}
}

function setMax(){
var child=0;
maxG=0;
roomG=0;
	for (var i=1;i<=4;i++) {
 		child =eval("document.all('chr"+i+"')").value;
 		if (child > maxG ){
 		 maxG=child;
  		 roomG=i;
 		}
	}
return true;
}

function showTabs(selected){
  var j=0,k=0;
  for (var i=100;i<=105;i++) {
    j=i+10;
	k=i+20;
    if (i==selected){
      eval("document.all('A"+i+"')").style.display='';
	  if (i == 100 || i== 105 )
	  eval("document.all('A"+j+"')").background='images/menuBKLi.gif';
	   if (i == 101 || i== 103 ){
	  eval("document.all('A"+j+"')").background='images/menuBKLiBlue.gif';
	  eval("document.all('A"+k+"')").color='#ffffff';
	  }
	  if (i == 102 || i== 104 ){
	  eval("document.all('A"+j+"')").background='images/menuBKLiRed.gif';
	  eval("document.all('A"+k+"')").color='#ffffff';
	  }
    } 
	else {
	    eval("document.all('A"+i+"')").style.display='none';
		eval("document.all('A"+j+"')").background='';
		if (i != 100 && i!= 105 )
		eval("document.all('A"+k+"')").color='#990000';
    } 
  }
}


function contactme(form){
 if(form.tel.value =="" && form.email.value == "" )
  { alert("Please enter your Telephone or e-mail address"); form.tel.focus(); return; }
 
 document.location="jsp/contactme.jsp?tel="+form.tel.value+"&email="+form.email.value+"&hotel="+form.hotel.value+"&car="+form.car.value+"&tour="+form.tour.value;
}

function submitactivity(form) {
var url;

if (document.frm.loc2.options[document.frm.loc2.selectedIndex].value == "")
  { alert("Please choose location"); document.loc2.focus(); return; }
document.location="jsp/listActivity.jsp?location="+document.frm.loc2.options[document.frm.loc2.selectedIndex].value+"&activity="+document.frm.activity.options[document.frm.activity.selectedIndex].value;
}

