function toggle(
	n)
{
	if (n != null)
	{	if (n.style.display == "block")
			n.style.display = "none";
			
		else
			n.style.display = "block";
			
	}
}

function showEditor( url )
{	var features = "location=no, menubar=yes, scrollbars=yes, status=yes, resizable=yes, width=575, height=755";
	window.open(url, "_blank", features, false);
}

function popupex( target )
{	
	var features = "location=no, menu=no, resizable=no, status=no, scrollable=no, toolbar=no, width=640, height=480";
	window.open(target, "_blank", features, false);
}

function popupex2( target, sizex, sizey )
{	
	var features = "location=no, menu=no, resizable=no, status=no, scrollable=no, toolbar=no, width="+sizex+", height="+sizey;
	window.open(target, "_blank", features, false);
}

function popupex3( target, sizex, sizey )
{	
	var features = "location=no, menu=no, resizable=yes, status=no, scrollbars=yes, toolbar=no, width="+sizex+", height="+sizey;
	window.open(target, "_blank", features, false);
}

function popupmovie( target )
{
	var features = "location=no, menu=no, resizable=no, status=no, scrollable=no, toolbar=no width=820 height=640";
	window.open(target, "_blank", features, false);
}

function popup( target )
{
	var features = "location=no, menu=no, resizable=no, status=no, scrollable=no, toolbar=no";
	window.open(target, "_blank", features, false);
}

function popuplink( target )
{	
	window.open(target, "_blank", "", false);
}

//oppermann popup für Flashfilm KML Creator
function fenster ()
	{
	var win;
	win=window.open ("images/Panels/film_messepraesentation_kml_creator.html","movie","width=300,height=300,screenX=250,screenY=150,resizable=yes,dependent=yes,scrollbars=yes");
	}

var __image_files = new Array( );
var __images = new Array( );

function preloadImages( ) {
	var num_files = preloadImages.arguments.length;
	for ( i = 0; i < num_files; i++ ) {
		image_file = new String( preloadImages.arguments[i] );
		image = new Image( );
		if ( image != null) {
			image.src = image_file;
			__image_files.push( image_file );
			__images.push( image );
		}
	}
}

function setImage( obj, file ) {
	if (obj != null) {
		for ( i = 0; i < __images.length; i++ ) {
			if ( file == __image_files[i] ) {
				obj.src = __images[i].src;
				break;
			}
		}
	}
}

function enable( )
{
	document.sendForm.submitField.disabled=false;
}

