// BiR / Wintours - Popups für Bildlupen bei Reisedetails, Stand 2008-11-30

// Top-Level declaration of the vector of popup window handles and the function
// to be called on (frameset / body) unload to close all the open popups
mypops = new Array;

function openPop(winam,datei,titel) {
// escape() encodes ISO directly, whereas encodeURIComponent() encodes first to utf8, then %xx
// so if you use encodeURIComponent() then PHP must do utf8_decode(rawurldecode($_REQUEST['xx']))
// var url = '../lupe.php?datei=' + datei + '&titel=' + encodeURIComponent(titel);
var url = '../lupe.php?datei=' + datei + '&titel=' + escape(titel);
var poppar = 'width=944,height=644,scrollbars=yes,resizable=yes,location=no,toolbar=no,menubar=no,status=no';
mypops[mypops.length]=window.open(url,winam,poppar);
return;
}

function closePops()
{
window.ajaxok=false;
for (i=0; i<mypops.length; i++)
	{
	if (mypops[i] && mypops[i].closed == false)
		 mypops[i].close();
	}
return;
}
