parameters = new Array();


function setParameter(){parameters = new Array();var _l=document.location;var _s=_l.search;if(_s!='?'){_s=_s.substr(1);var _params = _s.split('&');for(var _x in _params){if(_params[_x]){var _param = _params[_x].split('=');
_param[0] = _param[0].replace(/\W/g,'_');parameters[_param[0]] = _param[1];eval( _param[0]+'=\''+_param[1]+'\';');}}}}t_fenster = new Array();




function openWindow(id,width,height,attribs,url,popupblock){var scrwidth=screen.availWidth;if(!scrwidth) scrwidth=screen.width;var scrheight=screen.availHeight;if(!scrheight) scrheight=screen.height;

if(navigator.userAgent.indexOf('Win')){scrwidth=scrwidth-12;scrheight=scrheight-6;}scrheight=scrheight-30;var left=parseInt((scrwidth-width)/2);if(left<0) left=0;var top=parseInt((scrheight-height)/2);if(top<0) top=0;if(!url) url='about:blank';

var win = 0;if(t_fenster[id]){win = t_fenster[id];win = 0;}


if(!win){if(!attribs) attribs = '';

if(width||height){if(navigator.appName=='Microsoft Internet Explorer'){attribs = 'left='+left+',top='+top+',width='+width+',height='+height+','+attribs;}else{attribs = 'screenX='+left+',screenY='+top+',width='+width+',height='+height+','+attribs;}}win = window.open(url,id,attribs);

t_fenster[id] = win;}if(!win||win.closed){if(popupblock) alert (popupblock);}else win.focus();return win;}






function tools_Win2Mac(text){text=text.replace(/§/, '¤');text=text.replace(/Ä/, '€');text=text.replace(/Ü/, '†');text=text.replace(/Ö/, '…');text=text.replace(/ß/, '§');text=text.replace(/ä/, 'Š');text=text.replace(/ü/, 'Ÿ');text=text.replace(/ö/, 'š');
text=text.replace(/°/, '¡');return text;}



function tools_alert(msg){if(navigator.userAgent.indexOf('Mac')>0) msg=tools_Win2Mac(msg);alert(msg);}setParameter();