function popup(datei,breite,hoehe,x,y,winname,bars)
{
	if (breite > 10 && hoehe > 10)
	{
		settings = bars+",left="+x+",top="+y+",width="+breite+",height="+hoehe;
		winname=window.open(datei, winname, settings);
		winname.focus();
	 }
}

function popupfenster(Datei)
{
	info=window.open(Datei, "ansichten", 'toolbar=no,scrollbars=yes,resizable=yes,width=440,height=460');
	info.focus();
}

function popupzoom(Datei)
{
	info=window.open(Datei, "hersteller", 'toolbar=no,scrollbars=yes,resizable=yes,width=250,height=200');
	info.focus();
}

// JavaScript Functionen zum prüfen der ausgefüllten Felder
// Fehlerausgaben derzeit nur hardcoded in Englisch
function CheckForm(form)
{
	if ( form.name.value == "" ){
			alert( "Bitte tragen Sie Ihren Namen ein." )
			//name.focus()
			return false
	}
	if ( form.zeile7.value == "" ){
			alert( "Bitte tragen Sie Ihre Telefonnummer ein." )
			//name.focus()
			return false
	}
	else if ( form.emailabsender.value ==""){
			alert( "Bitte tragen Sie Ihre E-Mail-Adresse ein." )
			//emailabsender.focus()
			return false
	}

// Abfrage    	else if ( form.textfeld.value == "" ){
// Abfrage    				alert( "Please enter a comment or message to send." )
// Abfrage    				//textfeld.focus()
// Abfrage    				return false
// Abfrage    		}
	else {
		document.Comment.submit()
		return true
	}
}

function set_standart(img)
{
	window.clearTimeout(geomix_timer);
	img.className='';
}

function set_klein(img)
{
	img.className='vorschau_klein';
	geomix_timer=window.setTimeout(function(){img.className='vorschau_gross'},300);
	img.onmouseout = function() { set_standart(img); toolTip(); };
}

function Galerie_openWindow(path,width,height)
{
	window.open('http://www.fliegfix.com/webshop/image.php?path='+path,'zoom','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+((screen.width-width) / 2)+',top='+((screen.height-height) / 2)+',width='+width+',height='+height);
}

/*
// TIBBES JQUERY DEPENDENT IMAGE ZOOM APPLE STYLE
$(document).ready(function() {
	// Footer thumbs gallery overlay 
	$(".geomix_galerie li a").overlay({ 
 	   target: '#gallery', 
	   expose: '#333333' 
	}).gallery({ 
 	   speed: 400 
	});
});	
*/