function PopUp(idh,idl,pos) {
		winOpts = "width=500,height=570,status=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes";
		PopWin = window.open('../../../gallery.php?idh='+idh+'&idl='+idl+'&pos='+pos, "popup", winOpts);
		PopWin.moveTo(200,50);
		PopWin.focus();
}

function HideDiv(){
	document.getElementById('box').style.display='none';
	document.getElementById('bocs').style.display='';
}
		
function ShowDiv(){
	document.getElementById('box').style.display='';
	document.getElementById('bocs').style.display='none';
}

/*
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}*/

function MM_openBrWindow(theURL,winName,features) { //v2.0
new_width = features.substring(features.indexOf("width=")+6, features.indexOf("width=")+9) * 1
new_height = features.substring(features.indexOf("height=")+7, features.indexOf("height=")+10) * 1
var left = Math.floor( (screen.width - new_width) / 2);
var top = Math.floor( (screen.height - new_height) / 2)
var winParms = "top=" + top + ",left=" + left
if (features) { winParms += "," + features; }
window.open(theURL, winName, winParms);
}

// Preload the images
if (document.images) {
  img = new Array();
  img[0] = new Image;
  img[0].src = "/images/common/1px-index.png"
  img[1] = new Image;
  img[1].src = "/rome-hotels-images/rome,hotels,map.jpg"
  img[2] = new Image;
  img[2].src = "/images/common/1px-search.png"
  img[3] = new Image;
  img[3].src = "/images/common/1px-orange.png"
  img[4] = new Image;
  img[4].src = "/images/common/rome-reservation-banner.jpg"
}


var monthtext=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec'];
var mese=['01','02','03','04','05','06','07','08','09','10','11','12'];
var giorni=['00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31'];

function populatedropdown(dayfield, monthfield, yearfield){
var today=new Date()
var dayfield=document.getElementById(dayfield)
var monthfield=document.getElementById(monthfield)
var yearfield=document.getElementById(yearfield)

for (var i=0; i<31; i++)


dayfield.options[i]=new Option(giorni[i+1], giorni[i+1])
dayfield.options[today.getDate()-1]=new Option(giorni[today.getDate()], giorni[today.getDate()], true, true) 

for (var m=0; m<12; m++)
monthfield.options[m]=new Option(monthtext[m], mese[m])
monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], mese[today.getMonth()], true, true) //select today's month

var thisyear=today.getFullYear()
for (var y=0; y<2; y++){
yearfield.options[y]=new Option(thisyear, thisyear)
thisyear+=1
}
yearfield.options[0]=new Option(today.getFullYear(), today.getFullYear(), true, true) //select today's year
}
