// JavaScript Document


function ReservasOnLine(pg,idh,idc,ida,grupo,unico,le,ref,origen) {
   var w=650;
   var h=450;
   var parametros='id_hotel='+idh+'&id_cadena='+idc+'&id_agencia='+ida+'&id_grupo='+grupo+'&id_unico='+unico+'&le='+le+'&id_origen='+origen+'&id_ref='+ref+'&entorno='+pg+'&accio=X';
   LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
   TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
   settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,status=no,resizable=no';
   win = window.open('http://www.mallorsoft.com/reservas/portal_index.php?'+parametros,'Reservas',settings);
   win.focus();
}

function ReservasOnLineParams(idioma) {
   var w=650;
   var h=450;
   var df = document.Freservas;
   LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
   TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
   settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,status=no,resizable=no';
   win = window.open('http://www.mallorsoft.com/reservas/blanc.php','reservas',settings);
   win.focus();
   df.le.value=idioma;
   df.submit();
}

function SetLlegada() {
	var df = document.Freservas;
	df.llegada.value=df.llegadaD.value+'-'+df.llegadaM.value+'-'+df.llegadaA.value;
}