// Popup Windows for AQAH

function popup(id) {
//	$popup = mysql_query("SELECT id, beschreibung, begriff FROM popups WHERE 1");
	var uri = "popup.php?id="+id;
	var options = "width=700,height=500,resizable=yes,scrollbars=yes";
	top.g_HelpWin = window.open(uri,"HelpWindow",options);
//	if (top.g_HelpWin==null || typeof(top.g_HelpWin.closed)=='undefined' || top.g_HelpWin.closed || navigator.appName.indexOf("Microsoft")!=-1)
//		top.g_HelpWin = window.open(uri,"HelpWindow",options);
//	else
//		top.g_HelpWin.location.href = uri;
	if (top.g_HelpWin) top.g_HelpWin.focus();
//	echo "	window.onload=function(){\n";
//	while ($row = mysql_fetch_array($popup)) {
//	$inhalt = $row[beschreibung];
//	$inhalt = addslashes(preg_replace("/[\n\r]+/", "", $inhalt));
//		echo "	new popUp(200, 100, 300, 175, \"popid$row[id]\", \"$inhalt\", \"white\", \"black\", \"bold 10pt sans-serif\", \"$row[begriff]\", \"navy\", \"white\", \"#dddddd\", \"gray\", \"black\", false, true, true, true, false);\n";
//	}
//	echo "	}\n";
}

function getexcel(table) {
	Check = confirm("Achtung: Das Erstellen einer Excel Datei aus extrem Großen Tebellen wie z.B. dem Protokoll kann einige Zeit in Anspruch nehmen. Wollen sie mit dem Download fortfahren?");
	if (Check == true) window.open('Excel.php?download='+table,'Excel download');
}

function qgetexcel(query) {
	Check = confirm("Achtung: Das Erstellen einer Excel Datei aus extrem Großen Tebellen wie z.B. dem Protokoll kann einige Zeit in Anspruch nehmen. Wollen sie mit dem Download fortfahren?");
	if (Check == true) window.open('Excel.php?query='+query,'Excel download');
}