function OpenBookHotel(idHotel) {
	var URL = 'reqhotel.aspx?ht=' + idHotel;
	window.open(URL,idHotel,"toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,left=50,top=50,width=583,height=500");
}

function OpenReservationPackg(idPack) {
	var URL = 'reqpack.aspx?pckg=' + idPack;
	window.open(URL,'pck'+idPack,"toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,left=50,top=50,width=583,height=500");
}

function OpenRentCar(idCar) {
	var URL = 'reqcar.aspx?car=' + idCar;
	window.open(URL,'car'+idCar,"toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,left=50,top=50,width=583,height=500");
}

function OpenBookTransfer(type,ori,dest) {
	var URL = 'reqtransfer.aspx?trans=' + type+'&ori='+ori+'&dest='+dest;
	window.open(URL,'trans'+type,"toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,left=50,top=50,width=583,height=500");
}

function OpenPlans(lang) {
	var URL = 'misc/meals.htm';
	if (lang =='es') {URL='misc/esmeals.htm';}
	
	window.open(URL,'plan'+lang,"toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,left=50,top=50,width=490,height=200");
}


function CopyValue(source, target)
{
    target.selectedIndex = source.selectedIndex;
}

function GoogleSearch(lg) {
	
	var txt=document.getElementById('q').value;
	var b = true;
	for( i = 0; i<3; i++) txt = txt.replace(' ', '+');
	
	//var URL = 'http://www.google.com/search?sitesearch=www.lookingcuba.com&q='+txt+'&hl='+lg;
	var URL = 'http://www.google.com/cse?cx=partner-pub-8410543575811929:i4r8cpmki1u&q='+txt+'&hl='+lg;
	
	window.open(URL,'google',"toolbar=1,status=1,menubar=1,scrollbars=1,resizable=yes,left=30,top=30,width=800,height=600");
}



function setDisabled(control)
{
control.disabled= true;
}
function setEnabled(control)
{
control.disabled= false;
}

function changeType()
{
if(document.bookform.Booktransfer1$lstType.selectedIndex=='0'){
setDisabled(document.bookform.Booktransfer1$fmm1);
setDisabled(document.bookform.Booktransfer1$fyy1);
setDisabled(document.bookform.Booktransfer1$fdd1);
setDisabled(document.bookform.Booktransfer1$endTime);
}
else
{setEnabled(document.bookform.Booktransfer1$fmm1);
setEnabled(document.bookform.Booktransfer1$fyy1);
setEnabled(document.bookform.Booktransfer1$fdd1);
setEnabled(document.bookform.Booktransfer1$endTime);
}

}