function check_formular() {
	var_name = document.getElementsByName('i_name')[0].value;
	var_telefon = document.getElementsByName('i_telefon')[0].value;
	var_text = document.getElementsByName('i_text')[0].value;
	
	if(var_name != "" && var_telefon != "" && var_text != "" && var_name != "Ihr Name" && var_telefon != "Ihre Telefonnummer" && var_text != "Ihre Nachricht") {
		return true;
	} else {
		alert("Bitte füllen Sie alle Felder aus!");
		return false;
	}	
}

function open_picture(uri, uri_width, uri_height) {
	uri_options = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";

  uri_windows = window.open("", "", uri_options + ',width=' + uri_width + ',height=' + uri_height);
  uri_windows.focus();
  uri_windows.document.open();

	with(uri_windows) {
		document.write("<html>");
		document.write("<head>");
			document.write("<title>Phsysiotherapie Geier - Galerie</title>");
		document.write("</head>");
		document.write("<body style=\"margin:0px;\">");
			document.write("<img src=\""+ uri +"\" style=\"border:0px;\" alt=\"\">");
		document.write("</body>");
		document.write("</html>");
	}

	return;
}
