function bildVergroessern(url,breite, hoehe) {
	breite += 40;
	hoehe += 40;
	if(breite > 640) breite=640;
	if(hoehe > 480) hoehe=480;
	
	// IE hat ein Problem??
//		var win = window.open(url,"<%replace name=Allgemein.Vergroesserung format=escape%>Vergroesserung<%/replace%>","menubar=no,resizable=yes,scrollbars=yes,width="+breite+",height=" + hoehe);
	var win = window.open(url,"gross","menubar=no,resizable=yes,scrollbars=yes,width="+breite+",height=" + hoehe);
	win.focus();
}


function stdws_openDruck() {
	var url;
	if(location.search == "") {
		url = window.location.href + '?stdws_chtml=true&druckdarstellungVAR=true'
	}
	else  {
		url = window.location.href + '&stdws_chtml=true&druckdarstellungVAR=true'
	}
	var win = window.open(url,"Print","menubar=yes,resizable=yes,scrollbars=yes,width=600,height=700");
	win.focus();
}

var diverses_hilfetitel = "";
var diverses_hilfetext = "";

function stdws_setHilfe(titel,text) {
	diverses_hilfetitel = titel;
	diverses_hilfetext = text;
}

function stdws_showHilfe(anchorname) {
	// Create an object for a WINDOW popup
	var helpwin = new PopupWindow(); 
	helpwin.autoHide(); 
	helpwin.setSize(400,250);
        var html = "<html><head>\n"
                + "<title>"+ diverses_hilfetitel+"</title>\n"
                + "<meta http-equiv='Content-Type' content='text/html;CHARSET=iso-8859-1'>\n"
                + "</head><body class=\"hilfewin\" style=\"font-family: Verdana;\">\n"
                + "<div id=hilfewinid>\n"
                + diverses_hilfetext
                + "</div>\n"
                +"\n</body></html>";

	helpwin.populate(html);
	helpwin.showPopup(anchorname);
	//var cors = getAnchorWindowPosition(anchorname);
	//alert(" cors: " + cors.x + "/" + cors.y);
}

function stdws_showInfo(anchorname,titel,text) {
	stdws_setHilfe(titel,text);
	stdws_showHilfe(anchorname);
}
