/* compress with YUI Compressoer for use */
/* http://www.julienlecomte.net/yuicompressor/ */

function NewWindow(url, title, options, doreturn) {
	Window1 = open(url,title,options);
	Window1.focus();
	if(doreturn)
		return Window1;
}

// öffnet ein neues fenster
// der erste parameter ist das <a>-objekt, wovon dann das attribut href für die url genommen wird
function openWindow(aObject, options) {
	var title = "title" + Math.floor(Math.random()*10000+1);
	return NewWindow(aObject.getAttribute('href'), title, options, true);
}

// schließt ein Popup und reloadet das opener Fenster
function finish() {
	opener.location.reload();
	window.close();
}
// schließt ein Popup
function abort() {
	window.close();
}
// schließt ein Popup
function closeWindow() {
	window.close();
}
