// STTI Change 7.3.2008
// Ändern der iframe-Größe in der aufrufenden Datei
try {
  var in_frame_Y = parent.document.getElementById("if1");
} 
catch (e) {
  var in_frame_Y = FALSE;
}

function iframeSize()  {
  if (in_frame_Y) { 
      parent.document.getElementById("if1").height = document.body.scrollHeight + 60;
    }
}
// Ende STTI Change 7.3.2008
// Ändern der iframe-Größe in der aufrufenden Datei

function gl(theAnchor)
{
	// remove focus -- do this first to avoid coming the new window into the background
	if( theAnchor.blur ) {
		theAnchor.blur();
	}

    // open new window;
    // no spaces in string, bug in function window.open() // toolbar=yes
    var w = window.open(theAnchor.href, theAnchor.target, 'width=640,height=450,resizable=yes,scrollbars=yes,toolbar=yes');
    
    // bring window to top
    if( !w.opener ) {
    	w.opener = self;
    }
    	
    if( w.focus != null ) {
    	w.focus();
    }
	
	// avoid standard hyperlink processing
    return false;
}

function ed(theAnchor)
{
	// remove focus -- do this first to avoid coming the new window into the background
	if( theAnchor.blur ) {
		theAnchor.blur();
	}

    // open new window;
    // no spaces in string, bug in function window.open()
    var w = window.open(theAnchor.href, theAnchor.target, 'width=610,height=580,resizable=yes,scrollbars=yes');
    
    // bring window to top
    if( !w.opener ) {
    	w.opener = self;
    }
    	
    if( w.focus != null ) {
    	w.focus();
    }
	
	// avoid standard hyperlink processing
    return false;
}

function pr(theAnchor)
{
	// remove focus -- do this first to avoid coming the new window into the background
	if( theAnchor.blur ) {
		theAnchor.blur();
	}

    // open new window;
    // no spaces in string, bug in function window.open()
    var w = window.open(theAnchor.href, theAnchor.target, 'width=450,height=550,resizable=yes,scrollbars=yes');
    
    // bring window to top
    if( !w.opener ) {
    	w.opener = self;
    }
    	
    if( w.focus != null ) {
    	w.focus();
    }
	
	// avoid standard hyperlink processing
    return false;
}


function pr_do()
{
	// wait for the map to load ....
	if(!gm_mapOn) {
	    var gm_mapOn;
	}
	if( gm_mapOn && gm_initDone==0 )
	{
		window.setTimeout(function() {pr_do();}, 1000); 
	}
	else if( window.print )
	{
		window.print();
	}
	
	return false;
}

function pr_init_links()
{
	for( i = 0; i < document.links.length; i++ )
	{
		document.links[i].onclick = new Function('return pr_do();');
	}
	
	for( i = 0; i < document.forms.length; i++ )
	{
		document.forms[i].onsubmit = new Function('return pr_do();');
	}
}



function pageSel(baseUrl, maxPage, maxOffset, rowsPerPage)
{
	var i;
	
	i=prompt('Gehe zu Seite:', '');
	if( i!=null && i!='' ) 
	{
		// goto page
		i = (i-1) * rowsPerPage;
		
		window.location.href = baseUrl + i;
	}
	return false;
}

function anbieter(Adresse) {
	MeinFenster = window.open(Adresse, "anbieter", "width=800,height=600,left=150,top=10,menubar=yes,scrollbars=yes,toolbar=yes");
	MeinFenster.focus();
}
function kurs(Adresse) {
	MeinFenster = window.open(Adresse, "kurs", "width=800,height=600,left=150,top=150,menubar=yes,scrollbars=yes,toolbar=yes");
	MeinFenster.focus();
}


