/***************************************************

	js-file fuer:	sparkasse vorsorgerechner

	created:	2001-05-15
			pixelpark AG
	author:		s. ehrkamp
	
200010516 stsch	function neuesFenster(url, wname) added	

****************************************************/

 // Window Positions Main Window
g_i_width_ns = 508;
g_i_heigth_ns = 519;
g_i_left_ns = 90;
g_i_top_ns = 60;
g_i_width_ie = 506;
g_i_heigth_ie = 505;
g_i_left_ie = 90;
g_i_top_ie = 60;

/*------------------------------------------------------
  function:	is_netscape()
  use:		returns true if broswer is netscape
  input:	-
  output:	true || false
------------------------------------------------------*/
function is_netscape() {
	if (document.layers) {
		return true;
	} else {
		return false;
	}
}

/*------------------------------------------------------
  function:	startVorsorgerRechner()
  use:		opens the popup-window, in which the
  		'vorsorgerechner' will be displayed
  input:	-
  output:	-
------------------------------------------------------*/
function startVorsorgerRechner() {
	// browser variation cause window positioning is different in NS and IE
	if (is_netscape()) {
		vorsorgewin = window.open("f_vorsorge.html", "vorsorgewin", "width=" + g_i_width_ns + ",height=" + g_i_heigth_ns + ",screenX=" + g_i_left_ns + ",screenY=" + g_i_top_ns + ",locationbar=no,menubar=no,resizable=no");
	} else {
		vorsorgewin = window.open("f_vorsorge.html", "vorsorgewin", "width=" + g_i_width_ie + ",height=" + g_i_heigth_ie + ",left=" + g_i_left_ie + ",top=" + g_i_top_ie + ",locationbar=no,menubar=no,resizable=no");
	}
}
/*------------------------------------------------------
  function:	neuesFenster(url, wname)
  use:		opens a popup-window, in which the given
  		url will be displayed
  input:	url 	- url to be displayed
  		wname 	- windowname
  output:	-
------------------------------------------------------*/
function neuesFenster(url, wname) {
	fensterRef = eval('window.open(url, wname, "width=550,height=600,menubar=no,toolbar=no,directories=no,top=0,left=0,scrollbars=yes,resizable=no,status=no")');
	fensterRef.window.focus();
}

