var GET = new Array();
GET = parseGet();

function parseGet() {
	var aGet	= new Array();
	var aTemp 	= new Array();
	var aTemp2 	= new Array();

	var aTemp 	= location.search.substring(1).split('&');
	var key 	= '';
	var value 	= '';
	for(key in aTemp) {
		aTemp2 = aTemp[key].split('=');

		key = aTemp2[0];
		value = '';

		if(typeof aTemp2[1]!='undefined')
			value = aTemp2[1];
		aGet[key] = value;
	}
	return aGet;
}

function isset(variable) {
	if(typeof variable == 'undefined')
		return false;
	return true;
}

function getValue(variable) {
	if(typeof variable == 'undefined')
		return '';
	return variable;
}

function popup(url,name,w,h,options) {
	width	= 600; if(w){ width = w; };
	height	= 420; if(h){ height = h; };
	wname = "POPUP";if(name){ wname = name; };
	options = "toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=no,width="+width+",height="+height+","+options;

	unipop	= window.open(url,wname,options);
	if(document.all) {
		x = (screen.availWidth - width) / 2
		y = (screen.availHeight - height) / 2
		if(x < 1) { x = 1}; if(y < 1) { y = 1};
		unipop.moveTo(x,y)
	}
	unipop.focus();

}

function confirmedReload(href,text) {
	if(confirm(text)) {
		location.reload(href);
	}
}

function forceOnclick(source) {
	if(typeof source == 'undefined')
		return;
	if(typeof source.href == 'undefined')
		return;
	if(typeof source.target == 'undefined')
		return;

	source.href = '#';
	source.target = '';
}


function cssDebug() {
	var output = 'Browser Mode: ' + document.compatMode + '\n\n';
	output += 'Bedeutung:\n';
	if(document.compatMode=='BackCompat') {
		output += 'Der BackCompat-Mode, oder auch Quirks-Mode ist der alte,\nabwaerts kompatible Quirk-Modus mit allen Unzulaenglichkeiten\nund browserspezifischen Eigenentwicklungen, zum Beispiel beim Box Model;\ndiese Webseiten haben dann eine Macke (engl.: quirk).'; 
	} else {
		output += '"CSS1Compat" als Ergebnis bedeutet Standard-Modus,\nalles Ok.';
	} 
	alert(output);
}

function forceOnclick(source) {
	if(typeof source == 'undefined')
		return;
	if(typeof source.href == 'undefined')
		return;
	if(typeof source.target == 'undefined')
		return;

	source.href = '#';
	source.target = '';
}
