function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" onClick="self.close()">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


function getDate(field)
{
	mDate = new Date();
	mDate.setFullYear( getSelectValue(document.getElementById(field + 'Year')), getSelectValue(document.getElementById(field + 'Month'))-1, getSelectValue(document.getElementById(field + 'Day')))
	return mDate;
}

function getSelectValue(field) 
{
	return field.options[field.selectedIndex].value;	
}

function fncDayOfWeek( stDate, lang )
{
	var assoc= new Array(7);
	if (lang == 'en') 
	{
		assoc[0]="Sunday";
		assoc[1]="Monday";
		assoc[2]="Tuesday";
		assoc[3]="Wednesday";
		assoc[4]="Thursday";
		assoc[5]="Friday";
		assoc[6]="Saturday";
	} 
	else 
	{
		assoc[0]="Sonntag";
		assoc[1]="Montag";
		assoc[2]="Dienstag";
		assoc[3]="Mittwoch";
		assoc[4]="Donnerstag";
		assoc[5]="Freitag";
		assoc[6]="Samstag";
	}
	return(assoc[stDate]);
}

function getDayOfTheWeek(field, lang)
{
	document.getElementById(field + "Weekday").innerHTML = fncDayOfWeek(getDate(field).getDay(), lang) + ", ";
}


function setTodaysDate(lang)
{
	var today = new Date();
	var thisDayIndex = today.getUTCDate()-1;
	var thisMonthIndex = today.getUTCMonth();
	var thisYearIndex = 0;

	formData = document.forms[0]

	/*set arival date*/
	formData.elements["fromDay"].selectedIndex   = thisDayIndex;
	formData.elements["fromMonth"].selectedIndex = thisMonthIndex;
	formData.elements["fromYear"].selectedIndex  = thisYearIndex;
	getDayOfTheWeek("from", lang);

	/*set leaving date*/
	formData.elements["toDay"].selectedIndex   = thisDayIndex+1;
	formData.elements["toMonth"].selectedIndex = thisMonthIndex;
	formData.elements["toYear"].selectedIndex  = thisYearIndex;
	getDayOfTheWeek("to", lang);
	
}
