// <Common Functions>

function saisonKalender() {
	// var kalender = window.open("/de/saisonkalender/", "saisonkalender", "width=600, height=270, screenX=20, screenY=350, menubar=no, status=no, toolbar=no");
	var kalender = window.open("/de/saisonkalender/", "saisonkalender", "width=720, height=400, screenX=20, screenY=350, menubar=no, status=no, toolbar=no");
	kalender.focus();
}

function printPage(purl) {
	var printpage = window.open("/print/?"+purl, "printpage", "width=640, height=480, resizable=yes, screenX=10, screenY=10, menubar=yes, status=no, toolbar=no");
	printpage.focus();
}

function clearSearchField() {
	document.find.lookup.value = "";
}

function openPage(pageurl) {
	var page = window.open(pageurl, "page", "width=600, height=400, screenX=20, screenY=350, menubar=yes, status=no, toolbar=no, resizeable=yes");
	page.focus();
}

function buchungsKalender(formular, field) {
  var w = window.open("/pub/calender/?mode=html&formular="+formular+"&field="+field, "calender", "width=200,height=180,screenX=36,screenY=36");
  w.focus();
}

function preisDetails(zimmer_id, anreise, abreise, naechte) {
	var query = "zimmer_id="+zimmer_id+"&anreise="+anreise+"&abreise="+abreise+"&naechte="+naechte;
	var pdetails = window.open("/pub/preisdetails/?"+query, "preisDetails", "width=600, height=270, screenX=20, screenY=350, menubar=no, status=no, toolbar=no");
	pdetails.focus();
}

function viewReiseversicherung() {
	var vs = window.open("/pub/reiseversicherung.html", "versicherung", "width=400, height=300, screenX=20, screenY=350, menubar=no, status=no, toolbar=no");
	vs.focus();
}

function viewReiseversicherungEN() {
	var vs = window.open("/pub/reiseversicherung_en.html", "versicherung", "width=400, height=300, screenX=20, screenY=350, menubar=no, status=no, toolbar=no");
	vs.focus();
}


function viewUrl(purl) {
	if (purl)
		this.location.href=purl;
}

function quickstartAnfrage() {
	document.quickstart.mode.value="anfrage";
	document.quickstart.submit();	
}
function quickstartBuchung() {
	document.quickstart.mode.value="buchung";
	document.quickstart.submit();	
}


// </ Common Functions>	