function msover(name)
{	if (document.images)
	{	document.images[name].src = eval (name + "_on.src");
	}
}

function msout(name)
{	if (document.images)
	{	document.images[name].src = eval (name + "_off.src");
	}
}

	if (document.images){
		hotel_off = new Image();
		hotel_off.src = "../gfx/des/butt/hotel_off_old.gif";
		hotel_on = new Image();
		hotel_on.src = "../gfx/des/butt/hotel_on_old.gif";
				
		pricelist_off = new Image();
		pricelist_off.src = "../gfx/des/butt/pricelist_off.gif";
		pricelist_on = new Image();
		pricelist_on.src = "../gfx/des/butt/pricelist_on.gif";
				
		gallery_off = new Image();
		gallery_off.src = "../gfx/des/butt/gallery_off.gif";
		gallery_on = new Image();
		gallery_on.src = "../gfx/des/butt/gallery_on.gif";
		
		rooms_off = new Image();
		rooms_off.src = "../gfx/des/butt/rooms_off.gif";
		rooms_on = new Image();
		rooms_on.src = "../gfx/des/butt/rooms_on.gif";
		
		restaurant_off = new Image();
		restaurant_off.src = "../gfx/des/butt/restaurant_off.gif";
		restaurant_on = new Image();
		restaurant_on.src = "../gfx/des/butt/restaurant_on.gif";
		
		boardroom_off = new Image();
		boardroom_off.src = "../gfx/des/butt/boardroom_off.gif";
		boardroom_on = new Image();
		boardroom_on.src = "../gfx/des/butt/boardroom_on.gif";
		
		treatments_off = new Image();
		treatments_off.src = "../gfx/des/butt/treatments_off.gif";
		treatments_on = new Image();
		treatments_on.src = "../gfx/des/butt/treatments_on.gif";
				
		reservation_off = new Image();
		reservation_off.src = "../gfx/des/butt/reservation_off.gif";
		reservation_on = new Image();
		reservation_on.src = "../gfx/des/butt/reservation_on.gif";
						
		contact_off = new Image();
		contact_off.src = "../gfx/des/butt/contact_off.gif";
		contact_on = new Image();
		contact_on.src = "../gfx/des/butt/contact_on.gif";								
								
	}

function displayWindow(url, width, height) {
window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no, top='+((screen.availHeight/2)-(height/2))+',left='+((screen.availWidth/2)-(width/2)));
}

function validate(){
	if (document.form1.telefon.value=='') {
		alert("E-mail adress/Telephone number required");
	} else if (document.form1.email.value==''){
		alert("E-mail adress/Telephone number required");
	} else {
		document.form1.action = "ok.php";
		document.form1.submit();
	}
}

