var jm;
var anfrage;
var vhoehe = 690;
	var iMyWidth;
	var iMyHeight;
if (screen.availHeight < 768) {vhoehe = screen.availHeight-40}
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (220 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((vhoehe/2) + 50); //half the screen height minus half the new window height (plus title and status bars).

function popupanfrage(jm1,jm2) {
if (jm1 != null) {
anfrage= window.open( jm1 + 'anfrage/index.php?' + jm2,'winanfrage','width=440,height=' + vhoehe + ',resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=no');
}
else{
anfrage= window.open( 'anfrage/index.php?' + jm2,'winanfrage','width=440,height=' + vhoehe + ',resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=no');
}
anfrage.focus();
}
