function showcalendar(page,pwidth,pheight) {
	createPopUp(page,"BoekLastminute.com:_Selecteer_datum",pwidth,pheight,"no","no");
}
function createPopUp(theURL, Name, popW, popH, scroll, resize) {
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+resize+'';
	Win = window.open(theURL,null,winProp);
	Win.window.focus();
}
function getStartDate(year,month,day) {
	self.close();
	opener.setStartDates(day,month,year);
}
function getEndDate(year,month,day) {
	self.close();
	opener.setEndDates(day,month,year); 
}
function getEUDate(year,month,day){
	self.close();
	opener.setEUDates(day,month,year);
}
function getUSDate(year,month,day){
	self.close();
	opener.setUSDates(day,month,year);
}
function setStartDates(day,month,year) {
    for (i=0; i<document.zoeken.StartDay.length; i++) {
        if (document.zoeken.StartDay.options[i].value == day){
		document.zoeken.StartDay.selectedIndex = i;
        }
    }
    for (i=0; i<document.zoeken.StartMonth.length; i++) {
        if (document.zoeken.StartMonth.options[i].value == month){
		document.zoeken.StartMonth.selectedIndex = i;
        }
    }
    for (i=0; i<document.zoeken.StartYear.length; i++) {
        if (document.zoeken.StartYear.options[i].value == year){
		document.zoeken.StartYear.selectedIndex = i;
        }
    }
}
function setEndDates(day,month,year) {
    for (i=0; i<document.zoeken.EndDay.length; i++) {
        if (document.zoeken.EndDay.options[i].value == day){
		document.zoeken.EndDay.selectedIndex = i;
        }
    }
    for (i=0; i<document.zoeken.EndMonth.length; i++) {
        if (document.zoeken.EndMonth.options[i].value == month){
		document.zoeken.EndMonth.selectedIndex = i;
        }
    }
    for (i=0; i<document.zoeken.EndYear.length; i++) {
        if (document.zoeken.EndYear.options[i].value == year){
		document.zoeken.EndYear.selectedIndex = i;
        }
    }
}
function setEUDates(day,month,year) {
	date=day+'-'+month+'-'+year;
	document.zoeken.eu.value = date;
}
function setUSDates(day,month,year) {
	date=month+'/'+day+'/'+year;
	document.zoeken.us.value = date;
}
 
