function newwindow(){
	newwin=window.open('http://wispo.myswitzerland.com/requests/MySwitzerlandSearchRequest.jsp?lang=de&rKey=444&vhost=chdt','Wintersportbericht','width=820,height=600,scrollbars=yes,top=60,left=40,resizable=no');
	window.newwin.focus();
}

function winterpan(){
	newwin=window.open('http://www.felix.ch/kunden/1099-berguen/panorama-001.htm','','WIDTH=525,HEIGHT=625,status=yes,resizable=no,scrollbars=no');
	window.newwin.focus();
}

function herbstpan(){
	newwin=window.open('http://www.felix.ch/kunden/1099-berguen/panorama-002.htm','','WIDTH=525,HEIGHT=625,status=yes,resizable=no,scrollbars=no');
	window.newwin.focus();
}

function sommerpan(){
	newwin=window.open('http://www.felix.ch/kunden/1099-berguen/panorama-003.htm','','WIDTH=525,HEIGHT=625,status=yes,resizable=no,scrollbars=no');
	window.newwin.focus();
}

function galerie(picture){
	newwin=window.open('imageview.cfm?p='+picture,'','WIDTH=610,HEIGHT=640,status=yes,resizable=no,scrollbars=no');
	window.newwin.focus();
}

function veranstaltungen(){
	newwin=window.open('http://www.berguen.ch/veranstaltungen.cfm','','WIDTH=725,HEIGHT=640,status=yes,resizable=no,scrollbars=yes');
	window.newwin.focus();
}

function openCam(picture){
	newwin=window.open(picture,'webcam','WIDTH=660,HEIGHT=500,status=no,resizable=no,scrollbars=no');
	webcam.title = 'live Webcam';
	window.newwin.focus();
}

function chkFormular(form){
	if(notEmpty(form.name)){
		if(notEmpty(form.email)){
			return true;
		}
	}
	return false;
}

function chkFormularTwo(form){
	if(notEmpty(form.firstName)){
		if(notEmpty(form.surName)){
			if(notEmpty(form.street)){
				if(notEmpty(form.pCode)){
					if(notEmpty(form.city)){
						if(notEmpty(form.country)){
							if(notEmpty(form.email)){
								return true;
							}
						}
					}
				}
			}
		}
	}
	return false;
}

function notEmpty(elem){
	var str = elem.value;
	if(str.length == 0){
		alert("Bitte fuellen Sie alle mit einem * bezeichneten Felder aus!");
		return false;
	} else {
		return true;
	}
}