//<script language="javascript">

document.write('<meta http-equiv="expires" content="Tue, 01 Jan 1981 01:00:00 GMT">');
gsHotel = gsHotel.replace(' ','');

if (document.all){
    if(gsHotel != '' && gsHotel != 'ZODF' ){
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusreservas_ie_'+gsHotel+'.css" />');
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusmenu_'+gsHotel+'.css" />');
        document.write('<script type="text/javascript" src="../includes/js/calendar_'+gsHotel+'.js"></script>');
        document.write('<link type="text/css" rel="stylesheet" href="../includes/js/dhtmlgoodies_calendar_'+gsHotel+'.css?random=20051112" media="screen"/>');  
    }
    else {
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusreservas_ie.css" />');
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusmenu.css" />');
        document.write('<script type="text/javascript" src="../includes/js/calendar.js"></script>');
        document.write('<link type="text/css" rel="stylesheet" href="../includes/js/dhtmlgoodies_calendar.css?random=20051112" media="screen"/>');  
    }
}
else{
    if(gsHotel != '' && gsHotel != 'ZODF' ){
	    document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusreservas_ns_'+gsHotel+'.css" />');
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusmenu_'+gsHotel+'.css" />');
        document.write('<script type="text/javascript" src="../includes/js/calendar_'+gsHotel+'.js"></script>');
        document.write('<link type="text/css" rel="stylesheet" href="../includes/js/dhtmlgoodies_calendar_'+gsHotel+'.css?random=20051112" media="screen"/>');  
    }
    else{
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusreservas_ns.css" />');
        document.write('<link rel="stylesheet" type="text/css" href="../includes/zeusmenu.css" />');
        document.write('<script type="text/javascript" src="../includes/js/calendar.js"></script>');
        document.write('<link type="text/css" rel="stylesheet" href="../includes/js/dhtmlgoodies_calendar_'+gsHotel+'.css?random=20051112" media="screen"/>');   
    }
}
	


//document.write('<link type="text/css" rel="stylesheet" href="../includes/js/dhtmlgoodies_calendar.css?random=20051112" media="screen"/>');
	
// Calendar Functions

// reference a new window open
var w = null;
// object control used to put a date from the calendar object
var oFecha = null;
var oColor = null;
// Position and size from the new window
var ileft=150, iTop=50, iWidth=0, iHeight=0;


/***************************************************************************************
CenterWindow
- Change the <iLeft> and <Top> to set the window centered.
***************************************************************************************/
function CenterWindow()	{
   iLeft = parseInt((screen.availWidth - iWidth) / 2);
   iTop = parseInt((screen.availHeight - iHeight) / 2);
}


function OpenPage(pPage, pWindow)	{
	if (!pWindow) pWindow = 'wBlank';

	// if the window is opened, then close it.
//	if (document.layers) if (w) w.close();
   
    var sFeatures = 
		"width=" + iWidth + "," 
		+ "height=" + iHeight + "," 
		+ "copyhistory=0," 
		+ "location=0," 
		+ "menubar=0," 
		+ "directories=0," 
		+ "resizable=0," 
		+ "scrollbars=0," 
		+ "status=0," 
		+ "titlebar=0," 
		+ "toolbar=0," 
		+ "hotkeys=0," 
		+ "screenx=" + iLeft + ","  //NSN Only
		+ "screeny=" + iTop + ","	//NS Only
		+ "left=" + iLeft + ","     //IE Only
		+ "top=" + iTop;			//IE Only

	w = window.open(pPage, pWindow, sFeatures);

/*
	// repositioning the window when opening before calling it.
	w.resizeTo(iWidth, iHeight);
	w.moveTo(iLeft, iTop);
*/

	// set the focus over it.
	window.setTimeout("if (w.focus) w.focus();", 500);

/*
	// if netscape set it again, because sometimes is not updated.
	if (document.layers)	{
		w.location.href = pPage;
		w.location.reload();
   }
*/
}

/***************************************************************************************
GetEnglish
- Show a new window where the user may select a date an write it on <pControl> object
***************************************************************************************/
function inEnglish(form, control,name,index,size)	{
	var f,pControl;
	
	if (typeof(size)=='undefined') size='100';
	
	pControl='document.'+form+'.'+control;
	
	if (index)
	oInput = pControl +'_en'+ index ;
	else
	oInput = pControl +'_en';
	
	f=eval(oInput +'.value');
	
	if (index)
	input=eval(pControl+ index +'.type');
	else
	input=eval(pControl +'.type');
	
	if (document.all) iWidth=500, iHeight=152;
//   if (document.all) iWidth=260, iHeight=220;
	if (document.layers) iWidth=500, iHeight=155;
	CenterWindow();
	OpenPage('../common/english_input.asp?t='+ input +'&n='+name+'&f='+f+'&s='+size+'&cd_hotel='+gsHotel, '_wSelDate');
	
}

/***************************************************************************************
PutEnglish
- function called from the select-date window, to set the date: <pFecha> as the value
***************************************************************************************/
function PutEnglish(pInput)	{
	var f;
   if (oInput)	{
   //alert(oFecha);
   //alert(pFecha);
   
   f=eval(oInput);
   f.value=pInput;
   //document.frmEntry.dt_to.value=pFecha;
   //oFecha.value = pFecha;
   }
}


/***************************************************************************************
GetDate
- Show a new window where the user may select a date an write it on <pControl> object
***************************************************************************************/
function GetDate(pControl)	{
   oFecha = pControl;
	
	if (document.all) iWidth=244, iHeight=202;
//   if (document.all) iWidth=260, iHeight=220;
	if (document.layers) iWidth=275, iHeight=205;
	CenterWindow();
	
	OpenPage('../common/calendar.asp', '_wSelDate');
}

/***************************************************************************************
PutDate
- function called from the select-date window, to set the date: <pFecha> as the value
***************************************************************************************/
function PutDate(pFecha)	{
	var f;
   if (oFecha)	{
   //alert(oFecha);
   //alert(pFecha);
   
   f=eval(oFecha);
   f.value=pFecha;
   //document.frmEntry.dt_to.value=pFecha;
   //oFecha.value = pFecha;
   }
}
    
function goexit(){

	document.location.herf="../public/default.asp"
}

function other_room(id_plan){
		var d = eval('document.all.other_room_'+id_plan);
		if (d.style.visibility=="hidden")
			show_other_room(id_plan)
		else hidden_other_room(id_plan)
	}
	
	function show_other_room(id_plan){
		var e = eval('document.all.other_room_'+id_plan);
		e.style.visibility = 'visible';
		e.style.display = '';
	}
	
	function hidden_other_room(id_plan){
		var g = eval('document.all.other_room_'+id_plan);
		g.style.visibility = 'hidden';
		g.style.display = 'none';
	}
	
function English(type,tm,id)	{	
	var URL="popup_description_en.asp?tp="+type+'&tm='+tm+'&id='+id;
	
			OpenPopup(URL, 'Description', 500, 170, 250, 250, 'scrollbars=false')
	}
//</script>