// window.js
// javascripte fuer zanox-affiliate
// 25.08.2001 sml

// oeffnet ein Fenster fuer die Hilfe
	function OpenHilfe(url) 
	{
		textWindow = window.open(url, 'TextFenster', 'height=550,width=750,locationbar=no,menubar=no,resizable=yes,scrollbars=no');
		if(textWindow) 
		{
			textWindow.focus();
		}
	}

// oeffnet ein Fenster fuer die "7 Schritte"
	function OpenWindow(url) 
	{
		textWindow = window.open(url, 'TextFenster', 'height=250,width=500,locationbar=no,menubar=no,resizable=yes,scrollbars=no');
		if(textWindow) 
		{
			textWindow.focus();
		}
	}

// aktiviert bzw. deaktiviert alle Checkboxen im Formular "MI"
	function AllMessages()
	{
		for(var x=0;x<document.MI.elements.length;x++)
		{ 
			var y=document.MI.elements[x];
			if(y.name!='ALLMSGS') y.checked=document.MI.ALLMSGS.checked;
		}
	}

// FUNKTION NICHT IM EINSATZ
// wird aufgerufen, wenn die URL verlassen wird
// oeffnet ein Fenster, ueber welches sich der Nutzer ggf. ausloggen kann
	function exitcnsl()
	{	
		textWindow = window.open("empty.html", "Abmelden", "locationbar=no, menubar=no, height=200, width=\"450\""); 
		if(textWindow) 
		{
			textWindow.focus();
			textWindow.document.writeln("<html><head><title>zanox</title></head><body>");
			textWindow.document.writeln("<table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\" height=\"100%\"><tr><td align=\"center\" valign=\"middle\">");
			textWindow.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" width=\"425\" align=\"center\"><tr><td colspan=\"2\" align=\"center\">");
			textWindow.document.writeln("<font face=\"Arial\" size=\"2\">Bitte melden Sie sich immer beim Verlassen einer zanox-Sitzung ab.<br>");
			textWindow.document.writeln("<b>M&ouml;chten Sie Ihre zanox-Sitzung beenden?</b><br><br><br>");
			textWindow.document.writeln("<a href=\"##http##://##server_name##/##work_path##/##z_in_frm##?##logoff_ids##+##session_id##\" title=\"Hier melden Sie sich ab.\" class=\"global_nav\"><b>Ja</b></a> &nbsp;&nbsp; <a href=\"javascript:top.close()\"><b>Nein</b></a></font>");
			textWindow.document.writeln("</td></tr></table></td></tr></table>");
			textWindow.document.writeln("</body></html>")
		}
	}	
